Class B2FileSseForRequest
- java.lang.Object
-
- com.backblaze.b2.client.structures.B2FileSseForRequest
-
public class B2FileSseForRequest extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static B2FileSseForRequest
createSseB2Aes256()
Creates and returns a B2FileSseForRequest for SSE-B2 with algorithm set to AES256.static B2FileSseForRequest
createSseCAes256(java.lang.String customerKey)
Creates and returns a B2FileSseForRequest for SSE-C with algorithm set to AES256 and encryption key as specified.static B2FileSseForRequest
createSseCAes256(java.lang.String customerKey, java.lang.String customerKeyMd5)
Creates and returns a B2FileSseForRequest for SSE-C with algorithm set to AES256 and key/MD5 as specified.boolean
equals(java.lang.Object o)
java.lang.String
getAlgorithm()
java.lang.String
getCustomerKey()
java.lang.String
getCustomerKeyMd5()
java.lang.String
getMode()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
createSseB2Aes256
public static B2FileSseForRequest createSseB2Aes256()
Creates and returns a B2FileSseForRequest for SSE-B2 with algorithm set to AES256.- Returns:
- B2FileSseForRequest with mode=SSE-B2 and algorithm=AES256
-
createSseCAes256
public static B2FileSseForRequest createSseCAes256(java.lang.String customerKey)
Creates and returns a B2FileSseForRequest for SSE-C with algorithm set to AES256 and encryption key as specified.- Parameters:
customerKey
- customer encryption key encoded in Base64- Returns:
- B2FileSseForRequest with mode=SSE-C and algorithm=AES256 and customer key and MD5 set according to input parameter.
-
createSseCAes256
public static B2FileSseForRequest createSseCAes256(java.lang.String customerKey, java.lang.String customerKeyMd5)
Creates and returns a B2FileSseForRequest for SSE-C with algorithm set to AES256 and key/MD5 as specified.- Parameters:
customerKey
- customer encryption key encoded in Base64customerKeyMd5
- customer encryption key MD5 digest encoded in Base64- Returns:
- B2FileSseForRequest with mode=SSE-C and algorithm=AES256 and customer key and MD5 set according to input parameters.
-
getMode
public java.lang.String getMode()
-
getAlgorithm
public java.lang.String getAlgorithm()
-
getCustomerKey
public java.lang.String getCustomerKey()
-
getCustomerKeyMd5
public java.lang.String getCustomerKeyMd5()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-