org.jboss.soa.esb.services.security.auth.login
Class JBossSTSIssueCallbackHandler

java.lang.Object
  extended by org.jboss.soa.esb.services.security.auth.login.JBossSTSIssueCallbackHandler
All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler, org.jboss.internal.soa.esb.services.security.EsbCallbackHandler

public class JBossSTSIssueCallbackHandler
extends java.lang.Object
implements org.jboss.internal.soa.esb.services.security.EsbCallbackHandler

JAAS Callbackhandler that can be used with JBossSTS login modules.

This callback handler delegates to UserPassCallbackHandler to handle username and password callbacks. It also uses JBossSTSTokenCallbackHandler to retreive the token from the authentication request.

Author:
Daniel Bevenius

Constructor Summary
JBossSTSIssueCallbackHandler()
           
 
Method Summary
 void handle(javax.security.auth.callback.Callback[] callbacks)
           
 void setAuthenticationRequest(AuthenticationRequest authRequest)
           
 void setSecurityConfig(SecurityConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossSTSIssueCallbackHandler

public JBossSTSIssueCallbackHandler()
Method Detail

handle

public void handle(javax.security.auth.callback.Callback[] callbacks)
            throws java.io.IOException,
                   javax.security.auth.callback.UnsupportedCallbackException
Specified by:
handle in interface javax.security.auth.callback.CallbackHandler
Throws:
java.io.IOException
javax.security.auth.callback.UnsupportedCallbackException

setAuthenticationRequest

public void setAuthenticationRequest(AuthenticationRequest authRequest)
Specified by:
setAuthenticationRequest in interface org.jboss.internal.soa.esb.services.security.EsbCallbackHandler

setSecurityConfig

public void setSecurityConfig(SecurityConfig config)
Specified by:
setSecurityConfig in interface org.jboss.internal.soa.esb.services.security.EsbCallbackHandler