Interface JwtHttpAccessControl<C>
-
- All Superinterfaces:
HttpAccessControl
,java.io.Serializable
public interface JwtHttpAccessControl<C> extends HttpAccessControl
Extra JWT functions toHttpAccessControl
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description C
getClaims()
Obtains the JWT claims.-
Methods inherited from interface net.officefloor.web.security.HttpAccessControl
getAuthenticationScheme, getPrincipal, inRole, isAccess
-
-
-
-
Method Detail
-
getClaims
C getClaims()
Obtains the JWT claims.
While this is available, it does reduce the re-usability of the
HttpAccessControl
(and resulting infrastructure built on it). Ideally, this should not be used withHttpAccessControl.inRole(String)
being preferred.However, if direct access to the claim is required, it should just be depended on as a custom access control object. For example, a
ManagedObjectSource
can be created to depend on the claims object and data store. ThisManagedObjectSource
can retrieve the user entry for the JWT claims from the data store and make available for dependency injection. This provides a re-usable application centricManagedObjectSource
that does not depend on (possibly changing) OfficeFloor enforced "standard"HttpSecurity
interfaces.- Returns:
- JWT claims.
-
-