org.apache.servicemix.soap.handlers.security
Class WSSecurityHandler.DefaultHandler

java.lang.Object
  extended by org.apache.servicemix.soap.handlers.security.BaseSecurityCallbackHandler
      extended by org.apache.servicemix.soap.handlers.security.WSSecurityHandler.DefaultHandler
All Implemented Interfaces:
CallbackHandler
Enclosing class:
WSSecurityHandler

protected class WSSecurityHandler.DefaultHandler
extends BaseSecurityCallbackHandler


Constructor Summary
protected WSSecurityHandler.DefaultHandler()
           
 
Method Summary
protected  void processSignature(org.apache.ws.security.WSPasswordCallback callback)
          Need the password to get the private key of this identifier (username) from the keystore.
protected  void processUsernameTokenUnkown(org.apache.ws.security.WSPasswordCallback callback)
          Either a not specified password type or a password type passwordText.
 
Methods inherited from class org.apache.servicemix.soap.handlers.security.BaseSecurityCallbackHandler
handle, processCallback, processDecrypt, processKeyName, processUsernameToken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSSecurityHandler.DefaultHandler

protected WSSecurityHandler.DefaultHandler()
Method Detail

processSignature

protected void processSignature(org.apache.ws.security.WSPasswordCallback callback)
                         throws IOException,
                                UnsupportedCallbackException
Description copied from class: BaseSecurityCallbackHandler
Need the password to get the private key of this identifier (username) from the keystore. WSS4J uses this private key to produce a signature. The signature verfication uses the public key to verfiy the signature

Overrides:
processSignature in class BaseSecurityCallbackHandler
Throws:
IOException
UnsupportedCallbackException

processUsernameTokenUnkown

protected void processUsernameTokenUnkown(org.apache.ws.security.WSPasswordCallback callback)
                                   throws IOException,
                                          UnsupportedCallbackException
Description copied from class: BaseSecurityCallbackHandler
Either a not specified password type or a password type passwordText. In these both cases only the password variable is set. The callback class now may check if the username and password match. If they don't match the callback class must throw an exception. The exception can be a UnsupportedCallbackException or an IOException.

Overrides:
processUsernameTokenUnkown in class BaseSecurityCallbackHandler
Throws:
IOException
UnsupportedCallbackException


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.