net.sf.zekr.engine.common
Interface Signable

All Known Implementing Classes:
RevelationData, TranslationData

public interface Signable

Implementations of this class have digital signature for integrity check.

Author:
Mohsen Saboorian

Field Summary
static int AUTHENTIC
          Resource is authentic.
static int NOT_AUTHENTIC
          Resource not not authentic.
static int UNKNOWN
          Resource not verified yet.
 
Method Summary
 byte[] getSignature()
           
 int getVerificationResult()
           
 

Field Detail

UNKNOWN

static final int UNKNOWN
Resource not verified yet.

See Also:
Constant Field Values

AUTHENTIC

static final int AUTHENTIC
Resource is authentic.

See Also:
Constant Field Values

NOT_AUTHENTIC

static final int NOT_AUTHENTIC
Resource not not authentic.

See Also:
Constant Field Values
Method Detail

getSignature

byte[] getSignature()
Returns:
signature

getVerificationResult

int getVerificationResult()
Returns:
UNKNOWN if verification is not done yet, AUTHENTIC if verification is done and document is authentic and NOT_AUTHENTIC if document is not authentic.