Package gda.jython.authoriser
Class LdapAuthoriser
java.lang.Object
gda.jython.authoriser.FileAuthoriser
gda.jython.authoriser.LdapAuthoriser
- All Implemented Interfaces:
Authoriser
Extension to the FileAuthoriser which fetches information from an ldap server if the account is not listed in the xml
files.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe java property to use to define which class of Authenticator to useFields inherited from interface gda.jython.authoriser.Authoriser
AUTHORISERCLASS_PROPERTY, DEFAULT_AUTHORISER, DEFAULT_LEVEL, DEFAULT_LEVEL_PROPERTY, DEFAULT_STAFF_LEVEL, DEFAULT_STAFF_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetAuthorisationLevel(String username) booleanhasAuthorisationLevel(String username) booleanisLocalStaff(String username) Returns true if the username is a member of facility staff and should have elevated privileges over users.Methods inherited from class gda.jython.authoriser.FileAuthoriser
addEntry, deleteEntry, getEntriesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.jython.authoriser.Authoriser
getDefaultPermissions
-
Field Details
-
LDAPSTAFF_PROPERTY
The java property to use to define which class of Authenticator to use- See Also:
-
-
Constructor Details
-
LdapAuthoriser
public LdapAuthoriser()
-
-
Method Details
-
hasAuthorisationLevel
- Overrides:
hasAuthorisationLevelin classFileAuthoriser
-
getAuthorisationLevel
- Specified by:
getAuthorisationLevelin interfaceAuthoriser- Overrides:
getAuthorisationLevelin classFileAuthoriser- Parameters:
username-- Returns:
- the authorisation level for the given username for this GDA installation
-
isLocalStaff
Description copied from interface:AuthoriserReturns true if the username is a member of facility staff and should have elevated privileges over users. Any accounts used for beamline testing/commissioning should also return true when using this method.- Specified by:
isLocalStaffin interfaceAuthoriser- Overrides:
isLocalStaffin classFileAuthoriser- Parameters:
username-- Returns:
- the username is in a separate list for beamline staff
-