Package pgp.cert_d

Class PGPCertificateStoreAdapter

  • All Implemented Interfaces:
    pgp.certificate_store.PGPCertificateStore

    public class PGPCertificateStoreAdapter
    extends java.lang.Object
    implements pgp.certificate_store.PGPCertificateStore
    Adapter class to adapt a PGPCertificateDirectory to the PGPCertificateStore interface.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      pgp.certificate_store.certificate.Certificate getCertificate​(java.lang.String identifier)  
      pgp.certificate_store.certificate.Certificate getCertificateIfChanged​(java.lang.String identifier, java.lang.Long tag)  
      java.util.Iterator<pgp.certificate_store.certificate.Certificate> getCertificates()  
      java.util.Iterator<pgp.certificate_store.certificate.Certificate> getCertificatesBySubkeyId​(long subkeyId)  
      java.util.Iterator<java.lang.String> getFingerprints()  
      pgp.certificate_store.certificate.Certificate insertCertificate​(java.io.InputStream data, pgp.certificate_store.certificate.KeyMaterialMerger merge)  
      pgp.certificate_store.certificate.Certificate insertCertificateBySpecialName​(java.lang.String specialName, java.io.InputStream data, pgp.certificate_store.certificate.KeyMaterialMerger merge)  
      • Methods inherited from class java.lang.Object

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

      • getCertificate

        public pgp.certificate_store.certificate.Certificate getCertificate​(java.lang.String identifier)
                                                                     throws java.io.IOException,
                                                                            pgp.certificate_store.exception.BadNameException,
                                                                            pgp.certificate_store.exception.BadDataException
        Specified by:
        getCertificate in interface pgp.certificate_store.PGPCertificateStore
        Throws:
        java.io.IOException
        pgp.certificate_store.exception.BadNameException
        pgp.certificate_store.exception.BadDataException
      • getCertificateIfChanged

        public pgp.certificate_store.certificate.Certificate getCertificateIfChanged​(java.lang.String identifier,
                                                                                     java.lang.Long tag)
                                                                              throws java.io.IOException,
                                                                                     pgp.certificate_store.exception.BadNameException,
                                                                                     pgp.certificate_store.exception.BadDataException
        Specified by:
        getCertificateIfChanged in interface pgp.certificate_store.PGPCertificateStore
        Throws:
        java.io.IOException
        pgp.certificate_store.exception.BadNameException
        pgp.certificate_store.exception.BadDataException
      • getCertificatesBySubkeyId

        public java.util.Iterator<pgp.certificate_store.certificate.Certificate> getCertificatesBySubkeyId​(long subkeyId)
                                                                                                    throws java.io.IOException,
                                                                                                           pgp.certificate_store.exception.BadDataException
        Specified by:
        getCertificatesBySubkeyId in interface pgp.certificate_store.PGPCertificateStore
        Throws:
        java.io.IOException
        pgp.certificate_store.exception.BadDataException
      • insertCertificate

        public pgp.certificate_store.certificate.Certificate insertCertificate​(java.io.InputStream data,
                                                                               pgp.certificate_store.certificate.KeyMaterialMerger merge)
                                                                        throws java.io.IOException,
                                                                               java.lang.InterruptedException,
                                                                               pgp.certificate_store.exception.BadDataException
        Specified by:
        insertCertificate in interface pgp.certificate_store.PGPCertificateStore
        Throws:
        java.io.IOException
        java.lang.InterruptedException
        pgp.certificate_store.exception.BadDataException
      • insertCertificateBySpecialName

        public pgp.certificate_store.certificate.Certificate insertCertificateBySpecialName​(java.lang.String specialName,
                                                                                            java.io.InputStream data,
                                                                                            pgp.certificate_store.certificate.KeyMaterialMerger merge)
                                                                                     throws java.io.IOException,
                                                                                            java.lang.InterruptedException,
                                                                                            pgp.certificate_store.exception.BadDataException,
                                                                                            pgp.certificate_store.exception.BadNameException
        Specified by:
        insertCertificateBySpecialName in interface pgp.certificate_store.PGPCertificateStore
        Throws:
        java.io.IOException
        java.lang.InterruptedException
        pgp.certificate_store.exception.BadDataException
        pgp.certificate_store.exception.BadNameException
      • getCertificates

        public java.util.Iterator<pgp.certificate_store.certificate.Certificate> getCertificates()
        Specified by:
        getCertificates in interface pgp.certificate_store.PGPCertificateStore
      • getFingerprints

        public java.util.Iterator<java.lang.String> getFingerprints()
        Specified by:
        getFingerprints in interface pgp.certificate_store.PGPCertificateStore