com.ibm.wsspi.wssecurity.auth.callback
Interface CallbackHandlerFactory
All Superinterfaces:
All known implementing classes:
Deprecated.
- public interface CallbackHandlerFactory
- extends Initializable
CallbackHandler
in the WS-Security toolkit. Developers who are
providing CallbackHandler
classes to the toolkit must implement this
interface. The WS-Security runtime instantiates the implementation class
and passes the authentication information from <wsse:Security> header to
the CallbackHandlerFactory class through the set methods. Then
the newCallbackHandler()
method is invoked to obtain CallbackHandler object.
Method Summary
Modifier and Type | Method and Description |
---|---|
|
newCallbackHandler()
Deprecated. Returns a
CallbackHandler object.
|
|
setPassword(char[] password)
Deprecated. Sets a password in the
<UsernameToken> element.
|
|
setProperties(java.util.Map properties)
Deprecated. Sets a
Map object which contains name-value pairs in
configuration XMI files.
|
|
setRealm(java.lang.String realm)
Deprecated. Sets a realm name.
|
|
setSOAPMessage(org.w3c.dom.Document SOAPMessage)
Deprecated. Sets an entire SOAP message.
|
|
setTokenBytes(byte[] tokenBytes)
Deprecated. Sets a decoded byte array in the
<BinarySecurityToken>
element.
|
|
setUsername(java.lang.String username)
Deprecated. Sets a username in the
<UsernameToken> element.
|
|
setXMLToken(org.w3c.dom.Element xmlToken)
Deprecated. Sets a custom XML token.
|
Methods inherited from interface com.ibm.wsspi.wssecurity.Initializable |
---|
init |
Method Detail
setUsername
- void setUsername(java.lang.String username)
Deprecated.
Parameters:
username
- A username. setRealm
- void setRealm(java.lang.String realm)
Deprecated.
Sets a realm name. This method is reserved for future use.
Parameters:
realm
- A realm name. setPassword
- void setPassword(char[] password)
Deprecated.
Sets a password in the
<UsernameToken>
element.
Parameters:
password
- A password. setTokenBytes
- void setTokenBytes(byte[] tokenBytes)
Deprecated.
Sets a decoded byte array in the
<BinarySecurityToken>
element.
Parameters:
tokenBytes
- A decoded byte array. setXMLToken
- void setXMLToken(org.w3c.dom.Element xmlToken)
Deprecated.
Sets a custom XML token.
Parameters:
xmlToken
- A custom XML token. setSOAPMessage
- void setSOAPMessage(org.w3c.dom.Document SOAPMessage)
Deprecated.
Sets an entire SOAP message.
Parameters:
SOAPMessage
- An entire SOAP message. setProperties
- void setProperties(java.util.Map properties)
Deprecated.
Sets a
Map
object which contains name-value pairs in
configuration XMI files. They correspond to
LoginMapping/Property
elements.
Parameters:
properties
- A Map
object which contains name-value
pairs. newCallbackHandler
- javax.security.auth.callback.CallbackHandler newCallbackHandler( )
Deprecated.
Returns a
CallbackHandler
object. This method is invoked
by the WS-Security runtime after set methods are invoked.
Returns:
a CallbackHandler object.
<UsernameToken>
element.