public class GrouperActivemqKerberosHandler extends Object implements CallbackHandler
javax.security.auth.callback
Constructor and Description |
---|
GrouperActivemqKerberosHandler(String thePrincipal,
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(Callback[] callbacks)
Handles the specified set of callbacks.
|
public GrouperActivemqKerberosHandler(String thePrincipal, 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(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle
in interface CallbackHandler
callbacks
- the callbacks to handleIOException
- if an input or output error occurs.UnsupportedCallbackException
- if the callback is not an
instance of NameCallback or PasswordCallbackCopyright © 2016 Internet2. All rights reserved.