Interface IPrivilege

    • Method Detail

      • getName

        String getName()
        Returns name.
        Returns:
        name.
      • getLastModifiedDate

        long getLastModifiedDate()
        Returns the date (as milliseconds since the Java epoch) since this privilege was last modified.
        Returns:
        the last modified date.
      • evaluate

        List<Entitlement> evaluate​(Subject adminSubject,
                                   String realm,
                                   Subject subject,
                                   String applicationName,
                                   String normalisedResourceName,
                                   String requestedResourceName,
                                   Set<String> actionNames,
                                   Map<String,​Set<String>> environment,
                                   boolean recursive,
                                   Object context)
                            throws EntitlementException
        Returns a list of entitlement for a given subject, resource name and environment.
        Parameters:
        adminSubject - Admin Subject
        realm - Realm Name
        subject - Subject who is under evaluation.
        applicationName - Application name.
        normalisedResourceName - The normalised resource name.
        requestedResourceName - The requested resource name.
        actionNames - Set of action names.
        environment - Environment parameters.
        recursive - true to perform evaluation on sub resources from the given resource name.
        context - A security context
        Returns:
        a list of entitlement for a given subject, resource name and environment.
        Throws:
        EntitlementException - if the result cannot be determined.