Class FileMetadata.Signature

  • Enclosing class:
    FileMetadata

    public static class FileMetadata.Signature
    extends java.lang.Object
    Signature found by decryptor.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Key key  
      private long keyId  
      private boolean verified  
    • Constructor Summary

      Constructors 
      Constructor Description
      Signature()
      Constructs blank signature object.
      Signature​(long keyId)
      Constructs unverified signature object for the specified subkey ID.
      Signature​(long keyId, Key key)
      Constructs unverified signature object for the specified key.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Key getKey()
      Key used for signature, or null.
      long getKeyId()
      ID of subkey used for signature.
      Key getVerifiedKey()
      Key used for signature if verified, or null.
      boolean isVerified()
      True if signature was verified.
      void setKey​(Key x)
      Key used for signature, or null.
      void setKeyId​(long x)
      ID of subkey used for signature.
      void setVerified​(boolean x)
      True if signature was verified.
      void setVerifiedKey​(Key x)
      Key used for signature if verified, or null.
      • Methods inherited from class java.lang.Object

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

      • verified

        private boolean verified
      • keyId

        private long keyId
      • key

        private Key key
    • Constructor Detail

      • Signature

        public Signature()
        Constructs blank signature object.
      • Signature

        public Signature​(long keyId)
        Constructs unverified signature object for the specified subkey ID.
      • Signature

        public Signature​(long keyId,
                         Key key)
        Constructs unverified signature object for the specified key.
    • Method Detail

      • isVerified

        public boolean isVerified()
        True if signature was verified.
      • setVerified

        public void setVerified​(boolean x)
        True if signature was verified.
      • getKeyId

        public long getKeyId()
        ID of subkey used for signature.
      • setKeyId

        public void setKeyId​(long x)
        ID of subkey used for signature.
      • getKey

        public Key getKey()
        Key used for signature, or null.
      • setKey

        public void setKey​(Key x)
        Key used for signature, or null.
      • getVerifiedKey

        public Key getVerifiedKey()
        Key used for signature if verified, or null.
      • setVerifiedKey

        public void setVerifiedKey​(Key x)
        Key used for signature if verified, or null.