public class Token extends Object implements Externalizable
OMElement
s representing the token in its
present state and the previous state.
These tokens are stored using the storage mechanism provided via the TokenStorage
interface.
TokenStorage
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
CANCELLED |
static int |
EXPIRED |
static int |
ISSUED |
static int |
RENEWED |
Constructor and Description |
---|
Token() |
Token(String id,
Date created,
Date expires) |
Token(String id,
org.apache.axiom.om.OMElement tokenElem,
Date created,
Date expires) |
Token(String id,
org.apache.axiom.om.OMElement tokenElem,
org.apache.axiom.om.OMElement lifetimeElem) |
Modifier and Type | Method and Description |
---|---|
org.apache.axiom.om.OMElement |
getAttachedReference() |
Date |
getCreated() |
Date |
getExpires() |
String |
getId() |
String |
getIssuerAddress() |
org.apache.axiom.om.OMElement |
getPreviousToken() |
Properties |
getProperties() |
byte[] |
getSecret() |
int |
getState() |
org.apache.axiom.om.OMElement |
getToken() |
org.apache.axiom.om.OMElement |
getUnattachedReference() |
boolean |
isChanged() |
void |
readExternal(ObjectInput in)
Implementing de-serialization logic in accordance with the serialization logic.
|
void |
setAttachedReference(org.apache.axiom.om.OMElement attachedReference) |
void |
setChanged(boolean chnaged) |
void |
setExpires(Date expires) |
void |
setIssuerAddress(String issuerAddress) |
void |
setPreviousToken(org.apache.axiom.om.OMElement presivousToken) |
void |
setProperties(Properties properties) |
void |
setSecret(byte[] secret) |
void |
setState(int state) |
void |
setToken(org.apache.axiom.om.OMElement token) |
void |
setUnattachedReference(org.apache.axiom.om.OMElement unattachedReference) |
void |
writeExternal(ObjectOutput out)
Implementing serialize logic according to our own protocol.
|
public static final int ISSUED
public static final int EXPIRED
public static final int CANCELLED
public static final int RENEWED
public Token()
public Token(String id, org.apache.axiom.om.OMElement tokenElem, Date created, Date expires) throws TrustException
TrustException
public Token(String id, org.apache.axiom.om.OMElement tokenElem, org.apache.axiom.om.OMElement lifetimeElem) throws TrustException
TrustException
public boolean isChanged()
public void setChanged(boolean chnaged)
chnaged
- The changed to set.public Properties getProperties()
public void setProperties(Properties properties)
properties
- The properties to set.public int getState()
public void setState(int state)
state
- The state to set.public org.apache.axiom.om.OMElement getToken()
public void setToken(org.apache.axiom.om.OMElement token)
token
- The token to set.public String getId()
public org.apache.axiom.om.OMElement getPreviousToken()
public void setPreviousToken(org.apache.axiom.om.OMElement presivousToken)
presivousToken
- The presivousToken to set.public byte[] getSecret()
public void setSecret(byte[] secret)
secret
- The secret to set.public org.apache.axiom.om.OMElement getAttachedReference()
public void setAttachedReference(org.apache.axiom.om.OMElement attachedReference)
attachedReference
- The attachedReference to set.public org.apache.axiom.om.OMElement getUnattachedReference()
public void setUnattachedReference(org.apache.axiom.om.OMElement unattachedReference)
unattachedReference
- The unattachedReference to set.public Date getCreated()
public Date getExpires()
public void setExpires(Date expires)
expires
- The expires to set.public String getIssuerAddress()
public void setIssuerAddress(String issuerAddress)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- Stream which writes serialized bytes.IOException
- If unable to serialize particular member.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
in
- Stream which used to read data.IOException
- If unable to de-serialize particular data member.ClassNotFoundException
Copyright © Apache Software Foundation. All Rights Reserved.