Interface JWTClaimProvider

  • All Known Implementing Classes:
    EPersonClaimProvider, SpecialGroupClaimProvider

    public interface JWTClaimProvider
    Interface to be implemented if you want to add a custom claim to a JSON Web Token, annotate with @Component to include it's implementation in the token
    Author:
    Frederic Van Reet (frederic dot vanreet at atmire dot com), Tom Desair (tom dot desair at atmire dot com)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getKey()  
      Object getValue​(org.dspace.core.Context context, javax.servlet.http.HttpServletRequest request)  
      void parseClaim​(org.dspace.core.Context context, javax.servlet.http.HttpServletRequest request, com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)  
    • Method Detail

      • getValue

        Object getValue​(org.dspace.core.Context context,
                        javax.servlet.http.HttpServletRequest request)
      • parseClaim

        void parseClaim​(org.dspace.core.Context context,
                        javax.servlet.http.HttpServletRequest request,
                        com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
                 throws SQLException
        Throws:
        SQLException