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

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.KeySize

public class KeySize
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
KeySize()
           
KeySize(OMElement elem)
           
 
Method Summary
 int getKeySize()
          Returns the key size if set otherwise returns -1
protected  QName getToken()
           
 void setKeySize(int keySize)
          Sets the key size value of the wst:KeySize element
 
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

KeySize

public KeySize()

KeySize

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

setKeySize

public void setKeySize(int keySize)
Sets the key size value of the wst:KeySize element

Parameters:
keySize -

getKeySize

public int getKeySize()
Returns the key size if set otherwise returns -1

Returns:
Returns the key size if set otherwise returns -1

getToken

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