org.apache.cxf.ws.security.tokenstore
Class SecurityToken
java.lang.Object
  
org.apache.cxf.ws.security.tokenstore.SecurityToken
- All Implemented Interfaces: 
 - Serializable
 
public class SecurityToken
- extends Object
- implements Serializable
  
- See Also:
 - Serialized Form
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SecurityToken
public SecurityToken()
SecurityToken
public SecurityToken(String id)
SecurityToken
public SecurityToken(String id,
                     Date created,
                     Date expires)
SecurityToken
public SecurityToken(String id,
                     Element tokenElem,
                     Date created,
                     Date expires)
SecurityToken
public SecurityToken(String id,
                     Element tokenElem,
                     Element lifetimeElem)
isChanged
public boolean isChanged()
 
- Returns:
 - Returns the changed.
 
 
setChanged
public void setChanged(boolean chnaged)
 
- Parameters:
 chnaged - The changed to set.
 
getProperties
public Properties getProperties()
 
- Returns:
 - Returns the properties.
 
 
setProperties
public void setProperties(Properties properties)
 
- Parameters:
 properties - The properties to set.
 
getState
public SecurityToken.State getState()
 
- Returns:
 - Returns the state.
 
 
setState
public void setState(SecurityToken.State state)
 
- Parameters:
 state - The state to set.
 
getToken
public Element getToken()
 
- Returns:
 - Returns the token.
 
 
setToken
public void setToken(Element token)
 
- Parameters:
 token - The token to set.
 
getId
public String getId()
 
- Returns:
 - Returns the id.
 
 
getPreviousToken
public Element getPreviousToken()
 
- Returns:
 - Returns the presivousToken.
 
 
setPreviousToken
public void setPreviousToken(Element previousToken)
 
- Parameters:
 presivousToken - The presivousToken to set.
 
getSecret
public byte[] getSecret()
 
- Returns:
 - Returns the secret.
 
 
setSecret
public void setSecret(byte[] secret)
 
- Parameters:
 secret - The secret to set.
 
getAttachedReference
public Element getAttachedReference()
 
- Returns:
 - Returns the attachedReference.
 
 
setAttachedReference
public void setAttachedReference(Element attachedReference)
 
- Parameters:
 attachedReference - The attachedReference to set.
 
getUnattachedReference
public Element getUnattachedReference()
 
- Returns:
 - Returns the unattachedReference.
 
 
setUnattachedReference
public void setUnattachedReference(Element unattachedReference)
 
- Parameters:
 unattachedReference - The unattachedReference to set.
 
getCreated
public Date getCreated()
 
- Returns:
 - Returns the created.
 
 
getExpires
public Date getExpires()
 
- Returns:
 - Returns the expires.
 
 
setExpires
public void setExpires(Date expires)
 
- Parameters:
 expires - The expires to set.
 
getIssuerAddress
public String getIssuerAddress()
 
 
setIssuerAddress
public void setIssuerAddress(String issuerAddress)
 
 
setSHA1
public void setSHA1(String sha)
 
- Parameters:
 sha - SHA1 of the encrypted key
 
getSHA1
public String getSHA1()
 
- Returns:
 - SHA1 value of the encrypted key
 
 
getTokenType
public String getTokenType()
 
 
setTokenType
public void setTokenType(String s)
 
 
setWsuId
public void setWsuId(String wsuId)
 
 
getWsuId
public String getWsuId()
 
 
getIdFromSTR
public static String getIdFromSTR(Element str)
 
 
setX509Certificate
public void setX509Certificate(X509Certificate cert,
                               org.apache.ws.security.components.crypto.Crypto cpt)
 
 
getX509Certificate
public X509Certificate getX509Certificate()
 
 
getCrypto
public org.apache.ws.security.components.crypto.Crypto getCrypto()
 
 
setAssociatedHash
public void setAssociatedHash(int hash)
- Set a hash code associated with this token. Note that it is not the hashcode of this 
 token, but a hash corresponding to an association with this token.
 
- Parameters:
 hash - a hash code associated with this token
 
 
getAssociatedHash
public int getAssociatedHash()
- Get a hash code associated with this token.
 
- Returns:
 - a hash code associated with this token.
 
 
 
setPrincipal
public void setPrincipal(Principal principal)
- Set the principal associated with this SecurityToken
 
- Parameters:
 principal - the principal associated with this SecurityToken
 
 
getPrincipal
public Principal getPrincipal()
- Get the principal associated with this SecurityToken
 
- Returns:
 - the principal associated with this SecurityToken
 
 
 
Apache CXF