|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.ws.security.tokenstore.SecurityToken
public class SecurityToken
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 | |
---|---|
Element |
getAttachedReference()
|
Date |
getCreated()
|
org.apache.ws.security.components.crypto.Crypto |
getCrypto()
|
Date |
getExpires()
|
String |
getId()
|
static String |
getIdFromSTR(Element str)
|
String |
getIssuerAddress()
|
Principal |
getPrincipal()
Get the principal associated with this SecurityToken |
Properties |
getProperties()
|
byte[] |
getSecret()
|
String |
getSHA1()
|
Element |
getToken()
|
int |
getTokenHash()
Get a hash code associated with this token. |
String |
getTokenType()
|
String |
getTransformedTokenIdentifier()
Get the identifier corresponding to a transformed version of this token |
Element |
getUnattachedReference()
|
String |
getWsuId()
|
X509Certificate |
getX509Certificate()
|
boolean |
isExpired()
Return whether this SecurityToken is expired or not |
void |
setAttachedReference(Element attachedReference)
|
void |
setExpires(Date expires)
|
void |
setId(String id)
Set the id |
void |
setIssuerAddress(String issuerAddress)
|
void |
setPrincipal(Principal principal)
Set the principal associated with this SecurityToken |
void |
setProperties(Properties properties)
|
void |
setSecret(byte[] secret)
|
void |
setSHA1(String sha)
|
void |
setToken(Element token)
|
void |
setTokenHash(int hash)
Set a hash code associated with this token. |
void |
setTokenType(String s)
|
void |
setTransformedTokenIdentifier(String transformedTokenIdentifier)
Set the identifier corresponding to a transformed version of this token |
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 Properties getProperties()
public void setProperties(Properties properties)
properties
- The properties to set.public Element getToken()
public void setToken(Element token)
token
- The token to set.public String getTransformedTokenIdentifier()
public void setTransformedTokenIdentifier(String transformedTokenIdentifier)
public void setId(String id)
public String getId()
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 setTokenHash(int hash)
hash
- a hash code associated with this tokenpublic int getTokenHash()
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 |