org.apache.ws.sandbox.security.trust.message.token
Class KeySize

java.lang.Object
  extended byorg.apache.ws.sandbox.security.trust.message.token.AbstractToken
      extended byorg.apache.ws.sandbox.security.trust.message.token.ValueElement
          extended byorg.apache.ws.sandbox.security.trust.message.token.KeySize

public class KeySize
extends ValueElement

Author:
Ruchith Fernando

Field Summary
static javax.xml.namespace.QName TOKEN
           
 
Fields inherited from class org.apache.ws.sandbox.security.trust.message.token.ValueElement
valueText
 
Fields inherited from class org.apache.ws.sandbox.security.trust.message.token.AbstractToken
document, element
 
Constructor Summary
KeySize(org.w3c.dom.Document doc)
           
KeySize(org.w3c.dom.Element elem)
           
 
Method Summary
 int getKeySize()
          Returns the key size if set otherwise returns -1
protected  javax.xml.namespace.QName getToken()
          Returns the QName of this type
 void setKeySize(int keySize)
          Sets the key size value of the wst:KeySize element
 
Methods inherited from class org.apache.ws.sandbox.security.trust.message.token.ValueElement
deserializeChildElement, getValue, setElementTextValue, setValue
 
Methods inherited from class org.apache.ws.sandbox.security.trust.message.token.AbstractToken
addChild, getElement, parse, removeChild, setElement, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TOKEN

public static final javax.xml.namespace.QName TOKEN
Constructor Detail

KeySize

public KeySize(org.w3c.dom.Element elem)
        throws WSTrustException

KeySize

public KeySize(org.w3c.dom.Document doc)
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
Throws:
WSTrustException

getToken

protected javax.xml.namespace.QName getToken()
Returns the QName of this type

Specified by:
getToken in class AbstractToken
Returns:
See Also:
AbstractToken.getToken()


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.