electric.soap.security.tokens
Class SecurityToken

java.lang.Object
  extended byelectric.soap.security.tokens.SecurityToken
Direct Known Subclasses:
BinarySecurityToken, UsernameToken

public abstract class SecurityToken
extends java.lang.Object

SecurityToken is the base class for all WS-Security Security Tokens.

Author:
webMethods

Field Summary
protected  java.lang.String id
           
 
Constructor Summary
SecurityToken()
           
 
Method Summary
abstract  Element getElement()
          Generate a WS-Security compliant XML element based on the contents of this token.
 java.lang.String getId()
           
abstract  void setElement(Element token)
          Set the fields of the token based on the given XML element.
 void setId(java.lang.String id)
          Set the WS-Security Id of the token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id
Constructor Detail

SecurityToken

public SecurityToken()
Method Detail

setElement

public abstract void setElement(Element token)
Set the fields of the token based on the given XML element.

Parameters:
token - An XML element containing the WS-Security compliant representation of a Security Token.

getElement

public abstract Element getElement()
Generate a WS-Security compliant XML element based on the contents of this token.

Returns:
a WS-Security compliant XML representation of this token.

getId

public java.lang.String getId()
Returns:
the WS-Security Id of the token.

setId

public void setId(java.lang.String id)
Set the WS-Security Id of the token.

Parameters:
id -


copyright© 2001-2004 by webMethods All Rights Reserved.