Module io.inverno.mod.security
Class PermissionBasedAccessController.Parameter
java.lang.Object
io.inverno.mod.security.accesscontrol.PermissionBasedAccessController.Parameter
- Enclosing interface:
PermissionBasedAccessController
A parameter is used to specify the context in which a permission is evaluated.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Field Details
-
key
The parameter key. -
value
The parameter value.
-
-
Method Details
-
getKey
Returns the parameter name.
- Returns:
- the name of the parameter
-
getValue
Returns the parameter value.
- Returns:
- the value of the parameter
-
of
public static PermissionBasedAccessController.Parameter of(String key, Object value) throws IllegalArgumentException Creates a permission parameter with the specified key and value.
- Parameters:
key
- the parameter keyvalue
- the parameter value- Returns:
- a parameter
- Throws:
IllegalArgumentException
- if the key is null or empty or if the value is null or not a string, nor a primitive
-
hashCode
public int hashCode() -
equals
-
toString
-