Class ServletOtpRuleHandlerFactory
java.lang.Object
es.kukenan.smartfi.common.security.web.otp.ServletOtpRuleHandlerFactory
This component is the one used to build a handler for the OtpRule applicable for a given endpoint. See
createRuleHandler(HttpServletRequest, WalletAuthentication).-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CustomObjectMapperCustom object mapper.private OtpPropertiesEndpoints list that need OTP validation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRuleHandler(javax.servlet.http.HttpServletRequest request, WalletAuthentication walletAuthentication) Find theOtpRuleHandlerfor the given HTTP URI and method.private InputStreamextractInputStream(javax.servlet.http.HttpServletRequest request)
-
Field Details
-
otpProperties
Endpoints list that need OTP validation. -
customObjectMapper
Custom object mapper.
-
-
Constructor Details
-
ServletOtpRuleHandlerFactory
public ServletOtpRuleHandlerFactory()
-
-
Method Details
-
createRuleHandler
public OtpRuleHandler createRuleHandler(javax.servlet.http.HttpServletRequest request, WalletAuthentication walletAuthentication) Find theOtpRuleHandlerfor the given HTTP URI and method.- Parameters:
request- HTTP servlet request.walletAuthentication- current authentication.- Returns:
- the rule handler for the given endpoint. null will be returned
if the given endpoint has no
OtpProperties.OtpRuledefined.
-
extractInputStream
-