org.apache.ws.sandbox.security.trust.message.token
Class KeySize
java.lang.Object
org.apache.ws.sandbox.security.trust.message.token.AbstractToken
org.apache.ws.sandbox.security.trust.message.token.ValueElement
org.apache.ws.sandbox.security.trust.message.token.KeySize
- public class KeySize
- extends ValueElement
- Author:
- Ruchith Fernando
Field Summary |
static javax.xml.namespace.QName |
TOKEN
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TOKEN
public static final javax.xml.namespace.QName TOKEN
KeySize
public KeySize(org.w3c.dom.Element elem)
throws WSTrustException
KeySize
public KeySize(org.w3c.dom.Document doc)
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.