Class GetPrivilegesRequest

  • All Implemented Interfaces:
    Validatable

    public final class GetPrivilegesRequest
    extends java.lang.Object
    implements Validatable
    Request object to get application privilege(s)
    • Constructor Detail

      • GetPrivilegesRequest

        public GetPrivilegesRequest​(@Nullable
                                    java.lang.String applicationName,
                                    @Nullable
                                    java.lang.String... privilegeNames)
    • Method Detail

      • getApplicationPrivileges

        public static GetPrivilegesRequest getApplicationPrivileges​(java.lang.String applicationName)
        Constructs a GetPrivilegesRequest to request all the privileges defined for the specified applicationName
        Parameters:
        applicationName - the name of the application for which the privileges are requested
      • getApplicationName

        public java.lang.String getApplicationName()
        Returns:
        the name of the application for which to return certain privileges
      • getPrivilegeNames

        public java.lang.String[] getPrivilegeNames()
        Returns:
        an array of privilege names to return or null if all should be returned
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object