SubjectCachingHandler
Attributes
- Deprecated
-
[Since version 2.5.1]
Use the subject accessible via AuthenticatedRequest instead. This will be removed in Deadbolt 2.6. - Graph
-
- Supertypes
Members list
Value members
Concrete methods
Invoked prior to a constraint's test. If Option.None is returned, the constraint is applied. If the option contains a result, the constraint will not be applied and the wrapped action will not be invoked.
Invoked prior to a constraint's test. If Option.None is returned, the constraint is applied. If the option contains a result, the constraint will not be applied and the wrapped action will not be invoked.
Attributes
- Returns
-
an option possible containing a Result.
- Definition Classes
Gets the handler used for dealing with resources restricted to specific users/groups.
Gets the handler used for dealing with resources restricted to specific users/groups.
Attributes
- Returns
-
an option containing the handler for restricted resources
- Definition Classes
Gets the current subject e.g. the current user.
Gets the current subject e.g. the current user.
Attributes
- Returns
-
a future for an option containing the current subject
- Definition Classes
Invoked when an authorization failure is detected for the request.
Invoked when an authorization failure is detected for the request.
Value parameters
- request
-
the authenticated request
Attributes
- Returns
-
the action
- Definition Classes
Inherited methods
Get the permissions associated with a role.
Get the permissions associated with a role.
Value parameters
- roleName
-
the role the permissions are associated with
Attributes
- Returns
-
a non-null list containing the permissions associated with the role
- Inherited from:
- DeadboltHandler
Gets the canonical name of the handler. Defaults to the class name.
Gets the canonical name of the handler. Defaults to the class name.
Attributes
- Returns
-
whatever the implementor considers the canonical name of the handler to be
- Inherited from:
- DeadboltHandler
Invoked when authorization succeeds.
Invoked when authorization succeeds.
Value parameters
- constraintPoint
-
the point at which the constraint was applied
- constraintType
-
the type of constraint, e.g. dynamic, restrict, etc
- request
-
the authenticated request
Attributes
- Since
-
2.5.1
- Inherited from:
- DeadboltHandler