public class FileEncryptionInfo extends Object implements com.github.davidmoten.odata.client.ODataType
| Modifier and Type | Class and Description |
|---|---|
static class |
FileEncryptionInfo.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected com.github.davidmoten.odata.client.ContextPath |
contextPath |
protected byte[] |
encryptionKey |
protected byte[] |
fileDigest |
protected String |
fileDigestAlgorithm |
protected byte[] |
initializationVector |
protected byte[] |
mac |
protected byte[] |
macKey |
protected String |
odataType |
protected String |
profileIdentifier |
protected com.github.davidmoten.odata.client.internal.UnmappedFields |
unmappedFields |
| Modifier | Constructor and Description |
|---|---|
protected |
FileEncryptionInfo() |
| Modifier and Type | Method and Description |
|---|---|
static FileEncryptionInfo.Builder |
builder()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
Optional<byte[]> |
getEncryptionKey()
“The key used to encrypt the file content.”
|
Optional<byte[]> |
getFileDigest()
“The file digest prior to encryption.”
|
Optional<String> |
getFileDigestAlgorithm()
“The file digest algorithm.”
|
Optional<byte[]> |
getInitializationVector()
“The initialization vector used for the encryption algorithm.”
|
Optional<byte[]> |
getMac()
“The hash of the encrypted file content + IV (content hash).”
|
Optional<byte[]> |
getMacKey()
“The key used to get mac.”
|
Optional<String> |
getProfileIdentifier()
“The the profile identifier.”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
void |
postInject(boolean addKeysToContextPath) |
String |
toString() |
FileEncryptionInfo |
withEncryptionKey(byte[] encryptionKey)
Returns an immutable copy of
this with just the encryptionKey
field changed. |
FileEncryptionInfo |
withFileDigest(byte[] fileDigest)
Returns an immutable copy of
this with just the fileDigest field
changed. |
FileEncryptionInfo |
withFileDigestAlgorithm(String fileDigestAlgorithm)
Returns an immutable copy of
this with just the fileDigestAlgorithm field changed. |
FileEncryptionInfo |
withInitializationVector(byte[] initializationVector)
Returns an immutable copy of
this with just the initializationVector field changed. |
FileEncryptionInfo |
withMac(byte[] mac)
Returns an immutable copy of
this with just the mac field
changed. |
FileEncryptionInfo |
withMacKey(byte[] macKey)
Returns an immutable copy of
this with just the macKey field
changed. |
FileEncryptionInfo |
withProfileIdentifier(String profileIdentifier)
Returns an immutable copy of
this with just the profileIdentifier
field changed. |
protected com.github.davidmoten.odata.client.ContextPath contextPath
protected com.github.davidmoten.odata.client.internal.UnmappedFields unmappedFields
protected String odataType
protected byte[] encryptionKey
protected byte[] initializationVector
protected byte[] mac
protected byte[] macKey
protected String profileIdentifier
protected byte[] fileDigest
protected String fileDigestAlgorithm
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypepublic Optional<byte[]> getEncryptionKey()
public FileEncryptionInfo withEncryptionKey(byte[] encryptionKey)
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.”
encryptionKey - new value of encryptionKey field (as defined in service metadata)this with just the encryptionKey field changedpublic Optional<byte[]> getInitializationVector()
public FileEncryptionInfo withInitializationVector(byte[] initializationVector)
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.”
initializationVector - new value of initializationVector field (as defined in service metadata)this with just the initializationVector field changedpublic Optional<byte[]> getMac()
public FileEncryptionInfo withMac(byte[] mac)
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).”
mac - new value of mac field (as defined in service metadata)this with just the mac field changedpublic Optional<byte[]> getMacKey()
public FileEncryptionInfo withMacKey(byte[] macKey)
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.”
macKey - new value of macKey field (as defined in service metadata)this with just the macKey field changedpublic Optional<String> getProfileIdentifier()
public FileEncryptionInfo withProfileIdentifier(String profileIdentifier)
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.”
profileIdentifier - new value of profileIdentifier field (as defined in service metadata)this with just the profileIdentifier field changedpublic Optional<byte[]> getFileDigest()
public FileEncryptionInfo withFileDigest(byte[] fileDigest)
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.”
fileDigest - new value of fileDigest field (as defined in service metadata)this with just the fileDigest field changedpublic Optional<String> getFileDigestAlgorithm()
public FileEncryptionInfo withFileDigestAlgorithm(String fileDigestAlgorithm)
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.”
fileDigestAlgorithm - new value of fileDigestAlgorithm field (as defined in service metadata)this with just the fileDigestAlgorithm field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypepublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepublic static FileEncryptionInfo.Builder builder()
Copyright © 2018–2020. All rights reserved.