public class ChainingCertificateProvider extends Object implements CertificateProvider
Constructor and Description |
---|
ChainingCertificateProvider(CertificateProvider... providers)
Create a new chaining certificate provider from the given providers.
|
Modifier and Type | Method and Description |
---|---|
CertifiedPublicKey |
getCertificate(byte[] keyIdentifier)
Return if available a certificate matching the given keyIdentifier.
|
Collection<CertifiedPublicKey> |
getCertificate(PrincipalIndentifier subject)
Return if available a collection of certificate matching the given subject.
|
CertifiedPublicKey |
getCertificate(PrincipalIndentifier issuer,
BigInteger serial)
Return if available a certificate matching the given keyIdentifier.
|
CertifiedPublicKey |
getCertificate(PrincipalIndentifier issuer,
BigInteger serial,
byte[] keyIdentifier)
Return if available a certificate matching the given keyIdentifier.
|
public ChainingCertificateProvider(CertificateProvider... providers)
providers
- providers to be chained in order.public CertifiedPublicKey getCertificate(byte[] keyIdentifier)
CertificateProvider
getCertificate
in interface CertificateProvider
keyIdentifier
- the subject key identifier of the certificate.public CertifiedPublicKey getCertificate(PrincipalIndentifier issuer, BigInteger serial)
CertificateProvider
getCertificate
in interface CertificateProvider
issuer
- the subject of the issuer of the certificate.serial
- the serial number attributed by the issuer to the certificate.public CertifiedPublicKey getCertificate(PrincipalIndentifier issuer, BigInteger serial, byte[] keyIdentifier)
CertificateProvider
getCertificate
in interface CertificateProvider
issuer
- the subject of the issuer of the certificate.serial
- the serial number attributed by the issuer to the certificate.keyIdentifier
- the subject key identifier of the certificate.public Collection<CertifiedPublicKey> getCertificate(PrincipalIndentifier subject)
CertificateProvider
getCertificate
in interface CertificateProvider
subject
- the subject of the certificate.Copyright © 2004–2021 XWiki. All rights reserved.