org.apache.axis2.security.trust
Class Token
java.lang.Object
org.apache.axis2.security.trust.Token
- public class Token
- extends Object
This represents a security token which can have either one of 4 states.
- ISSUED
- EXPIRED
- CACELLED
- RENEWED
Also this holds the OMElement
s representing the token in its
present state and the previous state.
These tokens are stired using the storage mechanism provided via the
TokenStorage
interface.
- Author:
- Ruchith Fernando (ruchith.fernando@gmail.com)
- See Also:
TokenStorage
Constructor Summary |
Token(String id)
Create a new token |
Token(String id,
org.apache.ws.commons.om.OMElement tokenElem)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ISSUED
public static final int ISSUED
- See Also:
- Constant Field Values
EXPIRED
public static final int EXPIRED
- See Also:
- Constant Field Values
CANCELLED
public static final int CANCELLED
- See Also:
- Constant Field Values
RENEWED
public static final int RENEWED
- See Also:
- Constant Field Values
Token
public Token(String id)
- Create a new token
- Parameters:
id
-
Token
public Token(String id,
org.apache.ws.commons.om.OMElement tokenElem)
isChnaged
protected boolean isChnaged()
- Returns:
- Returns the chnaged.
setChnaged
protected void setChnaged(boolean chnaged)
- Parameters:
chnaged
- The chnaged to set.
getProperties
protected HashMap getProperties()
- Returns:
- Returns the properties.
setProperties
protected void setProperties(HashMap properties)
- Parameters:
properties
- The properties to set.
getState
protected int getState()
- Returns:
- Returns the state.
setState
protected void setState(int state)
- Parameters:
state
- The state to set.
getToken
protected org.apache.ws.commons.om.OMElement getToken()
- Returns:
- Returns the token.
setToken
protected void setToken(org.apache.ws.commons.om.OMElement token)
- Parameters:
token
- The token to set.
getId
protected String getId()
- Returns:
- Returns the id.
getPresivousToken
protected org.apache.ws.commons.om.OMElement getPresivousToken()
- Returns:
- Returns the presivousToken.
setPresivousToken
protected void setPresivousToken(org.apache.ws.commons.om.OMElement presivousToken)
- Parameters:
presivousToken
- The presivousToken to set.
getSecret
protected byte[] getSecret()
- Returns:
- Returns the secret.
setSecret
protected void setSecret(byte[] secret)
- Parameters:
secret
- The secret to set.