org.springframework.ws.soap.security.xwss.callback.jaas
Class JaasPlainTextPasswordValidationCallbackHandler

java.lang.Object
  extended by org.springframework.ws.soap.security.callback.AbstractCallbackHandler
      extended by org.springframework.ws.soap.security.xwss.callback.jaas.AbstractJaasValidationCallbackHandler
          extended by org.springframework.ws.soap.security.xwss.callback.jaas.JaasPlainTextPasswordValidationCallbackHandler
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler, org.springframework.beans.factory.InitializingBean

public class JaasPlainTextPasswordValidationCallbackHandler
extends AbstractJaasValidationCallbackHandler

Provides basic support for integrating with JAAS and plain text passwords.

This class only handles PasswordValidationCallbacks that contain a PlainTextPasswordRequest, and throws an UnsupportedCallbackException for others.

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
AbstractJaasValidationCallbackHandler.getLoginContextName()

Field Summary
 
Fields inherited from class org.springframework.ws.soap.security.callback.AbstractCallbackHandler
logger
 
Constructor Summary
JaasPlainTextPasswordValidationCallbackHandler()
           
 
Method Summary
protected  void handleInternal(javax.security.auth.callback.Callback callback)
          Handles PasswordValidationCallbacks that contain a PlainTextPasswordRequest, and throws an UnsupportedCallbackException for others.
 
Methods inherited from class org.springframework.ws.soap.security.xwss.callback.jaas.AbstractJaasValidationCallbackHandler
afterPropertiesSet, getLoginContextName, setLoginContextName
 
Methods inherited from class org.springframework.ws.soap.security.callback.AbstractCallbackHandler
handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaasPlainTextPasswordValidationCallbackHandler

public JaasPlainTextPasswordValidationCallbackHandler()
Method Detail

handleInternal

protected final void handleInternal(javax.security.auth.callback.Callback callback)
                             throws javax.security.auth.callback.UnsupportedCallbackException
Handles PasswordValidationCallbacks that contain a PlainTextPasswordRequest, and throws an UnsupportedCallbackException for others.

Specified by:
handleInternal in class AbstractCallbackHandler
Throws:
javax.security.auth.callback.UnsupportedCallbackException - when the callback is not supported


Copyright © 2011. All Rights Reserved.