public class ValidationConfig
extends java.lang.Object
| Constructor and Description |
|---|
ValidationConfig(CertificateStore[] certStores,
boolean allowAIA,
boolean allowSIA)
Create a Validation configuration which consists of a list of CertificateStore
objects that may be used.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests if the Validation Configurations are equal.
|
boolean |
getAllowAIAExtensionFollowing()
Return whether or not an AIA extension will be used to find addition certificates
during the path building part of certificate validation.
|
boolean |
getAllowSIAExtensionFollowing()
Return whether or not an SIA extension will be used to find addition certificates
during the path building part of certificate validation.
|
CertificateStore[] |
getCertificateStores()
Return the CertificateStore objects that were configured in the
constructor.
|
int |
hashCode()
Returns a hash code value for the object.
|
public ValidationConfig(CertificateStore[] certStores, boolean allowAIA, boolean allowSIA)
User user = new User();
....
user.login(credentialReader, password);
ValidationInfo validationInfo = User.getCertVerifier();
CertificateStore certificateStores[] = new CertificateStore[] {
new DirectoryCS(validationInfo),
new CACrossCertCS(validationInfo),
new HTTPCS(validationInfo)
};
ValidationConfig config = new ValidationConfig(certificateStores, true, true);
certStores - The certificate stores that will be used to look up certificates
when validating certificates.allowAIA - a value of true (the default) indicates the AIA extension in the
certificate will be used to find certificates. False indicates the extension will
be ignored.allowSIA - a value of true (the default) indicates the SIA extension in the
certificate will be used to find certificates. False indicates the extension will
be ignored.public CertificateStore[] getCertificateStores()
public boolean getAllowAIAExtensionFollowing()
public boolean getAllowSIAExtensionFollowing()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to comparepublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()