DigiStamp.com

dgs.tlkt
Class TsResponse

java.lang.Object
  extended bydgs.tlkt.TsResponse

public final class TsResponse
extends java.lang.Object

Response packet of data from the DigiStamp server. TSP spec: TimeStampResp

Contains process status messages and the actual time stamp if processing was successful.

Several static members are provide to help tranlate the status numbers to easier to read programming labels.


Field Summary
static int BAD_REQUEST
          PKIFailure information specific TSP badRequest = 2.
static int EXT_NA
          PKIFailure information specific TSP unacceptedExtensions = 16.
static int FORMAT
          PKIFailure information specific TSP badDataFormat = 5.
static java.math.BigInteger GRANTED
          PKIStatus level information RFC2510 PKIStatus = 0
static int INFO_NA
          PKIFailure information specific TSP addInfoNotAvailable = 16.
static int NO_FAIL_INFO
          PKIFailure in verify, no information available = -1.
static int NOT_SUPPORTED
          PKIFailure information specific TSP badAlg = 0.
static java.math.BigInteger REJECTION
          PKIStatus level information RFC2510 PKIStatus = 2
static int TIME_NA
          PKIFailure information specific TSP timeNotAvailable = 14.
static int UNACCEPTED_POLICY
          PKIFailure information specific TSP unacceptedPolicy = 15.
static int VERIFY_FAIL_HASH_TST
          PKIFailure in verify, SHA-1 hash of content did not equal signed attribute value = 102.
static int VERIFY_FAIL_KEY_NF
          PKIFailure in verify, DigiStamp did not have the public key to do verify = 101.
static int VERIFY_FAIL_SIG
          PKIFailure in verify, signature did not verify = 103.
static int VERIFY_GOOD
          PKIFailure in verify, verify of time stamp was successful = 100.
 
Constructor Summary
TsResponse(byte[] encodeTSResp)
          TsResponse constructor by supplying a DER encoded byte[].
 
Method Summary
 byte[] asEncoded()
          This method returns a DER encoded time stamp response that was used to create this instance.
 int getFailInfo()
          TSP PKIFailureInfo
 java.lang.String getPkiFreeText()
          RFC2510 PKIFreeText
 java.math.BigInteger getPkiStatus()
          RFC2510 PKIStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BAD_REQUEST

public static final int BAD_REQUEST
PKIFailure information specific TSP badRequest = 2. Using the toolkit should never result in this.

See Also:
Constant Field Values

EXT_NA

public static final int EXT_NA
PKIFailure information specific TSP unacceptedExtensions = 16. Using the toolkit should never result in this.

See Also:
Constant Field Values

FORMAT

public static final int FORMAT
PKIFailure information specific TSP badDataFormat = 5. Using the toolkit should never result in this.

See Also:
Constant Field Values

GRANTED

public static final java.math.BigInteger GRANTED
PKIStatus level information RFC2510 PKIStatus = 0


INFO_NA

public static final int INFO_NA
PKIFailure information specific TSP addInfoNotAvailable = 16. Using the toolkit should never result in this.

See Also:
Constant Field Values

NO_FAIL_INFO

public static final int NO_FAIL_INFO
PKIFailure in verify, no information available = -1. This represents an internal processing error and you may need to contact DigiStamp with the specifics for diagnostics. This PKIFailure information is not part of TSP specification and was added by DigiStamp for verify function.

See Also:
Constant Field Values

NOT_SUPPORTED

public static final int NOT_SUPPORTED
PKIFailure information specific TSP badAlg = 0. Using the toolkit should never result in this.

See Also:
Constant Field Values

REJECTION

public static final java.math.BigInteger REJECTION
PKIStatus level information RFC2510 PKIStatus = 2


TIME_NA

public static final int TIME_NA
PKIFailure information specific TSP timeNotAvailable = 14.

See Also:
Constant Field Values

UNACCEPTED_POLICY

public static final int UNACCEPTED_POLICY
PKIFailure information specific TSP unacceptedPolicy = 15. Using the toolkit should never result in this.

See Also:
Constant Field Values

VERIFY_FAIL_HASH_TST

public static final int VERIFY_FAIL_HASH_TST
PKIFailure in verify, SHA-1 hash of content did not equal signed attribute value = 102. This PKIFailure information is not part of TSP specification and was added by DigiStamp for verify function.

See Also:
Constant Field Values

VERIFY_FAIL_KEY_NF

public static final int VERIFY_FAIL_KEY_NF
PKIFailure in verify, DigiStamp did not have the public key to do verify = 101. This PKIFailure information is not part of TSP specification and was added by DigiStamp for verify function. This should never happen except when trying to verify a time stamp that did not originate from DigiStamp.

See Also:
Constant Field Values

VERIFY_FAIL_SIG

public static final int VERIFY_FAIL_SIG
PKIFailure in verify, signature did not verify = 103. This PKIFailure information is not part of TSP specification and was added by DigiStamp for verify function.

See Also:
Constant Field Values

VERIFY_GOOD

public static final int VERIFY_GOOD
PKIFailure in verify, verify of time stamp was successful = 100. This PKIFailure information is not part of TSP specification and was added by DigiStamp for verify function.

See Also:
Constant Field Values
Constructor Detail

TsResponse

public TsResponse(byte[] encodeTSResp)
           throws ExceptionDgsEncode
TsResponse constructor by supplying a DER encoded byte[].

Method Detail

asEncoded

public byte[] asEncoded()
This method returns a DER encoded time stamp response that was used to create this instance.

Returns:
byte[]

getFailInfo

public int getFailInfo()
TSP PKIFailureInfo

Returns:
java.math.BigInteger

getPkiFreeText

public java.lang.String getPkiFreeText()
RFC2510 PKIFreeText

Returns:
java.lang.String

getPkiStatus

public java.math.BigInteger getPkiStatus()
RFC2510 PKIStatus

Returns:
BigInteger

Copyright 2000-2005 DigiStamp, Inc.