TimestampSettings
Inheritance: java.lang.Object
public class TimestampSettings
Represents the ocsp settings using during signing process.
Constructors
| Constructor | Description |
|---|---|
| TimestampSettings(String serverUrl, String basicAuthCredentials) | Initializes a new instance of the TimestampSettings class. |
| TimestampSettings(String serverUrl, String basicAuthCredentials, int digestHashAlgorithm) | Initializes a new instance of the TimestampSettings class. |
Methods
| Method | Description |
|---|---|
| getServerUrl() | Gets the timestamp server url. |
| setServerUrl(String value) | Sets the timestamp server url. |
| getBasicAuthCredentials() | Gets the basic authentication credentials, Username and password are combined into a string “username:password”. |
| setBasicAuthCredentials(String value) | Sets the basic authentication credentials, Username and password are combined into a string “username:password”. |
| getDigestHashAlgorithm() | Gets/sets the digest algorithm for internal hash functions. |
| setDigestHashAlgorithm(int value) | Gets/sets the digest algorithm for internal hash functions. |
TimestampSettings(String serverUrl, String basicAuthCredentials)
public TimestampSettings(String serverUrl, String basicAuthCredentials)
Initializes a new instance of the TimestampSettings class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| serverUrl | java.lang.String | The timestamp server url. |
| basicAuthCredentials | java.lang.String | The basic authentication credentials, username and password are combined into a string “username:password”. |
TimestampSettings(String serverUrl, String basicAuthCredentials, int digestHashAlgorithm)
public TimestampSettings(String serverUrl, String basicAuthCredentials, int digestHashAlgorithm)
Initializes a new instance of the TimestampSettings class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| serverUrl | java.lang.String | The timestamp server url. |
| basicAuthCredentials | java.lang.String | The basic authentication credentials, username and password are combined into a string “username:password”. |
| digestHashAlgorithm | int | The hash algorithm name, if it is omitted then sha1 is used. |
getServerUrl()
public String getServerUrl()
Gets the timestamp server url.
Returns: java.lang.String - String value
setServerUrl(String value)
public void setServerUrl(String value)
Sets the timestamp server url.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | String value |
getBasicAuthCredentials()
public String getBasicAuthCredentials()
Gets the basic authentication credentials, Username and password are combined into a string “username:password”.
Returns: java.lang.String - String value
setBasicAuthCredentials(String value)
public void setBasicAuthCredentials(String value)
Sets the basic authentication credentials, Username and password are combined into a string “username:password”.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | String value |
getDigestHashAlgorithm()
public final int getDigestHashAlgorithm()
Gets/sets the digest algorithm for internal hash functions.
Returns: int - DigestHashAlgorithm element
setDigestHashAlgorithm(int value)
public final void setDigestHashAlgorithm(int value)
Gets/sets the digest algorithm for internal hash functions.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | DigestHashAlgorithm element |