com.crionics.jpdf.signer
Class ValidationResult

java.lang.Object
  extended by com.crionics.jpdf.signer.ValidationResult

public final class ValidationResult
extends java.lang.Object

Gives information about a signature validation. The object can have three states: VALID, WARNING and ERROR. Each state is associated a descrition.


Field Summary
static int ERROR
           
static int VALID
           
static int WARNING
           
 
Constructor Summary
ValidationResult(int theLevel, int theMsg)
           
 
Method Summary
 int getLevel()
           
 java.lang.String getMessage()
           
 int getMessageCode()
          Returns a unique number to identify an error message
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALID

public static final int VALID
See Also:
Constant Field Values

WARNING

public static final int WARNING
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values
Constructor Detail

ValidationResult

public ValidationResult(int theLevel,
                        int theMsg)
Method Detail

getLevel

public int getLevel()
Returns:
Returns the valiation result level: VALID, WARNING or ERROR

getMessage

public java.lang.String getMessage()
Returns:
Returns the msg associated with the validation.

getMessageCode

public int getMessageCode()
Returns a unique number to identify an error message

Returns:
the message code - the message code can be used to identify an message type it won't change in the future.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1999-2007 Crionics. All Rights Reserved.