public class EncryptedKeyToken extends Token
TokenStorage interface.TokenStorage,
Serialized Form| Constructor and Description |
|---|
EncryptedKeyToken() |
EncryptedKeyToken(String id,
Date created,
Date expires) |
EncryptedKeyToken(String id,
org.apache.axiom.om.OMElement tokenElem,
Date created,
Date expires) |
| Modifier and Type | Method and Description |
|---|---|
String |
getSHA1() |
void |
readExternal(ObjectInput in)
Implementing de-serialization logic in accordance with the serialization logic.
|
void |
setSHA1(String sha) |
void |
writeExternal(ObjectOutput out)
Implementing serialize logic according to our own protocol.
|
getAttachedReference, getCreated, getExpires, getId, getIssuerAddress, getPreviousToken, getProperties, getSecret, getState, getToken, getUnattachedReference, isChanged, setAttachedReference, setChanged, setExpires, setIssuerAddress, setPreviousToken, setProperties, setSecret, setState, setToken, setUnattachedReferencepublic EncryptedKeyToken()
public EncryptedKeyToken(String id, org.apache.axiom.om.OMElement tokenElem, Date created, Date expires) throws TrustException
TrustExceptionpublic void setSHA1(String sha)
sha - SHA1 of the encrypted keypublic String getSHA1()
public void writeExternal(ObjectOutput out) throws IOException
TokenwriteExternal in interface ExternalizablewriteExternal in class Tokenout - Stream which writes serialized bytes.IOException - If unable to serialize particular member.public void readExternal(ObjectInput in) throws ClassNotFoundException, IOException
TokenreadExternal in interface ExternalizablereadExternal in class Tokenin - Stream which used to read data.IOException - If unable to de-serialize particular data member.ClassNotFoundExceptionCopyright © Apache Software Foundation. All Rights Reserved.