Class TrustAnchorVerificationCodeValidator
java.lang.Object
com.verisign.epp.codec.verificationcode.TrustAnchorVerificationCodeValidator
- All Implemented Interfaces:
EPPVerificationCodeValidator
public class TrustAnchorVerificationCodeValidator
extends Object
implements EPPVerificationCodeValidator
Concrete verification code validator that leverages the encoding of the trust
anchor aliases in the verification code trust store to apply specific
validations, which include:
- VSP Identifier (vsp-id) in the code value
- Code type
TrustAnchorVerificationData.-
Constructor Summary
ConstructorsConstructorDescriptionTrustAnchorVerificationCodeValidator(KeyStore aTrustStore) Constructor ofTrustAnchorVerificationCodeValidatorthat takes the trust store containing the verification code trust anchors with the aliases encoding according to the format defined inTrustAnchorVerificationData. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvalidate(EPPVerificationCode aVerificationCode, Object aData) Validate the contents of a verification code using the trust anchor of the signed code to look up the trust store alias, and then using the trust store alias to apply the validation logic for the verification code.
-
Constructor Details
-
TrustAnchorVerificationCodeValidator
Constructor ofTrustAnchorVerificationCodeValidatorthat takes the trust store containing the verification code trust anchors with the aliases encoding according to the format defined inTrustAnchorVerificationData.- Parameters:
aTrustStore- Trust store to lookup the trust anchor alias to apply the policy.
-
-
Method Details
-
validate
Validate the contents of a verification code using the trust anchor of the signed code to look up the trust store alias, and then using the trust store alias to apply the validation logic for the verification code.- Specified by:
validatein interfaceEPPVerificationCodeValidator- Parameters:
aVerificationCode- Verification code to validateaData- Must be theTrustAnchorof theEPPSignedCode.- Returns:
trueif the verification code is valid;falseotherwise.- Throws:
EPPException- Error executing the validation.
-