public interface X509TrustManagerInterface
KeyProviderInterface implementation for X509 stuff KeyProviderImplX509Data
in order to manage trust regarding X509 certificates.| Modifier and Type | Method and Description |
|---|---|
java.security.cert.X509Certificate |
getCertificate(byte[] subjectKeyIdentifierValue)
Provides the certificate which is unambigously identified by the specified parameter.
|
java.security.cert.X509Certificate |
getCertificate(java.security.Principal issuer,
java.math.BigInteger serialNumber)
Provides the certificate which is unambigously identified by the specified parameters.
|
java.security.cert.X509Certificate[] |
getCertificates(java.security.Principal subject)
Provides all certificates whose subject equals the specified parameter.
|
boolean |
isTrusted(java.security.cert.X509Certificate trustCandidate)
Decides if a specified certificate "is trusted" by the trust management system.
|
void |
putCertificates(java.security.cert.X509Certificate[] certificates)
Hands over a bunch of certificates to the trust management system in order to be stored for later use.
|
void |
putCRL(java.security.cert.X509CRL cRL)
Hands over a certificate revocation list to the trust management system in order to be stored there.
|
void putCertificates(java.security.cert.X509Certificate[] certificates)
throws X509TrustManagerException
certificates - The bunch of certificates to be stored. May be null.X509TrustManagerException - if putting the certificates into the trust management system fails
for any reason.void putCRL(java.security.cert.X509CRL cRL)
throws X509TrustManagerException
cRL - The certificate revocation list. May be null.X509TrustManagerException - if putting the CRL into the trust management system fails for any
reason.boolean isTrusted(java.security.cert.X509Certificate trustCandidate)
throws X509TrustManagerException
trustCandidate - The certificate to be tested. Must not be null.true if the certificate is trusted.X509TrustManagerException - if getting the trust decision fails for any reason.java.security.cert.X509Certificate getCertificate(java.security.Principal issuer,
java.math.BigInteger serialNumber)
throws X509TrustManagerException
issuer - The issuer of the certificate. Must not be null.serialNumber - The serial number of the certificate. Must not be null.null, if the trust
management system does not know this certificate.X509TrustManagerException - if getting the requested certificate fails for any reason.java.security.cert.X509Certificate getCertificate(byte[] subjectKeyIdentifierValue)
throws X509TrustManagerException
subjectKeyIdentifierValue - The plain (i.e. non-DER-encoded) value of the X509.V3 certificate
extension named SubjectKeyIdentifer (OID 2.5.29.14). Must not be
null.null, if the trust
management system does not know this certificate.X509TrustManagerException - if getting the requested certificate fails for any reason.java.security.cert.X509Certificate[] getCertificates(java.security.Principal subject)
throws X509TrustManagerException
subject - The subject of the certificate. Must not be null.null if there are no fitting
certificates.X509TrustManagerException - if getting the requested certificates fails for any reason.