DigiStamp.com

dgs.tlkt
Class VerifyResult

java.lang.Object
  extended bydgs.tlkt.VerifyResult
Direct Known Subclasses:
TsVerifyResult

public abstract class VerifyResult
extends java.lang.Object

The results from a request to verify a signature. The act of verifying a CMS signature record results in more information than a simple boolean. The class can provide details and the x.509 certificate that contained the public key used in the signature verify process.


Field Summary
static int GOOD
          All actions of the verify process completed successfully
static int NO_CERT
          Verify failed because a public key certificate was not available.
static int NO_DOC_HASH
          Verify failed becase the hash value of the signed data was not available.
static int SGND_ATTR
          Verify failed because the Signed Attribute existed and the hash of the data was not correct.
static int SIG
          Verify failed because the signature bytes did not verify with the public key.
static int UNKNOWN
          Verify failed with unspecified error
 
Method Summary
 dgs.tlkt.X509CertificateQualified getCertificate()
          The x.509 certificate that contained the public key used in the signature verify process.
 int getResult()
          The result of the verify process.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GOOD

public static final int GOOD
All actions of the verify process completed successfully

See Also:
Constant Field Values

NO_CERT

public static final int NO_CERT
Verify failed because a public key certificate was not available.

See Also:
Constant Field Values

NO_DOC_HASH

public static final int NO_DOC_HASH
Verify failed becase the hash value of the signed data was not available. This would occur if this were a CMS with "external" data and the client software did not supply a hash value.

See Also:
Constant Field Values

SGND_ATTR

public static final int SGND_ATTR
Verify failed because the Signed Attribute existed and the hash of the data was not correct.

See Also:
Constant Field Values

SIG

public static final int SIG
Verify failed because the signature bytes did not verify with the public key.

See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
Verify failed with unspecified error

See Also:
Constant Field Values
Method Detail

getCertificate

public dgs.tlkt.X509CertificateQualified getCertificate()
The x.509 certificate that contained the public key used in the signature verify process.


getResult

public int getResult()
The result of the verify process. See the static fields to define the meaning of the result.


toString

public java.lang.String toString()

Copyright 2000-2010 DigiStamp, Inc.