Class GroupAccessEvaluator

  • All Implemented Interfaces:
    com.netscape.certsrv.evaluators.IAccessEvaluator

    public class GroupAccessEvaluator
    extends java.lang.Object
    implements com.netscape.certsrv.evaluators.IAccessEvaluator
    A class represents a group acls evaluator.

    Version:
    $Revision$, $Date$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean evaluate​(com.netscape.certsrv.authentication.IAuthToken authToken, java.lang.String type, java.lang.String op, java.lang.String value)
      evaluates uid in AuthToken to see if it has membership in group value
      boolean evaluate​(java.lang.String type, java.lang.String op, java.lang.String value)
      evaluates uid in SessionContext to see if it has membership in group value
      java.lang.String getDescription()
      gets the description for this acl evaluator
      java.lang.String[] getSupportedOperators()
      Get the supported operators for this evaluator
      java.lang.String getType()
      gets the type name for this acl evaluator
      void init()
      initialization.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • GroupAccessEvaluator

        public GroupAccessEvaluator()
        Class constructor.
    • Method Detail

      • init

        public void init()
        initialization. nothing for now.
        Specified by:
        init in interface com.netscape.certsrv.evaluators.IAccessEvaluator
      • getType

        public java.lang.String getType()
        gets the type name for this acl evaluator
        Specified by:
        getType in interface com.netscape.certsrv.evaluators.IAccessEvaluator
        Returns:
        type for this acl evaluator: "group" or "at_group"
      • getDescription

        public java.lang.String getDescription()
        gets the description for this acl evaluator
        Specified by:
        getDescription in interface com.netscape.certsrv.evaluators.IAccessEvaluator
        Returns:
        description for this acl evaluator
      • getSupportedOperators

        public java.lang.String[] getSupportedOperators()
        Description copied from interface: com.netscape.certsrv.evaluators.IAccessEvaluator
        Get the supported operators for this evaluator
        Specified by:
        getSupportedOperators in interface com.netscape.certsrv.evaluators.IAccessEvaluator
        Returns:
        Supported operators in string array
      • evaluate

        public boolean evaluate​(com.netscape.certsrv.authentication.IAuthToken authToken,
                                java.lang.String type,
                                java.lang.String op,
                                java.lang.String value)
        evaluates uid in AuthToken to see if it has membership in group value
        Specified by:
        evaluate in interface com.netscape.certsrv.evaluators.IAccessEvaluator
        Parameters:
        authToken - authentication token
        type - must be "at_group"
        op - must be "="
        value - the group name
        Returns:
        true if AuthToken uid belongs to the group value, false otherwise
      • evaluate

        public boolean evaluate​(java.lang.String type,
                                java.lang.String op,
                                java.lang.String value)
        evaluates uid in SessionContext to see if it has membership in group value
        Specified by:
        evaluate in interface com.netscape.certsrv.evaluators.IAccessEvaluator
        Parameters:
        type - must be "group"
        op - must be "="
        value - the group name
        Returns:
        true if SessionContext uid belongs to the group value, false otherwise