Interface Authoriser
public interface Authoriser
Implementations of this interface supply the function of Authorisation Manager to an Ebase
system.
-
Method Summary
Modifier and Type Method Description java.lang.String[]getRoles(javax.security.auth.Subject subject)booleanhasRole(java.lang.String roleName, javax.security.auth.Subject subject)Answers the question whether the user referred to by subject is associated with the named rolevoidinitialise(com.ebasetech.ufs.kernel.IUFSServletContextProxy proxy)Called at system start up to initialise any required resourcesbooleanisAuthorised(SecurityAuthorisationRequest req, javax.security.auth.Subject subject)Answers the question whether the user referred to by subject is authorised for this request
-
Method Details
-
isAuthorised
boolean isAuthorised(SecurityAuthorisationRequest req, javax.security.auth.Subject subject) throws com.ebasetech.ufs.security.authorisation.AuthorisationExceptionAnswers the question whether the user referred to by subject is authorised for this request- Throws:
com.ebasetech.ufs.security.authorisation.AuthorisationException- if an error occurs calling the backend system
-
hasRole
boolean hasRole(java.lang.String roleName, javax.security.auth.Subject subject) throws com.ebasetech.ufs.security.authorisation.AuthorisationExceptionAnswers the question whether the user referred to by subject is associated with the named role- Throws:
com.ebasetech.ufs.security.authorisation.AuthorisationException
-
initialise
void initialise(com.ebasetech.ufs.kernel.IUFSServletContextProxy proxy)Called at system start up to initialise any required resources -
getRoles
java.lang.String[] getRoles(javax.security.auth.Subject subject)
-