Package com.oss.asn1

Interface ExternalChecker


public interface ExternalChecker
External checker interface that implements the callback function for checking user defined constraints.
Since:
ASN.1/Java 1.0-beta A
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This method is called by the validator to check the data with user- defined constraints imposed.
  • Method Details

    • isValid

      boolean isValid(AbstractData data) throws UserValidateFailedException
      This method is called by the validator to check the data with user- defined constraints imposed. Actual implementation of isValid() should not assume that any instance variables are preserved between the invocations of this method.
      Parameters:
      data - contains definition of value to be checked
      Returns:
      true if the data matches the user-defined constraints.
      Throws:
      UserValidateFailedException - if the data is invalid