Package COM.activesw.api.client
Class BrokerAccessControlList
java.lang.Object
COM.activesw.api.client.BrokerAccessControlList
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.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty access control list (ACL).Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionString[]
Get the list of authenticator names which are allowed.boolean
getAuthNameState
(String name) Get the allow state for a single authenticator name.String[]
Get the list of user names which are allowed access.boolean
getUserNameState
(String name) Get the allow state for a single user name.void
setAuthNames
(String[] names) Set the list of authenticator names which are allowed.void
setAuthNameState
(String name, boolean is_allowed) Set the allow state for a single authenticator name.void
setAuthNameStates
(String[] names, boolean is_allowed) Set the allow state for a list of authenticator names.void
setUserNames
(String[] names) Set the list of user names which are allowed access.void
setUserNameState
(String name, boolean is_allowed) Set the allow state for a single user name.void
setUserNameStates
(String[] names, boolean is_allowed) Set the allow state for a list of user names.toString()
Get a string with the ACL in a form suitable for human viewing.Get a string with the ACL in a form suitable for human viewing.
-
Constructor Details
-
BrokerAccessControlList
public BrokerAccessControlList()Create an empty access control list (ACL). -
BrokerAccessControlList
Copy constructor.- Throws:
BrokerNullParameterException
- If acl is null.BrokerException
-
-
Method Details
-
getUserNames
Get the list of user names which are allowed access. -
setUserNames
Set the list of user names which are allowed access.- Throws:
BrokerNullParameterException
- If names is null, or if any name in the array is null.COM.activesw.api.client.BrokerBlankParameterException
- If names is blank, or if any name in the array is blank.BrokerException
-
getUserNameState
Get the allow state for a single user name. A name is allowed if it is currently in the list.- Throws:
BrokerNullParameterException
- If name is null.BrokerException
-
setUserNameState
Set the allow state for a single user name. This may result in adding or removing a name from the list.- Throws:
BrokerNullParameterException
- If name is null.COM.activesw.api.client.BrokerBlankParameterException
- If names is blank.BrokerException
-
setUserNameStates
Set the allow state for a list of user names. This may result in adding or removing from the list.- Throws:
BrokerNullParameterException
- If names is null, or if any name in the array is null.COM.activesw.api.client.BrokerBlankParameterException
- If names is blank, or if any name in the array is blank.BrokerException
-
getAuthNames
Get the list of authenticator names which are allowed. -
setAuthNames
Set the list of authenticator names which are allowed.- Throws:
BrokerNullParameterException
- If names is null, or if any name in the array is null.COM.activesw.api.client.BrokerBlankParameterException
- If names is blank, or if any name in the array is blank.BrokerException
-
getAuthNameState
Get the allow state for a single authenticator name. A name is allowed if it is currently in the list.- Throws:
BrokerNullParameterException
- If name is null.BrokerException
-
setAuthNameState
Set the allow state for a single authenticator name. This may result in adding or removing a name from the list.- Throws:
BrokerNullParameterException
- If name is null.COM.activesw.api.client.BrokerBlankParameterException
- If name is blank.BrokerException
-
setAuthNameStates
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.COM.activesw.api.client.BrokerBlankParameterException
- If names is blank, or if any name in the array is blank.BrokerException
-
toString
Get a string with the ACL in a form suitable for human viewing. -
toString
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.
-