org.apache.axis2.security.trust.token
Class BinarySecret

java.lang.Object
  extended byorg.apache.axis2.security.trust.token.AbstractToken
      extended byorg.apache.axis2.security.trust.token.ValueToken
          extended byorg.apache.axis2.security.trust.token.BinarySecret

public class BinarySecret
extends ValueToken


Field Summary
static QName TOKEN
           
 
Fields inherited from class org.apache.axis2.security.trust.token.ValueToken
valueText
 
Fields inherited from class org.apache.axis2.security.trust.token.AbstractToken
factory, tokenElement, wstNamespace
 
Constructor Summary
BinarySecret()
           
BinarySecret(OMElement elem)
           
 
Method Summary
 void addAttribute(String attribute, String value, OMNamespace namespace)
          Adds the given attribute.
 String getAttributeValue(QName attribute)
          Returns the value of the requested attribute.
protected  QName getToken()
           
 String getTypeAttribute()
          Retuns the value of the .../wst:BinarySecret/@Type attribute
 void setTypeAttribute(String type)
          Sets the value of the .../wst:BinarySecret/@Type attribute
 
Methods inherited from class org.apache.axis2.security.trust.token.ValueToken
deserializeChildElement, getValue, setElementTextValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOKEN

public static final QName TOKEN
Constructor Detail

BinarySecret

public BinarySecret()

BinarySecret

public BinarySecret(OMElement elem)
             throws TrustException
Parameters:
elem -
Throws:
TrustException
Method Detail

getToken

protected QName getToken()
Specified by:
getToken in class AbstractToken

setTypeAttribute

public void setTypeAttribute(String type)
Sets the value of the .../wst:BinarySecret/@Type attribute

Parameters:
type -

getTypeAttribute

public String getTypeAttribute()
Retuns the value of the .../wst:BinarySecret/@Type attribute

Returns:
Returns String.

addAttribute

public void addAttribute(String attribute,
                         String value,
                         OMNamespace namespace)
Adds the given attribute.

Parameters:
attribute -
value -
namespace -

getAttributeValue

public String getAttributeValue(QName attribute)
Returns the value of the requested attribute.

Parameters:
attribute -
Returns:
Returns String.