|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.emi.security.authn.x509.OCSPParametes
public class OCSPParametes
Manages configuration of OCSP support for all truststores.
| Field Summary | |
|---|---|
protected int |
cacheTtl
|
protected OCSPCheckingMode |
checkingMode
|
protected int |
conntectTimeout
|
static int |
DEFAULT_CACHE
|
static int |
DEFAULT_TIMEOUT
|
protected String |
diskCachePath
|
protected OCSPResponder[] |
localResponders
|
protected boolean |
preferLocalResponders
|
protected boolean |
useNonce
|
| Constructor Summary | |
|---|---|
OCSPParametes()
Default constructor using OCSPCheckingMode.IF_AVAILABLE. |
|
OCSPParametes(OCSPCheckingMode checkingMode)
Constructor without any local responders and default settings. |
|
OCSPParametes(OCSPCheckingMode checkingMode,
OCSPResponder localResponder)
Uses default settings for timeout ( DEFAULT_TIMEOUT), and cache (DEFAULT_CACHE and
no disk persistence of cached responses), prefers local responders,
do not sign requests and do not use nonce. |
|
OCSPParametes(OCSPCheckingMode checkingMode,
OCSPResponder[] localResponders,
int conntectTimeout,
boolean preferLocalResponders,
boolean useNonce,
int cacheTtl,
String diskCachePath)
Full constructor |
|
OCSPParametes(OCSPCheckingMode checkingMode,
OCSPResponder[] localResponders,
int cacheTtl,
String diskCachePath)
Uses default settings for timeout ( DEFAULT_TIMEOUT), prefers local responders,
do not sign requests and do not use nonce. |
|
| Method Summary | |
|---|---|
int |
getCacheTtl()
|
OCSPCheckingMode |
getCheckingMode()
|
int |
getConntectTimeout()
|
String |
getDiskCachePath()
|
OCSPResponder[] |
getLocalResponders()
|
boolean |
isPreferLocalResponders()
|
boolean |
isUseNonce()
|
void |
setCacheTtl(int cacheTtl)
|
void |
setCheckingMode(OCSPCheckingMode checkingMode)
|
void |
setConntectTimeout(int conntectTimeout)
|
void |
setDiskCachePath(String diskCachePath)
|
void |
setLocalResponders(OCSPResponder[] localResponders)
|
void |
setPreferLocalResponders(boolean preferLocalResponders)
|
void |
setUseNonce(boolean useNonce)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_TIMEOUT
public static final int DEFAULT_CACHE
protected OCSPCheckingMode checkingMode
protected OCSPResponder[] localResponders
protected int conntectTimeout
protected boolean preferLocalResponders
protected boolean useNonce
protected int cacheTtl
protected String diskCachePath
| Constructor Detail |
|---|
public OCSPParametes()
OCSPCheckingMode.IF_AVAILABLE.
OCSPParametes(OCSPCheckingMode)public OCSPParametes(OCSPCheckingMode checkingMode)
checkingMode - general checking modeOCSPParametes(OCSPCheckingMode, OCSPResponder)
public OCSPParametes(OCSPCheckingMode checkingMode,
OCSPResponder localResponder)
DEFAULT_TIMEOUT), and cache (DEFAULT_CACHE and
no disk persistence of cached responses), prefers local responders,
do not sign requests and do not use nonce. Uses only a single local responder.
checkingMode - general checking modelocalResponder - a single local responder
public OCSPParametes(OCSPCheckingMode checkingMode,
OCSPResponder[] localResponders,
int cacheTtl,
String diskCachePath)
DEFAULT_TIMEOUT), prefers local responders,
do not sign requests and do not use nonce.
checkingMode - general checking modelocalResponders - list of local responders (can be empty, but not null)cacheTtl - maximum time after each cached response expires. Negative for no cache at all, 0 for no limit
(i.e. caching time will be only controlled by the OCSP response validity period). In s.diskCachePath - if not null, cached responses will be stored on disk.
public OCSPParametes(OCSPCheckingMode checkingMode,
OCSPResponder[] localResponders,
int conntectTimeout,
boolean preferLocalResponders,
boolean useNonce,
int cacheTtl,
String diskCachePath)
checkingMode - general checking modelocalResponders - list of local responders (can be empty, but not null)conntectTimeout - OCSP responder connection and communication timeoutpreferLocalResponders - whether to prefer locally defined responders over certificate-defined responderuseNonce - whether to use in request and require in response the noncecacheTtl - maximum time after each cached response expires. Negative for no cache at all, 0 for no limit
(i.e. caching time will be only controlled by the OCSP response validity period). In s.diskCachePath - if not null, cached responses will be stored on disk.| Method Detail |
|---|
public OCSPCheckingMode getCheckingMode()
public void setCheckingMode(OCSPCheckingMode checkingMode)
checkingMode - the checkingMode to setpublic OCSPResponder[] getLocalResponders()
public void setLocalResponders(OCSPResponder[] localResponders)
localResponders - the localResponders to setpublic int getConntectTimeout()
public void setConntectTimeout(int conntectTimeout)
conntectTimeout - the conntectTimeout to setpublic boolean isPreferLocalResponders()
public void setPreferLocalResponders(boolean preferLocalResponders)
preferLocalResponders - the preferLocalResponders to setpublic boolean isUseNonce()
public void setUseNonce(boolean useNonce)
useNonce - the useNonce to setpublic int getCacheTtl()
public void setCacheTtl(int cacheTtl)
cacheTtl - the cacheTtl to setpublic String getDiskCachePath()
public void setDiskCachePath(String diskCachePath)
diskCachePath - the diskCachePath to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||