|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cxf.ws.security.tokenstore.SecurityToken
public class SecurityToken
Nested Class Summary | |
---|---|
static class |
SecurityToken.State
|
Constructor Summary | |
---|---|
SecurityToken()
|
|
SecurityToken(String id)
|
|
SecurityToken(String id,
Date created,
Date expires)
|
|
SecurityToken(String id,
Element tokenElem,
Date created,
Date expires)
|
|
SecurityToken(String id,
Element tokenElem,
Element lifetimeElem)
|
Method Summary | |
---|---|
int |
getAssociatedHash()
Get a hash code associated with this token. |
Element |
getAttachedReference()
|
Date |
getCreated()
|
org.apache.ws.security.components.crypto.Crypto |
getCrypto()
|
Date |
getExpires()
|
String |
getId()
|
static String |
getIdFromSTR(Element str)
|
String |
getIssuerAddress()
|
Element |
getPreviousToken()
|
Principal |
getPrincipal()
Get the principal associated with this SecurityToken |
Properties |
getProperties()
|
byte[] |
getSecret()
|
String |
getSHA1()
|
SecurityToken.State |
getState()
|
Element |
getToken()
|
String |
getTokenType()
|
Element |
getUnattachedReference()
|
String |
getWsuId()
|
X509Certificate |
getX509Certificate()
|
boolean |
isChanged()
|
boolean |
isExpired()
Return whether this SecurityToken is expired or not |
void |
setAssociatedHash(int hash)
Set a hash code associated with this token. |
void |
setAttachedReference(Element attachedReference)
|
void |
setChanged(boolean chnaged)
|
void |
setExpires(Date expires)
|
void |
setId(String id)
|
void |
setIssuerAddress(String issuerAddress)
|
void |
setPreviousToken(Element previousToken)
|
void |
setPrincipal(Principal principal)
Set the principal associated with this SecurityToken |
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 |
setWsuId(String wsuId)
|
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 |
---|
public SecurityToken()
public SecurityToken(String id)
public SecurityToken(String id, Date created, Date expires)
public SecurityToken(String id, Element tokenElem, Date created, Date expires)
public SecurityToken(String id, Element tokenElem, Element lifetimeElem)
Method Detail |
---|
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 SecurityToken.State getState()
public void setState(SecurityToken.State state)
state
- The state to set.public Element getToken()
public void setToken(Element token)
token
- The token to set.public String getId()
public Element getPreviousToken()
public void setPreviousToken(Element previousToken)
presivousToken
- The presivousToken to set.public void setId(String id)
public byte[] getSecret()
public void setSecret(byte[] secret)
secret
- The secret to set.public Element getAttachedReference()
public void setAttachedReference(Element attachedReference)
attachedReference
- The attachedReference to set.public Element getUnattachedReference()
public void setUnattachedReference(Element unattachedReference)
unattachedReference
- The unattachedReference to set.public Date getCreated()
public Date getExpires()
public boolean isExpired()
public void setExpires(Date expires)
expires
- The expires to set.public String getIssuerAddress()
public void setIssuerAddress(String issuerAddress)
public void setSHA1(String sha)
sha
- SHA1 of the encrypted keypublic String getSHA1()
public String getTokenType()
public void setTokenType(String s)
public void setWsuId(String wsuId)
public String getWsuId()
public static String getIdFromSTR(Element str)
public void setX509Certificate(X509Certificate cert, org.apache.ws.security.components.crypto.Crypto cpt)
public X509Certificate getX509Certificate()
public org.apache.ws.security.components.crypto.Crypto getCrypto()
public void setAssociatedHash(int hash)
hash
- a hash code associated with this tokenpublic int getAssociatedHash()
public void setPrincipal(Principal principal)
principal
- the principal associated with this SecurityTokenpublic Principal getPrincipal()
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |