public interface CertificateSource extends Serializable
| Modifier and Type | Method and Description |
|---|---|
CertificateToken |
addCertificate(CertificateToken certificate)
This method allows to manually add any certificate to the source.
|
List<CertificateToken> |
get(X500Principal x500Principal)
This method returns the
List of CertificateToken(s) corresponding to the given subject
distinguished name. |
CertificatePool |
getCertificatePool()
This method return the
CertificatePool encapsulated by the source. |
List<CertificateToken> |
getCertificates()
Retrieves the unmodifiable list of all certificate tokens from this source.
|
CertificateSourceType |
getCertificateSourceType()
This method returns the certificate source type associated to the
implementation class.
|
CertificatePool getCertificatePool()
CertificatePool encapsulated by the source.CertificateToken addCertificate(CertificateToken certificate)
certificate - the certificate you have to trustList<CertificateToken> get(X500Principal x500Principal)
List of CertificateToken(s) corresponding to the given subject
distinguished name.
The search is performed at the level of source and not at the pool level (The same pool can be shared by many
sources).x500Principal - subject distinguished names of the certificate to findList of CertificateToken which have x500Principal as subjectCertificateSourceType getCertificateSourceType()
List<CertificateToken> getCertificates()
Copyright © 2019. All rights reserved.