Class PassthroughUserInterrogator
java.lang.Object
com.peterphi.std.guice.web.rest.auth.interceptor.PassthroughUserInterrogator
- All Implemented Interfaces:
AuthConstraintUserInterrogator
The default interrogator interface, used if
ServiceLoader
finds no custom implementations-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUser()
Returns the underlying user record for the current user, for retrieving Access Refuser, etc.
The return of this method will not be used to bypass theAuthConstraintUserInterrogator.hasRole(String)
method on the interrogatorboolean
Determines if the current user has a named role/capability
-
Constructor Details
-
PassthroughUserInterrogator
public PassthroughUserInterrogator()
-
-
Method Details
-
hasRole
Description copied from interface:AuthConstraintUserInterrogator
Determines if the current user has a named role/capability- Specified by:
hasRole
in interfaceAuthConstraintUserInterrogator
- Parameters:
role
- some role/capability name- Returns:
- true if the user has this role/capability, otherwise false
-
getUser
Description copied from interface:AuthConstraintUserInterrogator
Returns the underlying user record for the current user, for retrieving Access Refuser, etc.
The return of this method will not be used to bypass theAuthConstraintUserInterrogator.hasRole(String)
method on the interrogator- Specified by:
getUser
in interfaceAuthConstraintUserInterrogator
- Returns:
-