Class BrokerAccessControlList


  • public class BrokerAccessControlList
    extends java.lang.Object
    An access control list (ACL) consists of a list of names of users who should be allowed access, plus a list of names of authenticators which can issue users their identities.

    For SSL, a user name is a distinguished name, and the authenticator should be the distinguished name of the issuing certificate authority.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getAuthNames()
      Get the list of authenticator names which are allowed.
      boolean getAuthNameState​(java.lang.String name)
      Get the allow state for a single authenticator name.
      java.lang.String[] getUserNames()
      Get the list of user names which are allowed access.
      boolean getUserNameState​(java.lang.String name)
      Get the allow state for a single user name.
      void setAuthNames​(java.lang.String[] names)
      Set the list of authenticator names which are allowed.
      void setAuthNameState​(java.lang.String name, boolean is_allowed)
      Set the allow state for a single authenticator name.
      void setAuthNameStates​(java.lang.String[] names, boolean is_allowed)
      Set the allow state for a list of authenticator names.
      void setUserNames​(java.lang.String[] names)
      Set the list of user names which are allowed access.
      void setUserNameState​(java.lang.String name, boolean is_allowed)
      Set the allow state for a single user name.
      void setUserNameStates​(java.lang.String[] names, boolean is_allowed)
      Set the allow state for a list of user names.
      java.lang.String toString()
      Get a string with the ACL in a form suitable for human viewing.
      java.lang.String toString​(int indent_level, java.lang.String name)
      Get a string with the ACL in a form suitable for human viewing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getUserNames

        public java.lang.String[] getUserNames()
        Get the list of user names which are allowed access.
      • getAuthNames

        public java.lang.String[] getAuthNames()
        Get the list of authenticator names which are allowed.
      • setAuthNameStates

        public void setAuthNameStates​(java.lang.String[] names,
                                      boolean is_allowed)
                               throws BrokerException
        Set the allow state for a list of authenticator names. This may result in adding or removing names from the list.
        Throws:
        BrokerNullParameterException - If names is null, or if any name in the array is null.
        BrokerBlankParameterException - If names is blank, or if any name in the array is blank.
        BrokerException
      • toString

        public java.lang.String toString()
        Get a string with the ACL in a form suitable for human viewing.
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(int indent_level,
                                         java.lang.String name)
        Get a string with the ACL in a form suitable for human viewing. The "indent_level" is the number of 4-space indents that the output should be generated for. The "name" is the optional name to give the access list. It can be null.