com.ibm.websphere.wssecurity.wssapi.token

Interface UsernameToken

All Superinterfaces:
SecurityToken

  1. public interface UsernameToken
  2. extends SecurityToken
This interface is responsible for the UsernameToken, <wsse:UsernameToken>.
It defined by OASIS Web Services Security Username Token Profile 1.0.
See Also:
SecurityToken, BinarySecurityToken, UNTGenerateCallbackHandler, UNTConsumeCallbackHandler

Field Summary

Modifier and Type Field and Description
  1. static
  2. javax.xml.namespace.QName
TokenQname
Represents the QName of this class, <wsc:UsernameToken>.
  1. static
  2. javax.xml.namespace.QName
ValueType
Represents the value type.
Fields inherited from interface com.ibm.websphere.wssecurity.wssapi.token.SecurityToken
DECRYPTING_KEY, ENCRYPTING_KEY, REF_EMBEDDED, REF_KEYID, REF_STR, REF_THUMBPRINT, SIGNING_KEY, VERIFING_KEY

Method Summary

Modifier and Type Method and Description
  1. java.util.Date
getCreatedTime()
Returns created time stamp.
  1. byte[]
getNonce()
Returns nonce.
  1. char[]
getPassword()
Returns the password.
  1. java.lang.String
getUsername()
Returns the username.
Methods inherited from interface com.ibm.websphere.wssecurity.wssapi.token.SecurityToken
getId, getKey, getKeyIdentifier, getKeyIdentifierEncodingType, getKeyIdentifierValueType, getKeyName, getPrincipal, getReferenceURI, getThumbprint, getThumbprintEncodingType, getThumbprintValueType, getTokenQname, getValueType, getXML

Field Detail

ValueType

  1. static final javax.xml.namespace.QName ValueType
Represents the value type.
ValueType:"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken"

TokenQname

  1. static final javax.xml.namespace.QName TokenQname
Represents the QName of this class, <wsc:UsernameToken>.
NamespaceURI: "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
LocalPart: "UsernameToken"

Method Detail

getUsername

  1. java.lang.String getUsername()
Returns the username.
Returns:
user name

getPassword

  1. char[] getPassword()
Returns the password.
Returns:
password

getCreatedTime

  1. java.util.Date getCreatedTime()
Returns created time stamp.
Returns:
created timestamp

getNonce

  1. byte[] getNonce()
Returns nonce.
Returns:
nonce