Class DelegationModelImpl

    • Constructor Detail

      • DelegationModelImpl

        public DelegationModelImpl​(jakarta.servlet.http.HttpServletRequest req,
                                   Map map)
    • Method Detail

      • getSubjects

        public Set getSubjects​(String realmName,
                               String pattern)
                        throws AMConsoleException
        Returns delegation subjects under a realm. Returning a set of universal ID of subject.
        Specified by:
        getSubjects in interface DelegationModel
        Parameters:
        realmName - Name of realm.
        pattern - Wildcard for matching subject name.
        Returns:
        delegation subjects under a realm.
        Throws:
        AMConsoleException - if subject universal ID cannot be obtained.
      • setPrivileges

        public void setPrivileges​(String realmName,
                                  String uid,
                                  Map privileges)
                           throws AMConsoleException
        Set privileges of an identity.
        Specified by:
        setPrivileges in interface DelegationModel
        Parameters:
        realmName - Name of realm.
        uid - Universal ID of the identity.
        privileges - Map of privilege name to privilege value.
        Throws:
        AMConsoleException - if privilege cannot be set.