IBM WebSphere Application ServerTM
Release 7

com.ibm.websphere.wssecurity.wssapi.token
Interface UsernameToken

All Superinterfaces:
SecurityToken

public interface UsernameToken
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
static javax.xml.namespace.QName TokenQname
          Represents the QName of this class, <wsc:UsernameToken>.
static 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
 java.util.Date getCreatedTime()
          Returns created time stamp.
 byte[] getNonce()
          Returns nonce.
 char[] getPassword()
          Returns the password.
 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

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

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

java.lang.String getUsername()
Returns the username.

Returns:
user name

getPassword

char[] getPassword()
Returns the password.

Returns:
password

getCreatedTime

java.util.Date getCreatedTime()
Returns created time stamp.

Returns:
created timestamp

getNonce

byte[] getNonce()
Returns nonce.

Returns:
nonce

IBM WebSphere Application ServerTM
Release 7