org.apache.ws.security.message.token
Class KeyInfo
java.lang.Object
org.apache.ws.security.message.token.KeyInfo
- public class KeyInfo
- extends java.lang.Object
|
Field Summary |
protected javax.security.auth.callback.CallbackHandler |
callBack
|
protected Crypto |
crypto
|
protected org.w3c.dom.Element |
element
|
static javax.xml.namespace.QName |
TOKEN
|
|
Constructor Summary |
KeyInfo(org.w3c.dom.Element elem,
javax.security.auth.callback.CallbackHandler cb,
Crypto c)
Constructor. |
|
Method Summary |
java.security.PrivateKey |
getPrivateKey()
|
static java.security.PrivateKey |
getPrivateKeyForName(java.lang.String name,
javax.security.auth.callback.CallbackHandler cb,
Crypto crypto)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOKEN
public static final javax.xml.namespace.QName TOKEN
element
protected org.w3c.dom.Element element
callBack
protected javax.security.auth.callback.CallbackHandler callBack
crypto
protected Crypto crypto
KeyInfo
public KeyInfo(org.w3c.dom.Element elem,
javax.security.auth.callback.CallbackHandler cb,
Crypto c)
throws WSSecurityException
- Constructor. Sets up the KeyInfo data structure from a DOM element.
- Parameters:
elem - The KeyInfo DOM elementcb - The callback handler to get the password to unlock a private
key. Maybe null if no password is required for
this instance of keyinfoc - An object implementing the Crypto interface to handle
certificates. Maybe null if no certificate is
required for this instance of keyinfo
- Throws:
WSSecurityException
getPrivateKey
public java.security.PrivateKey getPrivateKey()
throws WSSecurityException
- Throws:
WSSecurityException
getPrivateKeyForName
public static java.security.PrivateKey getPrivateKeyForName(java.lang.String name,
javax.security.auth.callback.CallbackHandler cb,
Crypto crypto)
throws WSSecurityException
- Throws:
WSSecurityException
Copyright © 2004-2006 Apache Web Services. All Rights Reserved.