|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pingidentity.sts.clientapi.tokens.wsse.BinaryToken
public class BinaryToken
Implementation of a generic BinarySecurityToken to be used for custom token types. For example, the x509 token profile is implemented using BinaryToken as the base class.
Field Summary | |
---|---|
protected static java.lang.String |
BINARY_SECURITY_TOKEN_QNAME
|
protected static java.lang.String |
ENCODING_TYPE
|
protected static java.lang.String |
ENCODING_TYPE_URI
|
protected java.lang.String |
tokenData
|
protected static java.lang.String |
VALUE_TYPE
|
protected static java.lang.String |
WSU_ID_QNAME
|
Constructor Summary | |
---|---|
BinaryToken()
|
|
BinaryToken(java.lang.String tokenData)
|
|
BinaryToken(java.lang.String tokenData,
java.lang.String valueTypeUri)
|
Method Summary | |
---|---|
protected org.w3c.dom.Element |
createToken(java.lang.String encodedData)
Sets the encoded data portion of the binary token. |
org.w3c.dom.Element |
getRoot()
Retrieves the raw token data as an XML Element. |
java.lang.String |
getSubjectId()
Not implemented since the token only contains encoded data. |
java.lang.String |
getTokenId()
Retrieves the XML identifier for the XML data of the BinarySecurityToken. |
java.lang.String |
getValueTypeUri()
Retrieves the value type URI of the BinarySecurityToken. |
void |
parse(org.w3c.dom.Element root)
Parses the provided XML Element into a token. |
void |
setValueTypeUri(java.lang.String valueTypeUri)
Sets the value type URI of the BinarySecurityToken. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String BINARY_SECURITY_TOKEN_QNAME
protected static final java.lang.String WSU_ID_QNAME
protected static final java.lang.String VALUE_TYPE
protected static final java.lang.String ENCODING_TYPE
protected static final java.lang.String ENCODING_TYPE_URI
protected java.lang.String tokenData
Constructor Detail |
---|
public BinaryToken()
public BinaryToken(java.lang.String tokenData)
public BinaryToken(java.lang.String tokenData, java.lang.String valueTypeUri)
Method Detail |
---|
public org.w3c.dom.Element getRoot() throws SecurityTokenException
Token
getRoot
in interface Token
SecurityTokenException
public java.lang.String getSubjectId()
getSubjectId
in interface Token
public void parse(org.w3c.dom.Element root) throws SecurityTokenException
Token
parse
in interface Token
SecurityTokenException
public java.lang.String getValueTypeUri()
public void setValueTypeUri(java.lang.String valueTypeUri)
valueTypeUri
- URI as Stringprotected org.w3c.dom.Element createToken(java.lang.String encodedData) throws SecurityTokenException
encodedData
- Base64 encoded data as String
SecurityTokenException
public java.lang.String getTokenId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |