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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisRequestAuthenticated(jakarta.servlet.http.HttpServletRequest request) Check the Authentication of a requestMethods inherited from class fr.paris.lutece.util.signrequest.AbstractJWTRSAAuthenticator
getSecurityInformationsMethods inherited from class fr.paris.lutece.util.signrequest.AbstractAuthenticator
buildSignature, getValidityTimePeriod, setHashService, setSignatureElements, setValidityTimePeriod
-
Constructor Details
-
JWTRSAKeyStoreFileAuthenticator
public JWTRSAKeyStoreFileAuthenticator(Map<String, String> mapClaimsToCheck, String strJWTHttpHeader, long lValidityPeriod, String strEncryptionAlgorythmName, String strKeystorePath, String strKeystorePassword, String strCertificatePassword, 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 Details
-
isRequestAuthenticated
public boolean isRequestAuthenticated(jakarta.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
-