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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CgetClaims()Obtains the JWT claims.voidsetFailure(java.lang.Throwable cause)Indicates failure in retrieving the roles.voidsetRoles(java.util.Collection<java.lang.String> roles)Specifies the roles.
-
-
-
Method Detail
-
getClaims
C getClaims()
Obtains the JWT claims.- Returns:
- JWT claims.
-
setRoles
void setRoles(java.util.Collection<java.lang.String> roles)
Specifies the roles.- Parameters:
roles- Roles
-
setFailure
void setFailure(java.lang.Throwable cause)
Indicates failure in retrieving the roles.- Parameters:
cause- Cause of failure.
-
-