public class GrouperWsKerberosHandler
extends java.lang.Object
implements javax.security.auth.callback.CallbackHandler
Pass in This can be used by a JAAS application to instantiate a CallbackHandler
javax.security.auth.callback
Constructor and Description |
---|
GrouperWsKerberosHandler(java.lang.String thePrincipal,
java.lang.String thePassword)
Creates a callback handler that prompts and reads from the
command line for answers to authentication questions.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(javax.security.auth.callback.Callback[] callbacks)
Handles the specified set of callbacks.
|
public GrouperWsKerberosHandler(java.lang.String thePrincipal, java.lang.String thePassword)
Creates a callback handler that prompts and reads from the command line for answers to authentication questions. This can be used by JAAS applications to instantiate a CallbackHandler.
thePrincipal
- principalthePassword
- passwordpublic void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
handle
in interface javax.security.auth.callback.CallbackHandler
callbacks
- the callbacks to handlejava.io.IOException
- if an input or output error occurs.javax.security.auth.callback.UnsupportedCallbackException
- if the callback is not an
instance of NameCallback or PasswordCallback