@Component public abstract class IdAuthValidator extends Object implements org.springframework.validation.Validator
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.env.Environment |
env |
| Constructor and Description |
|---|
IdAuthValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAllowedAuthTypeProperty() |
protected Set<String> |
getAllowedAuthTypes() |
protected Set<String> |
getAllowedIdTypes() |
protected String |
getAllowedIdTypesConfigKey() |
protected void |
validateConsentReq(boolean consentValue,
org.springframework.validation.Errors errors)
Validates the ConsentRequest on request.
|
void |
validateId(String id,
org.springframework.validation.Errors errors)
Validate id - check whether id is null or not.
|
void |
validateIdvId(String id,
String idType,
org.springframework.validation.Errors errors) |
void |
validateIdvId(String id,
String idType,
org.springframework.validation.Errors errors,
String idFieldName)
Validate individual's id - check whether id is null or not and if valid,
validates idType and UIN/VID.
|
protected void |
validateReqTime(String reqTime,
org.springframework.validation.Errors errors,
String paramName)
Validate req time.
|
protected void |
validateRequestTimedOut(String reqTime,
org.springframework.validation.Errors errors)
Validate request timed out.
|
protected void |
validateTxnId(String txnID,
org.springframework.validation.Errors errors,
String paramName)
Validate txn id - check whether it is of length 10 and alphanumeric.
|
protected void |
validateTxnId(String transactionID,
String requestTransactionID,
org.springframework.validation.Errors errors)
Validate txn id.
|
public void validateId(String id, org.springframework.validation.Errors errors)
id - the iderrors - the errorspublic void validateIdvId(String id, String idType, org.springframework.validation.Errors errors)
public void validateIdvId(String id, String idType, org.springframework.validation.Errors errors, String idFieldName)
id - the ididType - the id typeerrors - the errorsidFieldName - the id field nameprotected void validateTxnId(String txnID, org.springframework.validation.Errors errors, String paramName)
txnID - the txn IDerrors - the errorsparamName - the param nameprotected void validateReqTime(String reqTime, org.springframework.validation.Errors errors, String paramName)
reqTime - the req timeerrors - the errorsparamName - the param nameprotected void validateRequestTimedOut(String reqTime, org.springframework.validation.Errors errors)
reqTime - the req timeerrors - the errorsprotected String getAllowedAuthTypeProperty()
protected String getAllowedIdTypesConfigKey()
protected void validateConsentReq(boolean consentValue,
org.springframework.validation.Errors errors)
authRequestDTO - the auth request DTOerrors - the errorsCopyright © 2020. All rights reserved.