Class FileEncryptionInfo

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataType

    public class FileEncryptionInfo
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “Contains properties for file encryption information for the content version of a line of business app.”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • encryptionKey

        protected byte[] encryptionKey
      • fileDigest

        protected byte[] fileDigest
      • fileDigestAlgorithm

        protected String fileDigestAlgorithm
      • initializationVector

        protected byte[] initializationVector
      • mac

        protected byte[] mac
      • macKey

        protected byte[] macKey
      • profileIdentifier

        protected String profileIdentifier
    • Constructor Detail

      • FileEncryptionInfo

        protected FileEncryptionInfo()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • getEncryptionKey

        public Optional<byte[]> getEncryptionKey()
        “The key used to encrypt the file content.”
        Returns:
        property encryptionKey
      • withEncryptionKey

        public FileEncryptionInfo withEncryptionKey​(byte[] encryptionKey)
        Returns an immutable copy of this with just the encryptionKey field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The key used to encrypt the file content.”

        Parameters:
        encryptionKey - new value of encryptionKey field (as defined in service metadata)
        Returns:
        immutable copy of this with just the encryptionKey field changed
      • getFileDigest

        public Optional<byte[]> getFileDigest()
        “The file digest prior to encryption.”
        Returns:
        property fileDigest
      • withFileDigest

        public FileEncryptionInfo withFileDigest​(byte[] fileDigest)
        Returns an immutable copy of this with just the fileDigest field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The file digest prior to encryption.”

        Parameters:
        fileDigest - new value of fileDigest field (as defined in service metadata)
        Returns:
        immutable copy of this with just the fileDigest field changed
      • getFileDigestAlgorithm

        public Optional<String> getFileDigestAlgorithm()
        “The file digest algorithm.”
        Returns:
        property fileDigestAlgorithm
      • withFileDigestAlgorithm

        public FileEncryptionInfo withFileDigestAlgorithm​(String fileDigestAlgorithm)
        Returns an immutable copy of this with just the fileDigestAlgorithm field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The file digest algorithm.”

        Parameters:
        fileDigestAlgorithm - new value of fileDigestAlgorithm field (as defined in service metadata)
        Returns:
        immutable copy of this with just the fileDigestAlgorithm field changed
      • getInitializationVector

        public Optional<byte[]> getInitializationVector()
        “The initialization vector used for the encryption algorithm.”
        Returns:
        property initializationVector
      • withInitializationVector

        public FileEncryptionInfo withInitializationVector​(byte[] initializationVector)
        Returns an immutable copy of this with just the initializationVector field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The initialization vector used for the encryption algorithm.”

        Parameters:
        initializationVector - new value of initializationVector field (as defined in service metadata)
        Returns:
        immutable copy of this with just the initializationVector field changed
      • getMac

        public Optional<byte[]> getMac()
        “The hash of the encrypted file content + IV (content hash).”
        Returns:
        property mac
      • withMac

        public FileEncryptionInfo withMac​(byte[] mac)
        Returns an immutable copy of this with just the mac field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The hash of the encrypted file content + IV (content hash).”

        Parameters:
        mac - new value of mac field (as defined in service metadata)
        Returns:
        immutable copy of this with just the mac field changed
      • getMacKey

        public Optional<byte[]> getMacKey()
        “The key used to get mac.”
        Returns:
        property macKey
      • withMacKey

        public FileEncryptionInfo withMacKey​(byte[] macKey)
        Returns an immutable copy of this with just the macKey field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The key used to get mac.”

        Parameters:
        macKey - new value of macKey field (as defined in service metadata)
        Returns:
        immutable copy of this with just the macKey field changed
      • getProfileIdentifier

        public Optional<String> getProfileIdentifier()
        “The the profile identifier.”
        Returns:
        property profileIdentifier
      • withProfileIdentifier

        public FileEncryptionInfo withProfileIdentifier​(String profileIdentifier)
        Returns an immutable copy of this with just the profileIdentifier field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The the profile identifier.”

        Parameters:
        profileIdentifier - new value of profileIdentifier field (as defined in service metadata)
        Returns:
        immutable copy of this with just the profileIdentifier field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
      • builder

        public static FileEncryptionInfo.Builder builder()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class