org.camunda.bpm.security.jaas
Class PassiveCallbackHandler

java.lang.Object
  extended by org.camunda.bpm.security.jaas.PassiveCallbackHandler
All Implemented Interfaces:
CallbackHandler

public class PassiveCallbackHandler
extends Object
implements CallbackHandler

Provides user name and password without user interaction.

Author:
nico.rehwaldt
See Also:
http://roneiv.wordpress.com/2008/02/19/perform-a-jaas-programmatic-login-in-jboss-try-to-solve-the-empty-remote-user-problem/

Constructor Summary
PassiveCallbackHandler(String userName, String password)
          Create the callback handler with user name and password
 
Method Summary
 void handle(Callback[] callbacks)
          Handle callbacks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassiveCallbackHandler

public PassiveCallbackHandler(String userName,
                              String password)
Create the callback handler with user name and password

Parameters:
userName -
password -
Method Detail

handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Handle callbacks

Specified by:
handle in interface CallbackHandler
Parameters:
callbacks -
Throws:
IOException
UnsupportedCallbackException


Copyright © 2014 camunda services GmbH. All rights reserved.