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
Constructors -
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 interrogatorbooleanDetermines if the current user has a named role/capability
-
Constructor Details
-
PassthroughUserInterrogator
public PassthroughUserInterrogator()
-
-
Method Details
-
hasRole
Description copied from interface:AuthConstraintUserInterrogatorDetermines if the current user has a named role/capability- Specified by:
hasRolein interfaceAuthConstraintUserInterrogator- Parameters:
role- some role/capability name- Returns:
- true if the user has this role/capability, otherwise false
-
getUser
Description copied from interface:AuthConstraintUserInterrogatorReturns 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:
getUserin interfaceAuthConstraintUserInterrogator- Returns:
-