Package fr.paris.lutece.util.signrequest
Class JWTRSAKeyStoreFileAuthenticator
- java.lang.Object
-
- fr.paris.lutece.util.signrequest.AbstractAuthenticator
-
- fr.paris.lutece.util.signrequest.AbstractJWTAuthenticator
-
- fr.paris.lutece.util.signrequest.AbstractJWTRSAAuthenticator
-
- fr.paris.lutece.util.signrequest.JWTRSAKeyStoreFileAuthenticator
-
- All Implemented Interfaces:
RequestAuthenticator
public class JWTRSAKeyStoreFileAuthenticator extends AbstractJWTRSAAuthenticator
-
-
Constructor Summary
Constructors Constructor Description JWTRSAKeyStoreFileAuthenticator(java.util.Map<java.lang.String,java.lang.String> mapClaimsToCheck, java.lang.String strJWTHttpHeader, long lValidityPeriod, java.lang.String strEncryptionAlgorythmName, java.lang.String strKeystorePath, java.lang.String strKeystorePassword, java.lang.String strCertificatePassword, java.lang.String strAlias)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRequestAuthenticated(javax.servlet.http.HttpServletRequest request)Check the Authentication of a request-
Methods inherited from class fr.paris.lutece.util.signrequest.AbstractJWTRSAAuthenticator
getSecurityInformations
-
Methods inherited from class fr.paris.lutece.util.signrequest.AbstractAuthenticator
buildSignature, getValidityTimePeriod, setHashService, setSignatureElements, setValidityTimePeriod
-
-
-
-
Constructor Detail
-
JWTRSAKeyStoreFileAuthenticator
public JWTRSAKeyStoreFileAuthenticator(java.util.Map<java.lang.String,java.lang.String> mapClaimsToCheck, java.lang.String strJWTHttpHeader, long lValidityPeriod, java.lang.String strEncryptionAlgorythmName, java.lang.String strKeystorePath, java.lang.String strKeystorePassword, java.lang.String strCertificatePassword, java.lang.String strAlias)Constructor- Parameters:
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 keystore
-
-
Method Detail
-
isRequestAuthenticated
public boolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
Check the Authentication of a request- Specified by:
isRequestAuthenticatedin interfaceRequestAuthenticator- Overrides:
isRequestAuthenticatedin classAbstractJWTRSAAuthenticator- Parameters:
request- The HTTP request- Returns:
- true if authenticated, otherwise false
-
-