org.apache.activemq.apollo.dto
Class AccessRuleDTO

java.lang.Object
  extended by org.apache.activemq.apollo.dto.AccessRuleDTO

public class AccessRuleDTO
extends java.lang.Object

User authorization to broker resources is accomplished by configuring access control rules. The rules define which principals are allowed or denied access to perform actions against server resources.

Author:
Hiram Chirino

Field Summary
 java.lang.String action
          The comma separated list of actions which match this rule.
 java.lang.String allow
          The principal which are allowed access to the action.
 java.lang.String connector
          The id of the connector the user must be connected on for the rule to match.
 java.lang.String deny
          The principal which are denied access to the action If set to "+" then it matches all principals but requires at at least one.
 java.lang.String id
          The identifier of the resource that will match this rule.
 java.lang.String id_regex
          A regular expression used to match the id of the resource.
 java.lang.String kind
          A space separated list of broker resource types that will match this rule.
 java.lang.String principal_kind
          A space separated list of class names of which will be matched against the principle type.
 java.lang.String separator
          If the separator is set, then the principal field will be interpreted as a list of principles separated by the configured value.
 
Constructor Summary
AccessRuleDTO()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

principal_kind

public java.lang.String principal_kind
A space separated list of class names of which will be matched against the principle type. If set to * then it matches all principal classes. Defaults to the default principal kinds configured on the broker or virtual host.


allow

public java.lang.String allow
The principal which are allowed access to the action. If set to "+" then it matches all principals but requires at at least one. If set to "*" then it matches all principals and even matches the case where there are no principals associated with the subject.


deny

public java.lang.String deny
The principal which are denied access to the action If set to "+" then it matches all principals but requires at at least one. If set to "*" then it matches all principals and even matches the case where there are no principals associated with the subject.


separator

public java.lang.String separator
If the separator is set, then the principal field will be interpreted as a list of principles separated by the configured value.


action

public java.lang.String action
The comma separated list of actions which match this rule. Example 'create,destroy'. You can use "*" to match all actions. Defaults to "*".


kind

public java.lang.String kind
A space separated list of broker resource types that will match this rule. You can use * to match all key. Example values 'broker queue'. Defaults to *.


id

public java.lang.String id
The identifier of the resource that will match this rule. You can use * to match all resources. If the kind is set to queue or topic the your can use a destination wild card to match against the destination id. Defaults to *.


connector

public java.lang.String connector
The id of the connector the user must be connected on for the rule to match. You can use `*` to match all connectors. Defaults to `*`.


id_regex

public java.lang.String id_regex
A regular expression used to match the id of the resource.

Constructor Detail

AccessRuleDTO

public AccessRuleDTO()
Method Detail

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.