Package net.officefloor.web.jwt.role
Interface JwtRoleCollector<C>
public interface JwtRoleCollector<C>
Collects the roles for the JWT claims.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionObtains the JWT claims.voidsetFailure(Throwable cause) Indicates failure in retrieving the roles.voidsetRoles(Collection<String> roles) Specifies the roles.
-
Method Details
-
getClaims
C getClaims()Obtains the JWT claims.- Returns:
- JWT claims.
-
setRoles
Specifies the roles.- Parameters:
roles- Roles
-
setFailure
Indicates failure in retrieving the roles.- Parameters:
cause- Cause of failure.
-