Class KycAuthenticationFilter
- java.lang.Object
-
- io.mosip.authentication.common.service.filter.BaseIDAFilter
-
- io.mosip.authentication.common.service.filter.BaseAuthFilter
-
- io.mosip.authentication.common.service.filter.IdAuthFilter
-
- io.mosip.authentication.service.kyc.filter.KycAuthenticationFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
@Component public class KycAuthenticationFilter extends IdAuthFilter
The Class KycAuthenticationFilter - used to authenticate the request and manipulate response received for KYC request- Author:
- Sanjay Murali
-
-
Field Summary
-
Fields inherited from class io.mosip.authentication.common.service.filter.IdAuthFilter
partnerService
-
Fields inherited from class io.mosip.authentication.common.service.filter.BaseIDAFilter
env, keyManager, mapper
-
-
Constructor Summary
Constructors Constructor Description KycAuthenticationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkAllowedAuthTypeBasedOnPolicy(Map<String,Object> requestBody, List<AuthPolicy> authPolicies)
protected String
fetchId(ResettableStreamHttpServletRequest requestWrapper, String attribute)
protected boolean
isAMRValidationRequired()
protected boolean
isCertificateValidationRequired()
protected boolean
isMispPolicyValidationRequired()
protected boolean
isPartnerCertificateNeeded()
protected boolean
isSignatureVerificationRequired()
protected boolean
isSigningRequired()
protected boolean
isTrustValidationRequired()
protected boolean
needStoreAnonymousProfile()
protected boolean
needStoreAuthTransaction()
-
Methods inherited from class io.mosip.authentication.common.service.filter.IdAuthFilter
checkAllowedAMRForKBT, checkAllowedAMRForKeyBindedToken, checkAllowedAuthTypeBasedOnPolicy, checkAllowedAuthTypeForKeyBindedToken, checkMandatoryAuthTypeBasedOnPolicy, checkMispPolicyAllowed, decipherDigitalId, decipherRequest, extractBioData, fetchReferenceId, getAuthPart, getBioRefId, getSystemSupportedLanguageCodes, init, isAllowedAuthType, isAllowedAuthType, isBiometricHashValidationDisabled, isThumbprintValidationRequired, processDecipheredReqeuest, validateDecipheredRequest
-
Methods inherited from class io.mosip.authentication.common.service.filter.BaseAuthFilter
authenticateRequest, consumeRequest, decipherAndValidateRequest, decode, getPayloadFromJwsSingature, validateRequestHMAC, verifyBioDataSignature, verifySignature
-
Methods inherited from class io.mosip.authentication.common.service.filter.BaseIDAFilter
consumeResponse, destroy, doFilter, getRequestBody, isDate, removeNullOrEmptyFieldsInResponse, validateId, validateRequest
-
-
-
-
Method Detail
-
isPartnerCertificateNeeded
protected boolean isPartnerCertificateNeeded()
- Overrides:
isPartnerCertificateNeeded
in classIdAuthFilter
-
checkAllowedAuthTypeBasedOnPolicy
protected void checkAllowedAuthTypeBasedOnPolicy(Map<String,Object> requestBody, List<AuthPolicy> authPolicies) throws IdAuthenticationAppException
- Overrides:
checkAllowedAuthTypeBasedOnPolicy
in classIdAuthFilter
- Throws:
IdAuthenticationAppException
-
isSigningRequired
protected boolean isSigningRequired()
- Overrides:
isSigningRequired
in classIdAuthFilter
-
isSignatureVerificationRequired
protected boolean isSignatureVerificationRequired()
- Overrides:
isSignatureVerificationRequired
in classIdAuthFilter
-
isTrustValidationRequired
protected boolean isTrustValidationRequired()
- Overrides:
isTrustValidationRequired
in classIdAuthFilter
-
fetchId
protected String fetchId(ResettableStreamHttpServletRequest requestWrapper, String attribute)
- Specified by:
fetchId
in classBaseIDAFilter
-
needStoreAuthTransaction
protected boolean needStoreAuthTransaction()
- Overrides:
needStoreAuthTransaction
in classBaseIDAFilter
-
needStoreAnonymousProfile
protected boolean needStoreAnonymousProfile()
- Overrides:
needStoreAnonymousProfile
in classBaseIDAFilter
-
isMispPolicyValidationRequired
protected boolean isMispPolicyValidationRequired()
- Specified by:
isMispPolicyValidationRequired
in classBaseIDAFilter
-
isCertificateValidationRequired
protected boolean isCertificateValidationRequired()
- Specified by:
isCertificateValidationRequired
in classBaseIDAFilter
-
isAMRValidationRequired
protected boolean isAMRValidationRequired()
- Specified by:
isAMRValidationRequired
in classBaseIDAFilter
-
-