Package fr.paris.lutece.util.signrequest
Class AbstractJWTAuthenticator
java.lang.Object
fr.paris.lutece.util.signrequest.AbstractAuthenticator
fr.paris.lutece.util.signrequest.AbstractJWTAuthenticator
- All Implemented Interfaces:
RequestAuthenticator
- Direct Known Subclasses:
AbstractJWTRSAAuthenticator,JWTNoEncryptionAuthenticator,JWTSecretKeyAuthenticator
AbstractAuthenticator
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractJWTAuthenticator(Map<String, String> mapClaimsToCheck, String strJWTHttpHeader, long lValidityTimePeriod) Constructor -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanisRequestAuthenticated(jakarta.servlet.http.HttpServletRequest request) Check the Authentication of a requestMethods inherited from class fr.paris.lutece.util.signrequest.AbstractAuthenticator
buildSignature, getValidityTimePeriod, setHashService, setSignatureElements, setValidityTimePeriodMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.util.signrequest.RequestAuthenticator
getSecurityInformations
-
Constructor Details
-
AbstractJWTAuthenticator
public AbstractJWTAuthenticator(Map<String, String> mapClaimsToCheck, String strJWTHttpHeader, long lValidityTimePeriod) Constructor- Parameters:
mapClaimsToCheck- The map of claims key/values to check in the JWTstrJWTHttpHeader- The name of the header which contains the JWTlValidityTimePeriod- The validity time period
-
-
Method Details
-
isRequestAuthenticated
public abstract boolean isRequestAuthenticated(jakarta.servlet.http.HttpServletRequest request) Check the Authentication of a request- Parameters:
request- The HTTP request- Returns:
- true if authenticated, otherwise false
-