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
      C getClaims()
      Obtains the JWT claims.
      void setFailure​(java.lang.Throwable cause)
      Indicates failure in retrieving the roles.
      void setRoles​(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.