public class JWTRSAKeyStoreFileAuthenticator extends AbstractJWTRSAAuthenticator
_mapClaimsToCheck, _strJWTHttpHeader, LOGGER_lValidityTimePeriod| Constructor and Description |
|---|
JWTRSAKeyStoreFileAuthenticator(Map<String,String> mapClaimsToCheck,
String strJWTHttpHeader,
long lValidityPeriod,
String strEncryptionAlgorythmName,
String strKeystorePath,
String strKeystorePassword,
String strCertificatePassword,
String strAlias)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected KeyPair |
getKeyPair()
Get the RSA public/private key pair
|
boolean |
isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
Check the Authentication of a request
|
authenticateRequestgetExpirationDatebuildSignature, getSignatureElements, getValidityTimePeriod, isValidTimestamp, setHashService, setSignatureElements, setValidityTimePeriodpublic JWTRSAKeyStoreFileAuthenticator(Map<String,String> mapClaimsToCheck, String strJWTHttpHeader, long lValidityPeriod, String strEncryptionAlgorythmName, String strKeystorePath, String strKeystorePassword, String strCertificatePassword, 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.strKeystorePath - The path of the keystorestrKeystorePassword - The password of the keystorestrCertificatePassword - The pass of the certificatestrAlias - The alias of the certificate in the keystorepublic boolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
isRequestAuthenticated in interface RequestAuthenticatorisRequestAuthenticated in class AbstractJWTRSAAuthenticatorrequest - The HTTP requestprotected KeyPair getKeyPair()
getKeyPair in class AbstractJWTRSAAuthenticatorCopyright © 2019 City of Paris. All rights reserved.