cgl.narada.service.security.kmc
Class SignedSecurityToken

java.lang.Object
  extended by cgl.narada.service.security.kmc.SignedSecurityToken
All Implemented Interfaces:
Serializable

public class SignedSecurityToken
extends Object
implements Serializable

Encapsulates the security token, the signer's certificate(KMC) and the signed signature
Created on Sep 9, 2005

See Also:
Serialized Form

Constructor Summary
SignedSecurityToken(SecurityToken token, Certificate cert)
           
 
Method Summary
static SignedSecurityToken createObjectFromBytes(byte[] objectBytes)
          Unmarshalls the bytes as a SignedSecurityToken object
 boolean generateSignedDigest(PrivateKey privKey)
           
 byte[] getBytes()
          Marshalls the object into an array of bytes.
 Certificate getKmcCertificate()
           
 SecurityToken getSecurityToken()
           
 boolean verify()
           
 boolean verify(PublicKey pubKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignedSecurityToken

public SignedSecurityToken(SecurityToken token,
                           Certificate cert)
Method Detail

generateSignedDigest

public boolean generateSignedDigest(PrivateKey privKey)

verify

public boolean verify()

verify

public boolean verify(PublicKey pubKey)

getBytes

public byte[] getBytes()
Marshalls the object into an array of bytes.

Returns:
an array of bytes representing the marshaller object, null if error occurs

createObjectFromBytes

public static SignedSecurityToken createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a SignedSecurityToken object

Parameters:
objectBytes -
Returns:
SignedSecurityToken if successful, null if error occurs

getKmcCertificate

public Certificate getKmcCertificate()
Returns:
Returns the kmcCertificate.

getSecurityToken

public SecurityToken getSecurityToken()
Returns:
Returns the securityToken.


For comments and suggestions please send e-mail to The NaradaBrokering Project