Interface DelegationEvaluator

    • Method Detail

      • isAllowed

        boolean isAllowed​(SSOToken token,
                          DelegationPermission permission,
                          Map<String,​Set<String>> envParameters)
                   throws SSOException,
                          DelegationException
        Returns a boolean value indicating if a user has the specified permission.
        Parameters:
        token - SSO token of the user evaluating permission
        permission - delegation permission to be evaluated
        envParameters - run-time environment parameters
        Returns:
        the result of the evaluation as a boolean value
        Throws:
        SSOException - if single-sign-on token invalid or expired
        DelegationException - for any other abnormal condition
      • isAllowed

        boolean isAllowed​(SSOToken token,
                          DelegationPermission permission,
                          Map<String,​Set<String>> envParameters,
                          boolean subTreeMode)
                   throws SSOException,
                          DelegationException
        Returns a boolean value indicating if a user has the specified permission.
        Parameters:
        token - SSO token of the user evaluating permission
        permission - delegation permission to be evaluated
        envParameters - run-time environment parameters
        subTreeMode - whether to run in subtree mode or not
        Returns:
        the result of the evaluation as a boolean value
        Throws:
        SSOException - if single-sign-on token invalid or expired
        DelegationException - for any other abnormal condition