Class RestrictedAuthorityCompression.CompressedAuthorities
java.lang.Object
com.broadleafcommerce.oauth2.resource.security.token.converter.RestrictedAuthorityCompression.CompressedAuthorities
- Enclosing class:
- RestrictedAuthorityCompression
Represents the root object of the compressed authority structure. It contains dictionaries
for strings and the main permissions data.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefines a permission rule, linking a set of restrictions to a list of actions.static classDefines a single rule within a restriction set, linking a restriction type to its values. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe dictionary of action names (e.g., "READ", "UPDATE").The main permissions structure.The dictionary of resource names (e.g., "PRODUCT", "ORDER").A list of unique restriction sets.The dictionary of restriction type names (e.g., "ITEMS"). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetA()The dictionary of action names (e.g., "READ", "UPDATE").getP()The main permissions structure.getR()The dictionary of resource names (e.g., "PRODUCT", "ORDER").getS()A list of unique restriction sets.getT()The dictionary of restriction type names (e.g., "ITEMS").inthashCode()voidThe dictionary of action names (e.g., "READ", "UPDATE").voidThe main permissions structure.voidThe dictionary of resource names (e.g., "PRODUCT", "ORDER").voidA list of unique restriction sets.voidThe dictionary of restriction type names (e.g., "ITEMS").
-
Field Details
-
a
The dictionary of action names (e.g., "READ", "UPDATE"). -
r
The dictionary of resource names (e.g., "PRODUCT", "ORDER"). -
t
The dictionary of restriction type names (e.g., "ITEMS"). -
s
A list of unique restriction sets. Each inner list represents one set. -
p
The main permissions structure. The outer list is indexed by the resource ID fromr. Each inner list contains the rules that apply to that resource.
-
-
Constructor Details
-
CompressedAuthorities
public CompressedAuthorities()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
setA
The dictionary of action names (e.g., "READ", "UPDATE"). -
setR
The dictionary of resource names (e.g., "PRODUCT", "ORDER"). -
setT
The dictionary of restriction type names (e.g., "ITEMS"). -
setS
A list of unique restriction sets. Each inner list represents one set. -
setP
The main permissions structure. The outer list is indexed by the resource ID fromr. Each inner list contains the rules that apply to that resource. -
getA
The dictionary of action names (e.g., "READ", "UPDATE"). -
getR
The dictionary of resource names (e.g., "PRODUCT", "ORDER"). -
getT
The dictionary of restriction type names (e.g., "ITEMS"). -
getS
A list of unique restriction sets. Each inner list represents one set. -
getP
The main permissions structure. The outer list is indexed by the resource ID fromr. Each inner list contains the rules that apply to that resource.
-