com.sun.identity.log.spi
Class Authorizer

java.lang.Object
  extended by com.sun.identity.log.spi.Authorizer

public class Authorizer
extends Object

This class is used to verify the authorization of the of the person who is trying to perform a log operation.


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

Constructor Detail

Authorizer

public Authorizer()
Method Detail

isAuthorized

public static boolean isAuthorized(String logName,
                                   String operation,
                                   Object credential)
Returns true if a given log record should be published.

Parameters:
logName - Log name on which operation is to be performed.
operation - Log operation to be performed.
credential - Credential to be authorized.
Returns:
true if the credential is authorized.

isAuthorized

public static boolean isAuthorized(Object credential)
Returns true if given subject is authorized to change the password.

Parameters:
credential - Credential to be checked for authorization.
Returns:
true if given subject is authorized to change the password.