| java.lang.Object com.flexive.core.security.PassiveCallbackHandler
PassiveCallbackHandler | public class PassiveCallbackHandler implements CallbackHandler(Code) | | PassiveCallbackHandler has constructor that takes
a username and password so its handle() method does
not have to prompt the user for input.
Useful for server-side applications.
author: Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Method Summary | |
public void | clearPassword() Clears out password state. | public void | handle(Callback[] callbacks) Handles the specified set of Callbacks. |
PassiveCallbackHandler | public PassiveCallbackHandler(String user, String pass, boolean takeOverSession, SessionContext ctx, DataSource ds)(Code) | | Creates a callback handler with the give username and password.
Parameters: user - the username Parameters: pass - the password Parameters: takeOverSession - if an existing session should be "taken over" Parameters: ctx - the session context to be used Parameters: ds - the datasource to be used for authentication |
clearPassword | public void clearPassword()(Code) | | Clears out password state.
|
handle | public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException(Code) | | Handles the specified set of Callbacks. Uses the username and password that were supplied to our
constructor to popluate the Callbacks.
This class supports NameCallback and PasswordCallback.
Parameters: callbacks - the callbacks to handle throws: IOException - if an input or output error occurs. throws: UnsupportedCallbackException - if the callback is not an instance of NameCallback or PasswordCallback |
|
|