at.spardat.xma.security
Interface Authorisation


public interface Authorisation

This is the interface of all authorisation plugins. Authorisation plugins are used to check if a given user is allowed to call a given function.


Method Summary
 boolean isAuthorized(javax.security.auth.Subject subject, java.lang.String function)
          Check if the given user is alowed to perform the given function.
 

Method Detail

isAuthorized

public boolean isAuthorized(javax.security.auth.Subject subject,
                            java.lang.String function)
Check if the given user is alowed to perform the given function.

Parameters:
subject - the subject as returned by the LoginModule
function - a String identifying the desired operation
Returns:
true if the user is allowed to perform the function false otherwise