public class CRLConfig
extends java.lang.Object
| Constructor and Description |
|---|
CRLConfig(RevocationStore[] revStores,
boolean requireCRL)
Create a CRL configuration with an array of RevocationStore objects.
|
CRLConfig(java.lang.String[] revStores,
boolean requireCRL)
Create a CRL configuration which consists of a list of fully qualified RevocationStore
class names that will be used.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Test if the CRLConfigs are equal.
|
boolean |
getEnableOfflineLookup()
This API is used to enable offline lookup for all RevocationStores configure by this
object.
|
boolean |
getRequireCRL()
Return whether or not a CRL is Required
|
java.lang.String[] |
getRevocationStoreClassNames()
Returns a List of
RevocationStore class names that this
class encapsulates |
RevocationStore[] |
getRevocationStores(ValidationInfo validationInfo)
Returns a List of
RevocationStore objects that this
class encapsulates. |
int |
hashCode()
Returns a hash code value for the object.
|
void |
setEnableOfflineLookup(boolean enableOfflineLookup)
This API is used to enable offline lookup for all RevocationStores configure by this
object.
|
public CRLConfig(java.lang.String[] revStores,
boolean requireCRL)
String revocationStores[] = new String[]{
"com.entrust.toolkit.x509.revocation.CachedCRLRS",
"com.entrust.toolkit.x509.revocation.DirectoryCRLRS",
"com.entrust.toolkit.x509.revocation.HttpCRLRS"};
or possibly:
String revocationStores[]{CachedCRLRS.class.getName(),
DirectoryCRLRS.class.getName(),
HttpCRLRS.class.getName()}
CRLConfig config = new CRLConfig(revocationStores, true);
Note: When this configuration is used, the classes will be loaded by reflection,
using a Constructor that takes a ValidationInfo as a parameter. Therefore, if a custom
CRL revocation store is used, it must contain a Constructor that takes a ValidationInfo
object as a constructor otherwise it will fail to load.revStores - the array of fully qualified class namesrequireCRL - value to determine if CRLs are required.public CRLConfig(RevocationStore[] revStores, boolean requireCRL)
User user = new User();
....
user.login(credentialReader, password);
ValidationInfo validationInfo = User.getCertVerifier();
RevocationStore revocationStores[] = new RevocationStore[] {
new CachedCRLRS(validationInfo),
new DirectoryCRLRS(validationInfo),
new HttpCRLRS(validationInfo)
};
CRLConfig config = new CRLConfig(revocationStores, true);
revStores - The array of RevocationStores to use for CRL revoation checkingrequireCRL - value to determine if CRLs are required.public java.lang.String[] getRevocationStoreClassNames()
RevocationStore class names that this
class encapsulatesList of RevocationStore objectspublic RevocationStore[] getRevocationStores(ValidationInfo validationInfo)
RevocationStore objects that this
class encapsulates.
Note: This method may use reflection to load the
RevocationStore objects. Reflection will be used if
the constructor CRLConfig(String[], boolean) was used and
this method has not been called previously.
validationInfo - object used to constructList of RevocationStore objectspublic boolean getRequireCRL()
public void setEnableOfflineLookup(boolean enableOfflineLookup)
LdapDirectory has been configured in the
User via the User.setConnections(String)
method. The default setting is false.
Note: When this method is set to false, it does nothing. Individual RevocationStores may have offline lookup enabled or disabled as required.
public boolean getEnableOfflineLookup()
LdapDirectory has been configured in the
User via the User.setConnections(String)
method. The default setting is false.
Note: When this method is set to false, it does nothing. Individual RevocationStores may have offline lookup enabled or disabled as required.
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to compare for equalitypublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()