com.ebasetech.ufs.security.authorisation
Interface Authoriser


public interface Authoriser

Implementations of this interface supply the function of Authorisation Manager to an Ebase system.


Method Summary
 boolean hasRole(java.lang.String roleName, javax.security.auth.Subject subject)
          Answers the question whether the user referred to by subject is associated with the named role
 void initialise(com.ebasetech.ufs.kernel.IUFSServletContextProxy proxy)
          Called at system start up to initialise any required resources
 boolean isAuthorised(SecurityAuthorisationRequest req, javax.security.auth.Subject subject)
          Answers the question whether the user referred to by subject is authorised for this request
 

Method Detail

isAuthorised

boolean isAuthorised(SecurityAuthorisationRequest req,
                     javax.security.auth.Subject subject)
                     throws com.ebasetech.ufs.security.authorisation.AuthorisationException
Answers the question whether the user referred to by subject is authorised for this request

Throws:
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.AuthorisationException
Answers 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