public class JWTSecretKeyAuthenticator extends AbstractJWTAuthenticator
_mapClaimsToCheck, _strJWTHttpHeader, LOGGER| Constructor and Description |
|---|
JWTSecretKeyAuthenticator(Map<String,String> mapClaimsToCheck,
String strJWTHttpHeader,
String strSecretKey)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
authenticateRequest(org.apache.commons.httpclient.HttpMethodBase method,
List<String> elements)
Authenticate a request
|
boolean |
isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
Check the Authentication of a request
|
public JWTSecretKeyAuthenticator(Map<String,String> mapClaimsToCheck, String strJWTHttpHeader, String strSecretKey)
mapClaimsToCheck - The map of claims key/values to check in the JWTstrJWTHttpHeader - The name of the header which contains the JWTstrSecretKey - The secret keypublic boolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
isRequestAuthenticated in interface RequestAuthenticatorisRequestAuthenticated in class AbstractJWTAuthenticatorrequest - The HTTP requestpublic void authenticateRequest(org.apache.commons.httpclient.HttpMethodBase method,
List<String> elements)
authenticateRequest in interface RequestAuthenticatorauthenticateRequest in class AbstractJWTAuthenticatormethod - The HTTP method to authenticateelements - List of elements to include in the signatureCopyright © 2019 City of Paris. All rights reserved.