public class EncryptedKeyToken extends Token
TokenStorage
interface.TokenStorage
,
Serialized FormConstructor 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, setUnattachedReference
public EncryptedKeyToken()
public EncryptedKeyToken(String id, org.apache.axiom.om.OMElement tokenElem, Date created, Date expires) throws TrustException
TrustException
public void setSHA1(String sha)
sha
- SHA1 of the encrypted keypublic String getSHA1()
public void writeExternal(ObjectOutput out) throws IOException
Token
writeExternal
in interface Externalizable
writeExternal
in class Token
out
- Stream which writes serialized bytes.IOException
- If unable to serialize particular member.public void readExternal(ObjectInput in) throws ClassNotFoundException, IOException
Token
readExternal
in interface Externalizable
readExternal
in class Token
in
- Stream which used to read data.IOException
- If unable to de-serialize particular data member.ClassNotFoundException
Copyright © Apache Software Foundation. All Rights Reserved.