Package org.dspace.app.rest.security.jwt
Interface JWTClaimProvider
-
- All Known Implementing Classes:
EPersonClaimProvider,SpecialGroupClaimProvider
public interface JWTClaimProviderInterface 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 StringgetKey()ObjectgetValue(org.dspace.core.Context context, javax.servlet.http.HttpServletRequest request)voidparseClaim(org.dspace.core.Context context, javax.servlet.http.HttpServletRequest request, com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
-
-
-
Method Detail
-
getKey
String getKey()
-
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
-
-