Package odata.msgraph.client.complex
Class FileEncryptionInfo.Builder
- java.lang.Object
-
- odata.msgraph.client.complex.FileEncryptionInfo.Builder
-
- Enclosing class:
- FileEncryptionInfo
public static final class FileEncryptionInfo.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileEncryptionInfobuild()FileEncryptionInfo.BuilderencryptionKey(byte[] encryptionKey)“The key used to encrypt the file content.”FileEncryptionInfo.BuilderfileDigest(byte[] fileDigest)“The file digest prior to encryption.FileEncryptionInfo.BuilderfileDigestAlgorithm(String fileDigestAlgorithm)“The file digest algorithm.FileEncryptionInfo.BuilderinitializationVector(byte[] initializationVector)“The initialization vector (IV) used for the encryption algorithm.FileEncryptionInfo.Buildermac(byte[] mac)“The hash of the concatenation of the IV and encrypted file content.FileEncryptionInfo.BuildermacKey(byte[] macKey)“The key used to compute the message authentication code of the concatenation of the IV and encrypted file content.FileEncryptionInfo.BuilderprofileIdentifier(String profileIdentifier)“The profile identifier.
-
-
-
Method Detail
-
encryptionKey
public FileEncryptionInfo.Builder encryptionKey(byte[] encryptionKey)
“The key used to encrypt the file content.”- Parameters:
encryptionKey- value ofencryptionKeyproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
fileDigest
public FileEncryptionInfo.Builder fileDigest(byte[] fileDigest)
“The file digest prior to encryption. ProfileVersion1 requires a non-null FileDigest.”- Parameters:
fileDigest- value offileDigestproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
fileDigestAlgorithm
public FileEncryptionInfo.Builder fileDigestAlgorithm(String fileDigestAlgorithm)
“The file digest algorithm. ProfileVersion1 currently only supports SHA256 for the FileDigestAlgorithm.”- Parameters:
fileDigestAlgorithm- value offileDigestAlgorithmproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
initializationVector
public FileEncryptionInfo.Builder initializationVector(byte[] initializationVector)
“The initialization vector (IV) used for the encryption algorithm. Must be 16 bytes.”- Parameters:
initializationVector- value ofinitializationVectorproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
mac
public FileEncryptionInfo.Builder mac(byte[] mac)
“The hash of the concatenation of the IV and encrypted file content. Must be 32 bytes.”- Parameters:
mac- value ofmacproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
macKey
public FileEncryptionInfo.Builder macKey(byte[] macKey)
“The key used to compute the message authentication code of the concatenation of the IV and encrypted file content. Must be 32 bytes.”- Parameters:
macKey- value ofmacKeyproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
profileIdentifier
public FileEncryptionInfo.Builder profileIdentifier(String profileIdentifier)
“The profile identifier. Maps to the strategy used to encrypt the file. Currently , only ProfileVersion1 is supported.”- Parameters:
profileIdentifier- value ofprofileIdentifierproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
build
public FileEncryptionInfo build()
-
-