org.apache.cxf.ws.security.tokenstore
Class SecurityToken
java.lang.Object
org.apache.cxf.ws.security.tokenstore.SecurityToken
public class SecurityToken
- extends Object
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,
Calendar created,
Calendar expires)
SecurityToken
public SecurityToken(String id,
Element tokenElem,
Calendar created,
Calendar 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 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