public class OCSPPreferencesImpl extends CommonPreferencesImpl implements OCSPPreferences
Constructor and Description |
---|
OCSPPreferencesImpl()
Sets the defaults.
|
Modifier and Type | Method and Description |
---|---|
protected PreferencesMap |
createChild(String myKey) |
boolean |
getAllowOCSPNoCheck()
Allow OCSP NoCheck Extension
|
HashAlgorithm |
getDigestAlgorithm()
Digest Algorithm to be used for OCSPRequests CertID
|
boolean |
getDoSignRequest()
Gets whether OCSP request would be signed or not.
|
boolean |
getGoOnline()
Indicates if online OCSP server can be contacted for revocation information
|
boolean |
getIgnoreValidityDates()
Indicates if OCSP validity needs to be honored
|
long |
getMaxClockSkew()
Gets the maximum Skew time allowed between the OCSP Server's clock and
the local computer.
|
protected String[] |
getNonCloneableKeys() |
String |
getOcspServerURL()
Gets the Server URL configured to lookup for OCSP Responses.
|
protected Object |
getPrefValueFromString(String prefName,
String value) |
PKICredential |
getRequestSignerCredential()
Gets the Alias of the credential to be used for signing the OCSP Request
|
boolean |
getRequireOCSPCertHash()
Indicates if OCSP Response CertID needs to be have certificate hash
|
long |
getResponseFreshness()
Gets the allowed OCSP Response freshness.
|
boolean |
getSendNonce()
Gets Whether a nonce should be a part of the OCSP request.
|
OCSPURLtoConsultOption |
getURLtoConsult()
Gets The type of OCSP Server URL to use for fetching revocation information
|
boolean |
getUseCache()
Indicates if OCSP Response needs to be cached/used till OCSP nextUpdate
|
PreferencesMap |
newInstance()
Get the new instance of the type
|
void |
setAllowOCSPNoCheck(boolean value) |
void |
setDigestAlgorithm(HashAlgorithm algo) |
void |
setDoSignRequest(boolean doSignRequest)
Sets whether OCSP request should be signed or not
|
void |
setGoOnline(boolean value) |
void |
setIgnoreValidityDates(boolean value) |
void |
setMaxClockSkew(long maxClockSkew)
Sets the maximum Skew time allowed between the OCSP Server's clock and
the local computer.
|
void |
setOcspServerURL(String ocspServerURL)
Sets the Server URL to lookup for OCSP Responses.
|
void |
setRequestSignerCredential(PKICredential cred)
Sets the Alias of the credential to be used for signing the OCSP Request
|
void |
setRequireOCSPCertHash(boolean value) |
void |
setResponseFreshness(long responseFreshness)
Sets the allowed OCSP Response freshness.
|
void |
setSendNonce(boolean sendNonce)
Sets Whether a nonce should be a part of the OCSP request.
|
void |
setURLtoConsult(OCSPURLtoConsultOption urlToConsult)
Sets The type of OCSP Server URL to use for fetching revocation information
|
void |
setUseCache(boolean value) |
getRevocationCheck, setRevocationCheck
clone, get, getPreference, put, setPreference
getRevocationCheck
public OCSPPreferencesImpl()
protected Object getPrefValueFromString(String prefName, String value)
getPrefValueFromString
in class CommonPreferencesImpl
public boolean getDoSignRequest()
getDoSignRequest
in interface OCSPPreferences
public void setDoSignRequest(boolean doSignRequest)
doSignRequest
- the whether OCSP request should be signed or not.public long getMaxClockSkew()
getMaxClockSkew
in interface OCSPPreferences
public void setMaxClockSkew(long maxClockSkew)
maxClockSkew
- The maxClockSkew to set.public String getOcspServerURL()
getOcspServerURL
in interface OCSPPreferences
public void setOcspServerURL(String ocspServerURL)
ocspServerURL
- The Server URL to lookup for OCSP Responsespublic PKICredential getRequestSignerCredential()
getRequestSignerCredential
in interface OCSPPreferences
public void setRequestSignerCredential(PKICredential cred)
cred
- Alias of the credential to be used for signing the OCSP Request.public long getResponseFreshness()
getResponseFreshness
in interface OCSPPreferences
public void setResponseFreshness(long responseFreshness)
responseFreshness
- The responseFreshness to set.public boolean getSendNonce()
getSendNonce
in interface OCSPPreferences
public void setSendNonce(boolean sendNonce)
sendNonce
- Whether a nonce should be a part of the OCSP request.public OCSPURLtoConsultOption getURLtoConsult()
getURLtoConsult
in interface OCSPPreferences
public void setURLtoConsult(OCSPURLtoConsultOption urlToConsult)
urlToConsult
- The type of OCSP Server URL to use for fetching revocation informationpublic void setDigestAlgorithm(HashAlgorithm algo)
public HashAlgorithm getDigestAlgorithm()
OCSPPreferences
getDigestAlgorithm
in interface OCSPPreferences
public void setUseCache(boolean value)
public boolean getUseCache()
OCSPPreferences
getUseCache
in interface OCSPPreferences
public void setIgnoreValidityDates(boolean value)
public boolean getIgnoreValidityDates()
OCSPPreferences
getIgnoreValidityDates
in interface OCSPPreferences
public void setGoOnline(boolean value)
public boolean getGoOnline()
OCSPPreferences
getGoOnline
in interface OCSPPreferences
public void setAllowOCSPNoCheck(boolean value)
public boolean getAllowOCSPNoCheck()
OCSPPreferences
getAllowOCSPNoCheck
in interface OCSPPreferences
public void setRequireOCSPCertHash(boolean value)
public boolean getRequireOCSPCertHash()
OCSPPreferences
getRequireOCSPCertHash
in interface OCSPPreferences
public PreferencesMap newInstance()
PreferencesMap
newInstance
in class PreferencesMap
protected PreferencesMap createChild(String myKey)
createChild
in class PreferencesMap
protected String[] getNonCloneableKeys()
getNonCloneableKeys
in class PreferencesMap
Copyright © 1982–2022 Adobe Systems Inc.. All rights reserved.