Class ISAuthorizer

  • All Implemented Interfaces:
    IAuthorizer

    public class ISAuthorizer
    extends Object
    implements IAuthorizer
    This class implements the authorization plugin interface.

    When a LogRecord is passed into the logging framework it has to be verified if the client has the necessary authorization to perform this log operation. This class provides a model implementation for the authorization plugin.

    • Constructor Detail

      • ISAuthorizer

        public ISAuthorizer()
    • Method Detail

      • isAuthorized

        public boolean isAuthorized​(String logName,
                                    String operation,
                                    Object credential)
        Returns true if a given log record should be published.
        Specified by:
        isAuthorized in interface IAuthorizer
        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​(Object credential)
        Returns true if given subject is authorized to change the password.
        Specified by:
        isAuthorized in interface IAuthorizer
        Parameters:
        credential - Credential to be checked for authorization.
        Returns:
        true if given subject is authorized to change the password.