public abstract class AbstractJWTAuthenticator extends AbstractAuthenticator
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
_mapClaimsToCheck |
protected String |
_strJWTHttpHeader |
protected static org.apache.log4j.Logger |
LOGGER |
_lValidityTimePeriod
Constructor and Description |
---|
AbstractJWTAuthenticator(Map<String,String> mapClaimsToCheck,
String strJWTHttpHeader,
long lValidityTimePeriod)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected Date |
getExpirationDate()
Get expiration date
|
boolean |
isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
Check the Authentication of a request
|
buildSignature, getSignatureElements, getValidityTimePeriod, isValidTimestamp, setHashService, setSignatureElements, setValidityTimePeriod
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticateRequest
protected static final org.apache.log4j.Logger LOGGER
protected String _strJWTHttpHeader
public AbstractJWTAuthenticator(Map<String,String> mapClaimsToCheck, String strJWTHttpHeader, long lValidityTimePeriod)
mapClaimsToCheck
- The map of claims key/values to check in the JWTstrJWTHttpHeader
- The name of the header which contains the JWTlValidityTimePeriod
- The validity time periodpublic boolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
request
- The HTTP requestprotected Date getExpirationDate()
Copyright © 2019 City of Paris. All rights reserved.