public class CertificatePool extends Object implements Serializable
importCerts(CertificateSource) method .| Constructor and Description |
|---|
CertificatePool() |
| Modifier and Type | Method and Description |
|---|---|
List<CertificateToken> |
get(PublicKey publicKey)
This method returns the List of certificates with the same Public key.
|
List<CertificateToken> |
get(X500Principal x500Principal)
This method returns the List of certificates with the same subjectDN.
|
List<CertificateToken> |
getBySignerId(org.bouncycastle.cms.SignerId signerId)
This method returns the List of certificates with the same SignerId.
|
List<CertificateToken> |
getBySki(byte[] expectedSki)
This method returns the List of certificates with the same SKI (subject key
identifier = SHA-1 of the Public Key).
|
List<CertificateToken> |
getCertificateTokens() |
CertificateToken |
getInstance(CertificateToken certificateToAdd,
CertificateSourceType certSource)
This method returns the instance of a
CertificateToken. |
CertificateToken |
getIssuer(Token token)
THis method returns an issuer for the given token
|
List<CertificateToken> |
getIssuers(Token token)
This method returns all known issuers for the given token.
|
int |
getNumberOfCertificates()
This method return the number of certificates contained by this pool.
|
int |
getNumberOfEntities()
This method return the number of entities contained by this pool identified
by its public key.
|
Set<CertificateSourceType> |
getSources(CertificateToken certificateToken) |
CertificateToken |
getTrustAnchor(CertificateToken cert) |
void |
importCerts(CertificateSource certificateSource)
This method allows to imports certificates from a
CommonCertificateSource. |
boolean |
isTrusted(CertificateToken cert) |
public CertificateToken getInstance(CertificateToken certificateToAdd, CertificateSourceType certSource)
CertificateToken.certificateToAdd - the certificate to add in the poolcertSource - the source of the given certificatepublic boolean isTrusted(CertificateToken cert)
public Set<CertificateSourceType> getSources(CertificateToken certificateToken)
public List<CertificateToken> getIssuers(Token token)
token - the child certificate, timestamp or revocation data for which
the issuers are requiredList of all known CertificateTokenpublic CertificateToken getIssuer(Token token)
token - the child certificate, timestamp or revocation data for which an
issuer is requiredpublic CertificateToken getTrustAnchor(CertificateToken cert)
public List<CertificateToken> get(X500Principal x500Principal)
x500Principal - subject distinguished name to match.public List<CertificateToken> get(PublicKey publicKey)
publicKey - expected public key.public List<CertificateToken> getBySki(byte[] expectedSki)
expectedSki - expected SKI value.public List<CertificateToken> getBySignerId(org.bouncycastle.cms.SignerId signerId)
signerId - expected signerId.public void importCerts(CertificateSource certificateSource)
CommonCertificateSource. If an instance of the
CertificateToken already exists in this pool only the
CertificateSourceType are added.certificateSource - the certificate source where certificates will be
copiedpublic int getNumberOfEntities()
public int getNumberOfCertificates()
public List<CertificateToken> getCertificateTokens()
Copyright © 2019. All rights reserved.