|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityToken
This interface is responsible for the security token.
When you apply both signature and encryption to the SOAP message, you should prepare two SecurityToken objects
for the signature and for the encryption respectively.
The security token object is generated with the callback handler that
stores the required information.
CallbackHandler
Field Summary | |
---|---|
static int |
DECRYPTING_KEY
Represents the key to use the decryption as the key type related with the security token. |
static int |
ENCRYPTING_KEY
Represents the key to use the encryption as the key type related with the security token. |
static int |
REF_EMBEDDED
Represents the embedded reference as a Token Reference type. |
static int |
REF_KEYID
Represents the key identifier reference as a Token Reference type. |
static int |
REF_STR
Represents the security token reference as a Token Reference type. |
static int |
REF_THUMBPRINT
Represents the thumb print reference as a Token Reference type. |
static int |
SIGNING_KEY
Represents the key to use the signature as the key type related with the security token. |
static javax.xml.namespace.QName |
TokenQname
Represents the QName of the security token. |
static javax.xml.namespace.QName |
ValueType
Represents the value type. |
static int |
VERIFING_KEY
Represents the key to use the verification as the key type related with the security token. |
Method Summary | |
---|---|
java.lang.String |
getId()
Returns the unique identifier of the security token. |
java.security.Key |
getKey(int keyType)
Returns the key related with the security token. |
java.lang.String |
getKeyIdentifier()
Returns the key identifier related with the security token. |
javax.xml.namespace.QName |
getKeyIdentifierEncodingType()
Returns the QName of KeyId encoding type. |
javax.xml.namespace.QName |
getKeyIdentifierValueType()
Returns the QName of keyId value type. |
java.lang.String |
getKeyName()
Returns the name of key related with the security token. |
java.lang.String |
getPrincipal()
Returns the principal that this security oken belongs to. |
java.lang.String |
getReferenceURI()
Returns the URI of the security token reference. |
java.lang.String |
getThumbprint()
Returns information of thumb print. |
javax.xml.namespace.QName |
getThumbprintEncodingType()
Returns the enconding type of thumb print. |
javax.xml.namespace.QName |
getThumbprintValueType()
Returns value type of thumb print. |
javax.xml.namespace.QName |
getTokenQname()
Returns the qname expression of the security token |
javax.xml.namespace.QName |
getValueType()
Returns the value type. |
XMLStructure |
getXML()
Returns the XML representation. |
Field Detail |
---|
static final int SIGNING_KEY
static final int ENCRYPTING_KEY
static final int VERIFING_KEY
static final int DECRYPTING_KEY
static final int REF_STR
static final int REF_KEYID
static final int REF_EMBEDDED
static final int REF_THUMBPRINT
static final javax.xml.namespace.QName ValueType
static final javax.xml.namespace.QName TokenQname
Method Detail |
---|
java.security.Key getKey(int keyType) throws WSSException
keyType
- Type of key related with token, such as SIGNING_KEY, ENCRYPTING_KEY, VERIFING_KEY, and DECRYPTING_KEY.
WSSException
- if the keyType is not validXMLStructure getXML()
java.lang.String getId()
java.lang.String getReferenceURI()
java.lang.String getKeyIdentifier()
javax.xml.namespace.QName getKeyIdentifierEncodingType()
javax.xml.namespace.QName getKeyIdentifierValueType()
java.lang.String getKeyName()
javax.xml.namespace.QName getValueType()
javax.xml.namespace.QName getTokenQname()
java.lang.String getThumbprint()
javax.xml.namespace.QName getThumbprintValueType()
javax.xml.namespace.QName getThumbprintEncodingType()
java.lang.String getPrincipal()
Returns the principal that this security oken belongs to. If this is an authorization token, this principal string must match the authentication token principal string or the message will be rejected. CSIv2 has stringent rules about validating authorization tokens using either the identity token or authentication token principal.
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |