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
|
isRequestAuthenticatedgetExpirationDatebuildSignature, getSignatureElements, getValidityTimePeriod, isValidTimestamp, setHashService, setSignatureElements, setValidityTimePeriodpublic 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 AbstractJWTRSAAuthenticatorpublic void authenticateRequest(org.apache.commons.httpclient.HttpMethodBase method,
List<String> elements)
authenticateRequest in interface RequestAuthenticatorauthenticateRequest in class AbstractJWTRSAAuthenticatormethod - The HTTP method to authenticateelements - List of elements to include in the signatureCopyright © 2019 City of Paris. All rights reserved.