Package org.dspace.app.rest.security.jwt
Class AuthenticationMethodClaimProvider
- java.lang.Object
-
- org.dspace.app.rest.security.jwt.AuthenticationMethodClaimProvider
-
- All Implemented Interfaces:
JWTClaimProvider
@Component public class AuthenticationMethodClaimProvider extends Object implements JWTClaimProvider
Provides a claim for a JSON Web Token, this claim is responsible for adding the authentication method to it
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTHENTICATION_METHOD
-
Constructor Summary
Constructors Constructor Description AuthenticationMethodClaimProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetKey()ObjectgetValue(Context context, javax.servlet.http.HttpServletRequest request)voidparseClaim(Context context, javax.servlet.http.HttpServletRequest request, com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
-
-
-
Field Detail
-
AUTHENTICATION_METHOD
public static final String AUTHENTICATION_METHOD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceJWTClaimProvider
-
getValue
public Object getValue(Context context, javax.servlet.http.HttpServletRequest request)
- Specified by:
getValuein interfaceJWTClaimProvider
-
parseClaim
public void parseClaim(Context context, javax.servlet.http.HttpServletRequest request, com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet) throws SQLException
- Specified by:
parseClaimin interfaceJWTClaimProvider- Throws:
SQLException
-
-