Apache CXF API

org.apache.cxf.ws.security.tokenstore
Class SecurityToken

java.lang.Object
  extended by org.apache.cxf.ws.security.tokenstore.SecurityToken

public class SecurityToken
extends Object


Nested Class Summary
static class SecurityToken.State
           
 
Constructor Summary
SecurityToken()
           
SecurityToken(String id, Calendar created, Calendar expires)
           
SecurityToken(String id, Element tokenElem, Calendar created, Calendar expires)
           
SecurityToken(String id, Element tokenElem, Element lifetimeElem)
           
 
Method Summary
 Element getAttachedReference()
           
 Calendar getCreated()
           
 org.apache.ws.security.components.crypto.Crypto getCrypto()
           
 Calendar getExpires()
           
 String getId()
           
static String getIdFromSTR(Element str)
           
 String getIssuerAddress()
           
 Element getPreviousToken()
           
 Properties getProperties()
           
 byte[] getSecret()
           
 String getSHA1()
           
 SecurityToken.State getState()
           
 Element getToken()
           
 String getTokenType()
           
 Element getUnattachedReference()
           
 String getWsuId()
           
 X509Certificate getX509Certificate()
           
 boolean isChanged()
           
 void setAttachedReference(Element attachedReference)
           
 void setChanged(boolean chnaged)
           
 void setExpires(Calendar expires)
           
 void setIssuerAddress(String issuerAddress)
           
 void setPreviousToken(Element previousToken)
           
 void setProperties(Properties properties)
           
 void setSecret(byte[] secret)
           
 void setSHA1(String sha)
           
 void setState(SecurityToken.State state)
           
 void setToken(Element token)
           
 void setTokenType(String s)
           
 void setUnattachedReference(Element unattachedReference)
           
 void setX509Certificate(X509Certificate cert, org.apache.ws.security.components.crypto.Crypto cpt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityToken

public SecurityToken()

SecurityToken

public SecurityToken(String id,
                     Calendar created,
                     Calendar expires)

SecurityToken

public SecurityToken(String id,
                     Element tokenElem,
                     Calendar created,
                     Calendar expires)

SecurityToken

public SecurityToken(String id,
                     Element tokenElem,
                     Element lifetimeElem)
Method Detail

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 Calendar getCreated()
Returns:
Returns the created.

getExpires

public Calendar getExpires()
Returns:
Returns the expires.

setExpires

public void setExpires(Calendar 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)

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()

Apache CXF API

Apache CXF