Package org.xwiki.crypto.pkix
Interface CertificateProvider
-
- All Known Implementing Classes:
ChainingCertificateProvider
@Role public interface CertificateProvider
Provides certificates.- Since:
- 6.0M1
- Version:
- $Id: bf279206aa21d85ab32a4ff42298e59c9bae28b1 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getCertificate
CertifiedPublicKey getCertificate(byte[] keyIdentifier)
Return if available a certificate matching the given keyIdentifier.- Parameters:
keyIdentifier
- the subject key identifier of the certificate.- Returns:
- a matching certificate or null if none were found.
-
getCertificate
CertifiedPublicKey getCertificate(PrincipalIndentifier issuer, BigInteger serial)
Return if available a certificate matching the given keyIdentifier.- Parameters:
issuer
- the subject of the issuer of the certificate.serial
- the serial number attributed by the issuer to the certificate.- Returns:
- a matching certificate or null if none were found.
-
getCertificate
CertifiedPublicKey getCertificate(PrincipalIndentifier issuer, BigInteger serial, byte[] keyIdentifier)
Return if available a certificate matching the given keyIdentifier.- Parameters:
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.- Returns:
- a matching certificate or null if none were found.
-
getCertificate
Collection<CertifiedPublicKey> getCertificate(PrincipalIndentifier subject)
Return if available a collection of certificate matching the given subject.- Parameters:
subject
- the subject of the certificate.- Returns:
- a collection of matching certificate or null if none were found.
-
-