@Component(value="schema") @RefreshScope public class IdObjectSchemaValidator extends Object implements io.mosip.kernel.core.idobjectvalidator.spi.IdObjectValidator
| Constructor and Description |
|---|
IdObjectSchemaValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
loadSchema()
Load schema.
|
boolean |
validateIdObject(Object idObject,
io.mosip.kernel.core.idobjectvalidator.constant.IdObjectValidatorSupportedOperations operation)
Validates a JSON object passed as string with the schema provided.
|
@PostConstruct public void loadSchema() throws io.mosip.kernel.core.idobjectvalidator.exception.IdObjectIOException
io.mosip.kernel.core.idobjectvalidator.exception.IdObjectIOException - the id object IO exceptionpublic boolean validateIdObject(Object idObject, io.mosip.kernel.core.idobjectvalidator.constant.IdObjectValidatorSupportedOperations operation) throws io.mosip.kernel.core.idobjectvalidator.exception.IdObjectValidationFailedException, io.mosip.kernel.core.idobjectvalidator.exception.IdObjectIOException
validateIdObject in interface io.mosip.kernel.core.idobjectvalidator.spi.IdObjectValidatoridObject - the id objectoperation - the operationio.mosip.kernel.core.idobjectvalidator.exception.IdObjectValidationFailedException - the id object validation failed
exceptionio.mosip.kernel.core.idobjectvalidator.exception.IdObjectIOException - the id object IO exceptionCopyright © 2020. All rights reserved.