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
|
authenticateRequest
getExpirationDate
buildSignature, getSignatureElements, getValidityTimePeriod, isValidTimestamp, setHashService, setSignatureElements, setValidityTimePeriod
public 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 RequestAuthenticator
isRequestAuthenticated
in class AbstractJWTRSAAuthenticator
request
- The HTTP requestprotected KeyPair getKeyPair()
getKeyPair
in class AbstractJWTRSAAuthenticator
Copyright © 2019 City of Paris. All rights reserved.