Class VerificationResult


  • public class VerificationResult
    extends java.lang.Object
    A VerificationResult is what a PassVerifier returns after verifying.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String detailMessage
      The detailed message.
      private int numeric
      The numeric status.
      static int VERIFIED_NOTYET
      Constant to indicate verification has not been tried yet.
      private static java.lang.String VERIFIED_NOTYET_MSG
      This string is the canonical message for verifications that have not been tried yet.
      static int VERIFIED_OK
      Constant to indicate verification was passed.
      private static java.lang.String VERIFIED_OK_MSG
      This string is the canonical message for passed verification passes.
      static int VERIFIED_REJECTED
      Constant to indicate verfication failed.
      static VerificationResult VR_NOTYET
      Canonical VerificationResult for not-yet-tried verifications.
      static VerificationResult VR_OK
      Canonical VerificationResult for passed verifications.
    • Constructor Summary

      Constructors 
      Constructor Description
      VerificationResult​(int status, java.lang.String message)
      The usual constructor.
    • Field Detail

      • VERIFIED_NOTYET

        public static final int VERIFIED_NOTYET
        Constant to indicate verification has not been tried yet. This happens if some earlier verification pass did not return VERIFIED_OK.
        See Also:
        Constant Field Values
      • VERIFIED_OK

        public static final int VERIFIED_OK
        Constant to indicate verification was passed.
        See Also:
        Constant Field Values
      • VERIFIED_REJECTED

        public static final int VERIFIED_REJECTED
        Constant to indicate verfication failed.
        See Also:
        Constant Field Values
      • VERIFIED_NOTYET_MSG

        private static final java.lang.String VERIFIED_NOTYET_MSG
        This string is the canonical message for verifications that have not been tried yet. This happens if some earlier verification pass did not return VERIFIED_OK.
        See Also:
        Constant Field Values
      • VERIFIED_OK_MSG

        private static final java.lang.String VERIFIED_OK_MSG
        This string is the canonical message for passed verification passes.
        See Also:
        Constant Field Values
      • VR_NOTYET

        public static final VerificationResult VR_NOTYET
        Canonical VerificationResult for not-yet-tried verifications. This happens if some earlier verification pass did not return VERIFIED_OK.
      • VR_OK

        public static final VerificationResult VR_OK
        Canonical VerificationResult for passed verifications.
      • numeric

        private final int numeric
        The numeric status.
      • detailMessage

        private final java.lang.String detailMessage
        The detailed message.
    • Constructor Detail

      • VerificationResult

        public VerificationResult​(int status,
                                  java.lang.String message)
        The usual constructor.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Returns if two VerificationResult instances are equal.
        Overrides:
        equals in class java.lang.Object
      • getMessage

        public java.lang.String getMessage()
        Returns a detailed message.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code value for the object.
      • toString

        public java.lang.String toString()
        Returns a String representation of the VerificationResult.
        Overrides:
        toString in class java.lang.Object