Class B2FileSseForRequest


  • public class B2FileSseForRequest
    extends java.lang.Object
    • 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 Base64
        customerKeyMd5 - 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object