com.ibm.wsspi.wssecurity.auth.callback

Interface CallbackHandlerFactory

All Superinterfaces:
Initializable
All known implementing classes:
CallbackHandlerFactoryImpl, WSCallbackHandlerFactoryImpl

Deprecated.
  1. public interface CallbackHandlerFactory
  2. extends Initializable
A factory for 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
  1. javax.security.auth.callback.CallbackHandler
newCallbackHandler()
Deprecated. Returns a CallbackHandler object.
  1. void
setPassword(char[] password)
Deprecated. Sets a password in the <UsernameToken> element.
  1. void
setProperties(java.util.Map properties)
Deprecated. Sets a Map object which contains name-value pairs in configuration XMI files.
  1. void
setRealm(java.lang.String realm)
Deprecated. Sets a realm name.
  1. void
setSOAPMessage(org.w3c.dom.Document SOAPMessage)
Deprecated. Sets an entire SOAP message.
  1. void
setTokenBytes(byte[] tokenBytes)
Deprecated. Sets a decoded byte array in the <BinarySecurityToken> element.
  1. void
setUsername(java.lang.String username)
Deprecated. Sets a username in the <UsernameToken> element.
  1. void
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

  1. void setUsername(java.lang.String username)
Deprecated.
Sets a username in the <UsernameToken> element.
Parameters:
username - A username.

setRealm

  1. void setRealm(java.lang.String realm)
Deprecated.
Sets a realm name. This method is reserved for future use.
Parameters:
realm - A realm name.

setPassword

  1. void setPassword(char[] password)
Deprecated.
Sets a password in the <UsernameToken> element.
Parameters:
password - A password.

setTokenBytes

  1. void setTokenBytes(byte[] tokenBytes)
Deprecated.
Sets a decoded byte array in the <BinarySecurityToken> element.
Parameters:
tokenBytes - A decoded byte array.

setXMLToken

  1. void setXMLToken(org.w3c.dom.Element xmlToken)
Deprecated.
Sets a custom XML token.
Parameters:
xmlToken - A custom XML token.

setSOAPMessage

  1. void setSOAPMessage(org.w3c.dom.Document SOAPMessage)
Deprecated.
Sets an entire SOAP message.
Parameters:
SOAPMessage - An entire SOAP message.

setProperties

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

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