public class KerberosCallbackHandler extends Object implements CallbackHandler
This is a Kerberos-specific LoginContext CallbackHandler used to inject the default LoginContext for the Kerberos auth.
Per JavaSE javax auth API spec, this injection/override applies on the following cases (see below, ours falls in the 2nd
category):
- If the constructor has a CallbackHandler input parameter, the LoginContext uses the caller-specified CallbackHandler
object.
- If the constructor does not have a CallbackHandler input parameter, or if the caller specifies a null CallbackHandler object
(and a null value is permitted), the LoginContext queries the auth.login.defaultCallbackHandler security property for the fully
qualified class name of a default handler implementation. If the security property is not set, then the underlying modules will
not have a CallbackHandler for use in communicating with users. The caller thus assumes that the configured modules have
alternative means for authenticating the user.
- When the LoginContext uses the installed Configuration (instead of a caller-specified Configuration, see above), then this
LoginContext must wrap any caller-specified or default CallbackHandler implementation in a new CallbackHandler implementation
whose handle method implementation invokes the specified CallbackHandler's handle method in a
java.security.AccessController.doPrivileged call constrained by the caller's current AccessControlContext.
| Constructor and Description |
|---|
KerberosCallbackHandler() |
public void handle(Callback[] callbacks) throws UnsupportedCallbackException
handle in interface CallbackHandlerUnsupportedCallbackExceptionCopyright © 2014–2024 MuleSoft, Inc.. All rights reserved.