public class KeychainUnverifiedCertFilter extends java.lang.Object implements KeychainCertFilter
KeychainIdentiy via the
KeychanIdentity#setChainToRoot(X509Certificate[]) otherwise the identity
will not be able to be used as a User
When used, this filter always allows certificates that have a root CA certificate to be found. It only allows an unverified certificate to be considered acceptable if it is a contained in the unverified DN list, which is a list of issuer DN's that are known. This is a requirement because the application user must have access to the issuer chain of CA certificates for the unverified identity to be of any use.
KeychainIdentity| Constructor and Description |
|---|
KeychainUnverifiedCertFilter(java.util.List<Name> unverifiedDNList)
T
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptCertificate(X509Certificate certificate)
This method checks if the certificate is acceptable, and returns true if
acceptable, false if not acceptable.
|
public KeychainUnverifiedCertFilter(java.util.List<Name> unverifiedDNList)
unverifiedDNList - public boolean acceptCertificate(X509Certificate certificate)
The certificate is acceptable if it contains a chain to the root CA based or if it is in the list of unverified DN's configured by the constructor.
acceptCertificate in interface KeychainCertFiltercertificate - the certificate to check for acceptability