Class EncryptedFile


  • public class EncryptedFile
    extends Object
    Encrypted file.
    • Field Detail

      • url

        private String url
        Required. The URL to the file.
      • key

        private JWK key
        Required. A JSON Web Key object.
      • iv

        private String iv
        Required. The Initialisation Vector used by AES-CTR, encoded as unpadded base64.
      • hashes

        private Map<String,​String> hashes
        Required. A map from an algorithm name to a hash of the ciphertext, encoded as unpadded base64. Clients should support the SHA-256 hash, which uses the key sha256.
      • version

        private String version
        Required. Version of the encrypted attachments protocol. Must be v2.
    • Constructor Detail

      • EncryptedFile

        public EncryptedFile()
    • Method Detail

      • getUrl

        public String getUrl()
      • setUrl

        public void setUrl​(String url)
      • getKey

        public JWK getKey()
      • setKey

        public void setKey​(JWK key)
      • getIv

        public String getIv()
      • setIv

        public void setIv​(String iv)
      • getVersion

        public String getVersion()
      • setVersion

        public void setVersion​(String version)