Class InMemorySubkeyLookup

  • All Implemented Interfaces:
    SubkeyLookup

    public class InMemorySubkeyLookup
    extends java.lang.Object
    implements SubkeyLookup
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      java.util.Set<java.lang.String> getCertificateFingerprintsForSubkeyId​(long subkeyId)
      Lookup the fingerprint of the certificate that contains the given subkey.
      void storeCertificateSubkeyIds​(java.lang.String certificate, java.util.List<java.lang.Long> subkeyIds)
      Record, which certificate the subkey-ids in the list belong to.
      • Methods inherited from class java.lang.Object

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

      • InMemorySubkeyLookup

        public InMemorySubkeyLookup()
    • Method Detail

      • getCertificateFingerprintsForSubkeyId

        public java.util.Set<java.lang.String> getCertificateFingerprintsForSubkeyId​(long subkeyId)
        Description copied from interface: SubkeyLookup
        Lookup the fingerprint of the certificate that contains the given subkey. If no record is found, return null.
        Specified by:
        getCertificateFingerprintsForSubkeyId in interface SubkeyLookup
        Parameters:
        subkeyId - subkey id
        Returns:
        fingerprint of the certificate
      • storeCertificateSubkeyIds

        public void storeCertificateSubkeyIds​(java.lang.String certificate,
                                              java.util.List<java.lang.Long> subkeyIds)
        Description copied from interface: SubkeyLookup
        Record, which certificate the subkey-ids in the list belong to. This method does not change the affiliation of subkey-ids not contained in the provided list.
        Specified by:
        storeCertificateSubkeyIds in interface SubkeyLookup
        Parameters:
        certificate - certificate fingerprint
        subkeyIds - subkey ids
      • clear

        public void clear()