public abstract class AbstractJWTRSAAuthenticator extends AbstractJWTAuthenticator
_mapClaimsToCheck, _strJWTHttpHeader, LOGGER
_lValidityTimePeriod
Constructor and Description |
---|
AbstractJWTRSAAuthenticator(Map<String,String> mapClaimsToCheck,
String strJWTHttpHeader,
long lValidityPeriod,
String strEncryptionAlgorythmName)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
authenticateRequest(org.apache.commons.httpclient.HttpMethodBase method,
List<String> elements)
Authenticate a request
|
protected abstract KeyPair |
getKeyPair()
Get the RSA public/private key pair
|
boolean |
isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
Check the Authentication of a request
|
getExpirationDate
buildSignature, getSignatureElements, getValidityTimePeriod, isValidTimestamp, setHashService, setSignatureElements, setValidityTimePeriod
public AbstractJWTRSAAuthenticator(Map<String,String> mapClaimsToCheck, String strJWTHttpHeader, long lValidityPeriod, String strEncryptionAlgorythmName)
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.public boolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
isRequestAuthenticated
in interface RequestAuthenticator
isRequestAuthenticated
in class AbstractJWTAuthenticator
request
- The HTTP requestpublic void authenticateRequest(org.apache.commons.httpclient.HttpMethodBase method, List<String> elements)
method
- The HTTP method to authenticateelements
- List of elements to include in the signatureprotected abstract KeyPair getKeyPair()
Copyright © 2019 City of Paris. All rights reserved.