|
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
Field Summary | |
---|---|
static String |
BOOTSTRAP_TOKEN_ID
This tag holds an ID of a Bootstrap SecurityToken stored in the TokenStore |
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.wss4j.common.crypto.Crypto |
getCrypto()
|
byte[] |
getData()
|
Date |
getExpires()
|
String |
getId()
|
static String |
getIdFromSTR(Element str)
|
String |
getIssuerAddress()
|
Key |
getKey()
|
Principal |
getPrincipal()
Get the principal associated with this SecurityToken |
Properties |
getProperties()
|
byte[] |
getSecret()
|
SecurityContext |
getSecurityContext()
Get the SecurityContext associated with this SecurityToken |
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 |
setData(byte[] data)
|
void |
setExpires(Date expires)
|
void |
setId(String id)
Set the id |
void |
setIssuerAddress(String issuerAddress)
|
void |
setKey(Key key)
|
void |
setPrincipal(Principal principal)
Set the principal associated with this SecurityToken |
void |
setProperties(Properties properties)
|
void |
setSecret(byte[] secret)
|
void |
setSecurityContext(SecurityContext securityContext)
Set the SecurityContext associated with this SecurityToken |
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.wss4j.common.crypto.Crypto cpt)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BOOTSTRAP_TOKEN_ID
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.wss4j.common.crypto.Crypto cpt)
public X509Certificate getX509Certificate()
public org.apache.wss4j.common.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()
public void setSecurityContext(SecurityContext securityContext)
securityContext
- the SecurityContext associated with this SecurityTokenpublic SecurityContext getSecurityContext()
public Key getKey()
public void setKey(Key key)
public byte[] getData()
public void setData(byte[] data)
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |