Class ConsumerOptions.CertificateSource

  • Enclosing class:
    ConsumerOptions

    public static class ConsumerOptions.CertificateSource
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCertificate​(org.bouncycastle.openpgp.PGPPublicKeyRing certificate)
      Add a certificate as verification cert explicitly.
      void addStore​(pgp.certificate_store.PGPCertificateStore certificateStore)
      Add a certificate store as source for verification certificates.
      org.bouncycastle.openpgp.PGPPublicKeyRing getCertificate​(long keyId)
      Return a certificate which contains a subkey with the given keyId.
      java.util.Set<org.bouncycastle.openpgp.PGPPublicKeyRing> getExplicitCertificates()
      Return the set of explicitly set verification certificates.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CertificateSource

        public CertificateSource()
    • Method Detail

      • addStore

        public void addStore​(pgp.certificate_store.PGPCertificateStore certificateStore)
        Add a certificate store as source for verification certificates.
        Parameters:
        certificateStore - cert store
      • addCertificate

        public void addCertificate​(org.bouncycastle.openpgp.PGPPublicKeyRing certificate)
        Add a certificate as verification cert explicitly.
        Parameters:
        certificate - certificate
      • getExplicitCertificates

        public java.util.Set<org.bouncycastle.openpgp.PGPPublicKeyRing> getExplicitCertificates()
        Return the set of explicitly set verification certificates.
        Returns:
        explicitly set verification certs
      • getCertificate

        public org.bouncycastle.openpgp.PGPPublicKeyRing getCertificate​(long keyId)
        Return a certificate which contains a subkey with the given keyId. This method first checks all explicitly set verification certs and if no cert is found it consults the certificate stores.
        Parameters:
        keyId - key id
        Returns:
        certificate