public class TSPPreferencesImpl extends CommonPreferencesImpl implements TSPPreferences
| Modifier and Type | Field and Description |
|---|---|
static Integer |
DEFAULT_TSP_SIZE |
static Integer |
MAX_TSP_SIZE |
static Integer |
MIN_TSP_SIZE |
| Constructor and Description |
|---|
TSPPreferencesImpl()
Sets the defaults.
|
TSPPreferencesImpl(TSPPreferences tspPrefs) |
| Modifier and Type | Method and Description |
|---|---|
protected PreferencesMap |
createChild(String myKey) |
char[] |
getPassword()
Gets the Timestamp server password
|
protected Object |
getPrefValueFromString(String prefName,
String value) |
boolean |
getSendNonce()
Gets Whether a nonce should be a part of the tsp request.
|
Integer |
getSize()
Gets the approximate timestamp token size
|
HashAlgorithm |
getTSPHashAlgorithm()
Gets the Hash Algorithm for the Timestamp request
|
String |
getTspServerURL()
Gets the Server URL configured to lookup for tsp Responses.
|
String |
getUsername()
Gets the Timestamp server username
|
boolean |
isUseExpiredTimestamps()
Indicates if timestamp from a now expired timestamp server should be considered valid
|
PreferencesMap |
newInstance()
Get the new instance of the type
|
void |
setPassword(char[] password)
Sets the Timestamp server password
|
void |
setSendNonce(boolean sendNonce)
Sets Whether a nonce should be a part of the tsp request.
|
void |
setSize(int size)
Sets the approximate timestamp token size.
|
void |
setTSPHashAlgorithm(HashAlgorithm hashAlgo)
Sets the Hash Algorithm for the Timestamp request
|
void |
setTspServerURL(String tspServerURL)
Sets the Server URL to lookup for tsp Responses.
|
void |
setUseExpiredTimestamps(boolean useExpiredTimestamps) |
void |
setUsername(String userName)
Sets the Timestamp server username
|
getRevocationCheck, setRevocationCheckclone, get, getNonCloneableKeys, getPreference, put, setPreferencegetRevocationCheckpublic static final Integer MIN_TSP_SIZE
public static final Integer MAX_TSP_SIZE
public static final Integer DEFAULT_TSP_SIZE
public TSPPreferencesImpl()
public TSPPreferencesImpl(TSPPreferences tspPrefs)
protected Object getPrefValueFromString(String prefName, String value)
getPrefValueFromString in class CommonPreferencesImplpublic String getTspServerURL()
getTspServerURL in interface TSPPreferencespublic void setTspServerURL(String tspServerURL)
tspServerURL - The Server URL to lookup for tsp Responsespublic boolean getSendNonce()
getSendNonce in interface TSPPreferencespublic void setSendNonce(boolean sendNonce)
sendNonce - Whether a nonce should be a part of the OCSP request.public HashAlgorithm getTSPHashAlgorithm()
getTSPHashAlgorithm in interface TSPPreferencespublic void setTSPHashAlgorithm(HashAlgorithm hashAlgo)
hashAlgo - public String getUsername()
getUsername in interface TSPPreferencespublic char[] getPassword()
getPassword in interface TSPPreferencespublic void setUsername(String userName)
userName - public void setPassword(char[] password)
password - public Integer getSize()
getSize in interface TSPPreferencespublic void setSize(int size)
size - The approximate timestamp token sizepublic boolean isUseExpiredTimestamps()
TSPPreferencesisUseExpiredTimestamps in interface TSPPreferencespublic void setUseExpiredTimestamps(boolean useExpiredTimestamps)
public PreferencesMap newInstance()
PreferencesMapnewInstance in class PreferencesMapprotected PreferencesMap createChild(String myKey)
createChild in class PreferencesMapCopyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.