public class JWTSecretKeyAuthenticator extends AbstractJWTAuthenticator
_mapClaimsToCheck, _strJWTHttpHeader, LOGGER_lValidityTimePeriod| Constructor and Description |
|---|
JWTSecretKeyAuthenticator(Map<String,String> mapClaimsToCheck,
String strJWTHttpHeader,
long lValidityPeriod,
String strEncryptionAlgorythmName,
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
|
getExpirationDatebuildSignature, getSignatureElements, getValidityTimePeriod, isValidTimestamp, setHashService, setSignatureElements, setValidityTimePeriodpublic JWTSecretKeyAuthenticator(Map<String,String> mapClaimsToCheck, String strJWTHttpHeader, long lValidityPeriod, String strEncryptionAlgorythmName, String strSecretKey)
mapClaimsToCheck - The map of claims key/values to check in the JWTstrJWTHttpHeader - The name of the header which contains the JWTlValidityPeriod - The validity periodstrEncryptionAlgorythmName - The name of the algorithm. Values are HS256, HS384, HS512strSecretKey - The secret keypublic boolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
isRequestAuthenticated in interface RequestAuthenticatorisRequestAuthenticated in class AbstractJWTAuthenticatorrequest - The HTTP requestCopyright © 2019 City of Paris. All rights reserved.