com.sun.identity.log.spi
Interface IAuthorizer


public interface IAuthorizer

An AuthzPlugin can be used to verify the authorization of the of the person who is trying to perform a log operation.


Method Summary
 boolean isAuthorized(java.lang.Object credential)
          Returns true if given subject is authorized to change the password or not.
 boolean isAuthorized(java.lang.String logName, java.lang.String operation, java.lang.Object credential)
          Returns true if a given log record should be published.
 

Method Detail

isAuthorized

public boolean isAuthorized(java.lang.String logName,
                            java.lang.String operation,
                            java.lang.Object credential)
Returns true if a given log record should be published.
Parameters:
logName - Log name on which operation is to be performed
operation - The log operation to be performed
credential - The credential to be authorized
Returns:
true if the credential is authorized.

isAuthorized

public boolean isAuthorized(java.lang.Object credential)
Returns true if given subject is authorized to change the password or not.
Parameters:
credential - The credential to be checked for authorization.
Returns:
true if given subject is authorized to change the password or not.