Class MetadataPassword


  • public class MetadataPassword
    extends Object
    An element of this type shall contain information concerning the used encryption and the used encryption key.
    • Constructor Detail

      • MetadataPassword

        public MetadataPassword()
    • Method Detail

      • getHasAsymmetricEncryption

        @Nullable
        public @Nullable Boolean getHasAsymmetricEncryption()
        If this is set to \"true\", the document is asymmetrically encrypted and a matching private key is required to decrypt it. Otherwise the document is symetrically encrypted and requires a password.
        Returns:
        hasAsymmetricEncryption
      • setHasAsymmetricEncryption

        public void setHasAsymmetricEncryption​(Boolean hasAsymmetricEncryption)
      • getHasOpenPassword

        @Nullable
        public @Nullable Boolean getHasOpenPassword()
        If this is set to \"true\", the document is encrypted and requires a password to be opened.
        Returns:
        hasOpenPassword
      • setHasOpenPassword

        public void setHasOpenPassword​(Boolean hasOpenPassword)
      • getHasPermissionPassword

        @Nullable
        public @Nullable Boolean getHasPermissionPassword()
        If this is set to \"true\", the document has a change protection and a password is required to claim ownership and modify the document.
        Returns:
        hasPermissionPassword
      • setHasPermissionPassword

        public void setHasPermissionPassword​(Boolean hasPermissionPassword)
      • getKeyAlgorithm

        @Nullable
        public @Nullable MetadataPassword.KeyAlgorithmEnum getKeyAlgorithm()
        The algorithm used for encryption. * none = The document is not encrypted. * aes = The document has been encrypted using the Advanced Encryption Standard. * rc4 = The document has been encrypted using the RC4 cipher.
        Returns:
        keyAlgorithm
      • getKeyLength

        @Nullable
        public @Nullable Integer getKeyLength()
        The Bit length of the key used for encryption. minimum: 0
        Returns:
        keyLength
      • setKeyLength

        public void setKeyLength​(Integer keyLength)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object