Package gda.jython.authenticator
Class JaasAuthenticator
java.lang.Object
gda.jython.authenticator.JaasAuthenticator
- All Implemented Interfaces:
Authenticator,CallbackHandler
Provides authentication within the Authenticator interface using JAAS.
-
Field Summary
FieldsFields inherited from interface gda.jython.authenticator.Authenticator
AUTHENTICATORCLASS_PROPERTY, DEFAULT_AUTHENTICATOR, NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanisAuthenticated(String username, String password) Returns true if the username and password can be authenticated.
-
Field Details
-
GDA_ACCESSCONTROL_JAAS_REALM
- See Also:
-
GDA_ACCESSCONTROL_JAAS_KDC
- See Also:
-
GDA_ACCESSCONTROL_JAAS_CONFFILE
- See Also:
-
-
Constructor Details
-
JaasAuthenticator
Constructor. Throws exception if java properties defining the Kerberos authentication are missing.- Throws:
IllegalArgumentException
-
-
Method Details
-
isAuthenticated
Description copied from interface:AuthenticatorReturns true if the username and password can be authenticated.- Specified by:
isAuthenticatedin interfaceAuthenticator- Parameters:
username-password-- Returns:
- boolean
-
handle
- Specified by:
handlein interfaceCallbackHandler- Throws:
IOExceptionUnsupportedCallbackException
-