|
DigiStamp.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdgs.tlkt.DgsComm
This class handles all communications with the DigiStamp time stamp servers. This class acts as a local proxy for the remote DigiStamp time stamp servers.
The methods of primary interest is:
timeStamp(TsRequest) create a time stamp
Use the setGlobalConfig(DgsConfig) method to configure the
communication options.
A setReporter(Reporter)method is provided to display step wise
execution status.
| Constructor Summary | |
DgsComm()
DgsCommTSR constructor. |
|
DgsComm(Reporter aReporter)
|
|
| Method Summary | |
void |
diconnectReporter()
Disconnect further reporting of status messages to the reporter. |
static DgsConfig |
getGlobalConfig()
The current configuration that will be used for all communications requests. |
static java.util.Locale |
getLocale()
This only applies if you are using the setReporter(Reporter)
feature. |
static java.lang.String |
getVersion()
The version of the DigiStamp toolkit. |
static void |
setGlobalConfig(DgsConfig config)
Set the configuration for all communication to the DigiStamp servers. |
static void |
setLocale(java.util.Locale localeP)
Setting the Locale cause the reporter messages to be translated to this language. |
void |
setReporter(Reporter aReporter)
Supplying a Reporter object allows the processing to report communications events. |
static DgsComm |
theInstance()
This method is used when treating this class as a "singleton" - one instance is used by all clients. |
byte[] |
timeStamp(byte[] encodeTsr)
Send a time stamp request to DigiStamp time stamp servers and return an encoded time stamp response. |
CMSTsToken |
timeStamp(TsRequest tsr)
Send a time stamp request to DigiStamp time stamp servers and return a Time Stamp. |
CMSTsToken |
timeStamp(TsRequest tsr,
DgsConfig config)
Send a time stamp request to DigiStamp time stamp servers and return a Time Stamp. |
CMSTsToken |
timeStamp(TsRequest tsr,
java.lang.String acct,
byte[] password)
Send a time stamp request to DigiStamp time stamp servers and return a Time Stamp. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DgsComm()
public DgsComm(Reporter aReporter)
aReporter - | Method Detail |
public void diconnectReporter()
public static DgsConfig getGlobalConfig()
public static java.util.Locale getLocale()
setReporter(Reporter)
feature. This will return the Locale that will be used by the reporter
for translation of text strings.
public static java.lang.String getVersion()
public static void setGlobalConfig(DgsConfig config)
config - dgs.tlkt.DgsConfigpublic static void setLocale(java.util.Locale localeP)
setReporter(Reporter)feature. The only languages supplied with
the toolkit are English and French. We can help you add other languages
if you require. The default language is English.
public void setReporter(Reporter aReporter)
aReporter - dgs.tlkt.Reporterpublic static DgsComm theInstance()
public byte[] timeStamp(byte[] encodeTsr)
throws ExceptionDgsCommFail,
ExceptionDgsInternal,
ExceptionDgsAccounting,
java.lang.InterruptedException,
ExceptionDgsInvalidState,
ExceptionDgsEncode,
java.io.IOException
encodeTsr - encoded time stamp request
ExceptionDgsCommFail
ExceptionDgsInternal
ExceptionDgsAccounting
java.lang.InterruptedException
ExceptionDgsInvalidState
ExceptionDgsEncode
java.io.IOExceptiontimeStamp(TsRequest)
public CMSTsToken timeStamp(TsRequest tsr)
throws ExceptionDgsCommFail,
ExceptionDgsInternal,
ExceptionDgsAccounting,
ExceptionDgsEncode,
ExceptionDgsInvalidState,
java.lang.InterruptedException
The Time Stamp is returned as a CMS object. The returned time stamp includes the hash and optional nonce contained in the time stamp request. The time stamp service signs the hash with the current time and returns a signed CMS structure.
tsr - TsRequest, a time stamp request
CMSTsToken
ExceptionDgsCommFail
ExceptionDgsInternal
ExceptionDgsAccounting
ExceptionDgsEncode
ExceptionDgsInvalidState
java.lang.InterruptedException
public CMSTsToken timeStamp(TsRequest tsr,
DgsConfig config)
throws ExceptionDgsCommFail,
ExceptionDgsInternal,
ExceptionDgsAccounting,
ExceptionDgsEncode,
ExceptionDgsInvalidState,
java.lang.InterruptedException
This form of the time stamp request method ignores any configuration
information that was set with setGlobalConfig(DgsConfig). The
configuration you supply in this method call must include an account and
password. This method cannot be used with the "round-robin" feature and
that configuration flag will be set to false in the supplied
configuration.
See timeStamp(TsRequest)method for an extended description of
the retrieve time stamp function.
tsr - TsRequest, a time stamp requestconfig - DgsConfig, communications configuration
CMSTsToken
ExceptionDgsCommFail
ExceptionDgsInternal
ExceptionDgsAccounting
ExceptionDgsEncode
ExceptionDgsInvalidState
java.lang.InterruptedException
public CMSTsToken timeStamp(TsRequest tsr,
java.lang.String acct,
byte[] password)
throws ExceptionDgsCommFail,
ExceptionDgsInternal,
ExceptionDgsAccounting,
ExceptionDgsEncode,
ExceptionDgsInvalidState,
java.lang.InterruptedException
If the global configuration has been set with
setGlobalConfig(DgsConfig)then that global configuration will
be used with the account number and password you specify on this call.
See timeStamp(TsRequest)method for an extended description of
the retrieve time stamp function.
tsr - TsRequest, a time stamp requestacct - String , your account numberpassword - byte[], the SHA-1 hash of your DigiStamp password
CMSTsToken
ExceptionDgsCommFail
ExceptionDgsInternal
ExceptionDgsAccounting
ExceptionDgsEncode
ExceptionDgsInvalidState
java.lang.InterruptedException
|
Copyright 2000-2008 DigiStamp, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||