Package odata.msgraph.client.complex
Class FileEncryptionInfo
- java.lang.Object
-
- odata.msgraph.client.complex.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileEncryptionInfo.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected byte[]encryptionKeyprotected byte[]fileDigestprotected StringfileDigestAlgorithmprotected byte[]initializationVectorprotected byte[]macprotected byte[]macKeyprotected StringodataTypeprotected StringprofileIdentifierprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedFileEncryptionInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileEncryptionInfo.Builderbuilder()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.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()FileEncryptionInfowithEncryptionKey(byte[] encryptionKey)Returns an immutable copy ofthiswith just theencryptionKeyfield changed.FileEncryptionInfowithFileDigest(byte[] fileDigest)Returns an immutable copy ofthiswith just thefileDigestfield changed.FileEncryptionInfowithFileDigestAlgorithm(String fileDigestAlgorithm)Returns an immutable copy ofthiswith just thefileDigestAlgorithmfield changed.FileEncryptionInfowithInitializationVector(byte[] initializationVector)Returns an immutable copy ofthiswith just theinitializationVectorfield changed.FileEncryptionInfowithMac(byte[] mac)Returns an immutable copy ofthiswith just themacfield changed.FileEncryptionInfowithMacKey(byte[] macKey)Returns an immutable copy ofthiswith just themacKeyfield changed.FileEncryptionInfowithProfileIdentifier(String profileIdentifier)Returns an immutable copy ofthiswith just theprofileIdentifierfield changed.FileEncryptionInfowithUnmappedField(String name, String value)
-
-
-
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
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.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 ofthiswith just theencryptionKeyfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofencryptionKeyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theencryptionKeyfield 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 ofthiswith just thefileDigestfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 offileDigestfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefileDigestfield changed
-
getFileDigestAlgorithm
public Optional<String> getFileDigestAlgorithm()
“The file digest algorithm.”- Returns:
- property fileDigestAlgorithm
-
withFileDigestAlgorithm
public FileEncryptionInfo withFileDigestAlgorithm(String fileDigestAlgorithm)
Returns an immutable copy ofthiswith just thefileDigestAlgorithmfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The file digest algorithm.”
- Parameters:
fileDigestAlgorithm- new value offileDigestAlgorithmfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefileDigestAlgorithmfield 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 ofthiswith just theinitializationVectorfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofinitializationVectorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinitializationVectorfield 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 ofthiswith just themacfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofmacfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themacfield 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 ofthiswith just themacKeyfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofmacKeyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themacKeyfield changed
-
getProfileIdentifier
public Optional<String> getProfileIdentifier()
“The the profile identifier.”- Returns:
- property profileIdentifier
-
withProfileIdentifier
public FileEncryptionInfo withProfileIdentifier(String profileIdentifier)
Returns an immutable copy ofthiswith just theprofileIdentifierfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The the profile identifier.”
- Parameters:
profileIdentifier- new value ofprofileIdentifierfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theprofileIdentifierfield changed
-
withUnmappedField
public FileEncryptionInfo withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.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
-
-