com.pingidentity.sts.clientapi.tokens.wsse
Class UsernameToken

java.lang.Object
  extended by com.pingidentity.sts.clientapi.tokens.wsse.UsernameToken
All Implemented Interfaces:
Token

public class UsernameToken
extends java.lang.Object
implements Token

Implementation of WS-Security Username Token Profile 1.0
(see http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0.pdf).


Constructor Summary
UsernameToken()
           
 
Method Summary
 java.lang.String getPassword()
          Retrieves the password of the token.
 org.w3c.dom.Element getRoot()
          Retrieves the raw token data as an XML Element.
 java.lang.String getSubjectId()
          Retrieves the principal subject identfier of the token.
 java.lang.String getUsername()
          Retrieves username of the token.
 void parse(org.w3c.dom.Element root)
          Parses the provided XML Element into a token.
 void setPassword(java.lang.String password)
          Sets the password of the token using clear text String.
 void setUsername(java.lang.String username)
          Sets the username of the token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernameToken

public UsernameToken()
Method Detail

getSubjectId

public java.lang.String getSubjectId()
Description copied from interface: Token
Retrieves the principal subject identfier of the token.

Specified by:
getSubjectId in interface Token
Returns:
subject as String

getRoot

public org.w3c.dom.Element getRoot()
                            throws SecurityTokenException
Description copied from interface: Token
Retrieves the raw token data as an XML Element.

Specified by:
getRoot in interface Token
Returns:
Throws:
SecurityTokenException

parse

public void parse(org.w3c.dom.Element root)
           throws SecurityTokenException
Description copied from interface: Token
Parses the provided XML Element into a token. If a parsing error occurs, a SecurityTokenException is thrown.

Specified by:
parse in interface Token
Throws:
SecurityTokenException

getUsername

public java.lang.String getUsername()
Retrieves username of the token.

Returns:
username as String

setUsername

public void setUsername(java.lang.String username)
Sets the username of the token.

Parameters:
username - String

getPassword

public java.lang.String getPassword()
Retrieves the password of the token.

Returns:
Password of the token as clear text String

setPassword

public void setPassword(java.lang.String password)
Sets the password of the token using clear text String.

Parameters:
password - clear text String


Copyright © 2006-2009 Ping Identity Corporation. All Rights Reserved.