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, setRevocationCheck
clone, get, getNonCloneableKeys, getPreference, put, setPreference
getRevocationCheck
public 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 CommonPreferencesImpl
public String getTspServerURL()
getTspServerURL
in interface TSPPreferences
public void setTspServerURL(String tspServerURL)
tspServerURL
- The Server URL to lookup for tsp Responsespublic boolean getSendNonce()
getSendNonce
in interface TSPPreferences
public void setSendNonce(boolean sendNonce)
sendNonce
- Whether a nonce should be a part of the OCSP request.public HashAlgorithm getTSPHashAlgorithm()
getTSPHashAlgorithm
in interface TSPPreferences
public void setTSPHashAlgorithm(HashAlgorithm hashAlgo)
hashAlgo
- public String getUsername()
getUsername
in interface TSPPreferences
public char[] getPassword()
getPassword
in interface TSPPreferences
public void setUsername(String userName)
userName
- public void setPassword(char[] password)
password
- public Integer getSize()
getSize
in interface TSPPreferences
public void setSize(int size)
size
- The approximate timestamp token sizepublic boolean isUseExpiredTimestamps()
TSPPreferences
isUseExpiredTimestamps
in interface TSPPreferences
public void setUseExpiredTimestamps(boolean useExpiredTimestamps)
public PreferencesMap newInstance()
PreferencesMap
newInstance
in class PreferencesMap
protected PreferencesMap createChild(String myKey)
createChild
in class PreferencesMap
Copyright © 1982–2022 Adobe Systems Inc.. All rights reserved.