Package gda.jython.authenticator
Class LdapAuthenticator
java.lang.Object
gda.jython.authenticator.LdapAuthenticator
- All Implemented Interfaces:
Authenticator
Uses an ldap server for authentication of a username and password
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default timeout if not defined in local propertiesstatic final Stringstatic final intThe default timeout if not defined in local propertiesstatic final StringProperty that holds a space-separated list of LDAP hostnames and/or IP addresses.static final StringThe java property to use to define the string of the SECURITY_PRINCIPAL to usestatic final StringThe java property to use to define the LDAP connection timeout in millisecondsstatic final StringThe java property to use to define the class of the initial context factory to usestatic final StringThe java property to use to define the LDAP connection timeout in millisecondsstatic final StringThe java property to use to define the url of the ldap serverFields inherited from interface gda.jython.authenticator.Authenticator
AUTHENTICATORCLASS_PROPERTY, DEFAULT_AUTHENTICATOR, NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAuthenticated(String fedId, String password) Returns true if the username and password can be authenticated.
-
Field Details
-
LDAP_HOSTS_PROPERTY
Property that holds a space-separated list of LDAP hostnames and/or IP addresses.- See Also:
-
DEFAULT_LDAP_HOST
- See Also:
-
LDAPURL_PROPERTY
The java property to use to define the url of the ldap server- See Also:
-
LDAPCONTEXT_PROPERTY
The java property to use to define the class of the initial context factory to use- See Also:
-
LDAPADMIN_PROPERTY
The java property to use to define the string of the SECURITY_PRINCIPAL to use- See Also:
-
LDAPCONNECT_TIMEOUT_PROPERTY
The java property to use to define the LDAP connection timeout in milliseconds- See Also:
-
DEFAULT_LDAP_CONNECT_TIMEOUT_MS
public static final int DEFAULT_LDAP_CONNECT_TIMEOUT_MSThe default timeout if not defined in local properties- See Also:
-
LDAPREAD_TIMEOUT_PROPERTY
The java property to use to define the LDAP connection timeout in milliseconds- See Also:
-
DEFAULT_LDAP_READ_TIMEOUT_MS
public static final int DEFAULT_LDAP_READ_TIMEOUT_MSThe default timeout if not defined in local properties- See Also:
-
-
Constructor Details
-
LdapAuthenticator
public LdapAuthenticator()
-
-
Method Details
-
isAuthenticated
Description copied from interface:AuthenticatorReturns true if the username and password can be authenticated.- Specified by:
isAuthenticatedin interfaceAuthenticator- Parameters:
fedId-password-- Returns:
- boolean
-