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