public class KeychainIdentityCertFilter extends java.lang.Object implements KeychainCertFilter
KeychainCertFilter that is used
to find a specific identity in the Keychain based on certificate criteria.
The following Criteria types are supported:
| Constructor and Description |
|---|
KeychainIdentityCertFilter(ContainerName KeychainContainerName)
This can be used to find all certificates in that particular identity.
|
KeychainIdentityCertFilter(java.security.Principal subjectDN)
This constructor takes a Principal which represents the
Subject Name of a Certificate as the criteria for filtering
acceptable certificates.
|
KeychainIdentityCertFilter(X509Certificate cert)
This constructor takes an X509Certificate and uses the SubjectName
as the criteria for filtering acceptable certificates.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptCertificate(X509Certificate certificate)
This method checks whether the certificate should be accepted depending
on whether it has the same subject name or KeychainContainerName
|
public KeychainIdentityCertFilter(X509Certificate cert) throws KeychainException
cert - The X509Certificate whose subject DN is used to find
acceptable certificatesKeychainExceptionpublic KeychainIdentityCertFilter(java.security.Principal subjectDN)
throws KeychainException
subjectDN - The SubjectDN which will be used to find
acceptable certificatesKeychainExceptionpublic KeychainIdentityCertFilter(ContainerName KeychainContainerName) throws KeychainException
KeychainContainerName - The KeychainContainerNameKeychainExceptionpublic boolean acceptCertificate(X509Certificate certificate)
acceptCertificate in interface KeychainCertFiltercertificate - The certificate that will be checked for acceptability