Package fr.paris.lutece.util.signrequest
Class AbstractJWTRSAAuthenticator
java.lang.Object
fr.paris.lutece.util.signrequest.AbstractAuthenticator
fr.paris.lutece.util.signrequest.AbstractJWTAuthenticator
fr.paris.lutece.util.signrequest.AbstractJWTRSAAuthenticator
- All Implemented Interfaces:
RequestAuthenticator
- Direct Known Subclasses:
JWTRSAKeyStoreFileAuthenticator,JWTRSAPlainTextAuthenticator,JWTRSATrustStoreFileAuthenticator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSecurityInformations(List<String> elements) return Security informations to put in the request headers and request parametersbooleanisRequestAuthenticated(jakarta.servlet.http.HttpServletRequest request) Check the Authentication of a requestMethods inherited from class fr.paris.lutece.util.signrequest.AbstractAuthenticator
buildSignature, getValidityTimePeriod, setHashService, setSignatureElements, setValidityTimePeriod
-
Constructor Details
-
AbstractJWTRSAAuthenticator
public AbstractJWTRSAAuthenticator(Map<String, String> mapClaimsToCheck, String strJWTHttpHeader, long lValidityPeriod, String strEncryptionAlgorythmName) 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.
-
-
Method Details
-
isRequestAuthenticated
public boolean isRequestAuthenticated(jakarta.servlet.http.HttpServletRequest request) Check the Authentication of a request- Specified by:
isRequestAuthenticatedin interfaceRequestAuthenticator- Specified by:
isRequestAuthenticatedin classAbstractJWTAuthenticator- Parameters:
request- The HTTP request- Returns:
- true if authenticated, otherwise false
-
getSecurityInformations
return Security informations to put in the request headers and request parameters- Parameters:
elements- List of elements to include in the signature- Returns:
- AuthenticateRequestInformations
-