Class Constants


  • public class Constants
    extends Object
    • Field Detail

      • GENERIC_HEADERS_LIST

        public static final List<String> GENERIC_HEADERS_LIST
      • GENERIC_HEADERS

        @Deprecated
        public static final ImmutableList<String> GENERIC_HEADERS
        Deprecated.
        Use GENERIC_HEADERS_LIST instead
        This field will be removed soon, when Guava is removed as a dependency.
      • BODY_HEADERS_LIST

        public static final List<String> BODY_HEADERS_LIST
      • BODY_HEADERS

        @Deprecated
        public static final ImmutableList<String> BODY_HEADERS
        Deprecated.
        use BODY_HEADERS_LIST instead
        This field will be removed soon, when Guava is removed as a dependency.
      • ALL_HEADERS_LIST

        public static final List<String> ALL_HEADERS_LIST
      • ALL_HEADERS

        @Deprecated
        public static final ImmutableList<String> ALL_HEADERS
        Deprecated.
        use ALL_HEADERS_LIST instead
        This field will be removed soon, when Guava is removed as a dependency.
      • REQUIRED_SIGNING_HEADERS_MAP

        public static final Map<String,​List<String>> REQUIRED_SIGNING_HEADERS_MAP
      • REQUIRED_SIGNING_HEADERS

        @Deprecated
        public static final ImmutableMap<String,​List<String>> REQUIRED_SIGNING_HEADERS
        Deprecated.
        use REQUIRED_SIGNING_HEADERS_MAP instead
        This field will be removed soon, when Guava is removed as a dependency.
      • REQUIRED_OBJECTSTORAGE_SIGNING_HEADERS_MAP

        @Deprecated
        public static final Map<String,​List<String>> REQUIRED_OBJECTSTORAGE_SIGNING_HEADERS_MAP
        Deprecated.
        use REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAP instead; Object Storage has migrated to using STANDARD, with EXCLUDE_BODY as a per-operation override. We therefore do not want to maintain a service-specific signing strategy.
        A signing strategy that signs headers and body, except for PUT, where bodies are not signed
      • REQUIRED_OBJECTSTORAGE_SIGNING_HEADERS

        @Deprecated
        public static final ImmutableMap<String,​List<String>> REQUIRED_OBJECTSTORAGE_SIGNING_HEADERS
        Deprecated.
        use REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAP instead
        This field will be removed soon, when Guava is removed as a dependency.
      • REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAP

        public static final Map<String,​List<String>> REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAP
        A signing strategy that signs headers only.
      • REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS

        @Deprecated
        public static final ImmutableMap<String,​List<String>> REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS
        Deprecated.
        use REQUIRED_EXCLUDE_BODY_SIGNING_HEADERS_MAP instead
        This field will be removed soon, when Guava is removed as a dependency.
      • OPTIONAL_HEADERS_NAMES

        public static final List<String> OPTIONAL_HEADERS_NAMES
        Headers included in the signature if they are set.
      • OPTIONAL_SIGNING_HEADERS_MAP

        public static final Map<String,​List<String>> OPTIONAL_SIGNING_HEADERS_MAP
      • OPTIONAL_SIGNING_HEADERS

        @Deprecated
        public static final ImmutableMap<String,​List<String>> OPTIONAL_SIGNING_HEADERS
        Deprecated.
        use OPTIONAL_SIGNING_HEADERS_MAP instead
        This field will be removed soon, when Guava is removed as a dependency.
    • Constructor Detail

      • Constants

        public Constants()
    • Method Detail

      • createHeadersToSignMap

        @Deprecated
        public static ImmutableMap<String,​List<String>> createHeadersToSignMap​(List<String> getHeaders,
                                                                                     List<String> headHeaders,
                                                                                     List<String> deleteHeaders,
                                                                                     List<String> putHeaders,
                                                                                     List<String> postHeaders,
                                                                                     List<String> patchHeaders)
        Deprecated.
        use createHeadersToSignForVerbMap instead
        Creates a map of headers to sign for each HTTP method.
        Parameters:
        getHeaders - headers for GET requests
        headHeaders - headers for HEAD requests
        deleteHeaders - headers for DELETE requests
        putHeaders - headers for PUT requests
        postHeaders - headers for POST requests
        patchHeaders - headers for PATCH requests
        Returns:
        A new immutable map of headers
      • createHeadersToSignForVerbMap

        public static Map<String,​List<String>> createHeadersToSignForVerbMap​(List<String> getHeaders,
                                                                                   List<String> headHeaders,
                                                                                   List<String> deleteHeaders,
                                                                                   List<String> putHeaders,
                                                                                   List<String> postHeaders,
                                                                                   List<String> patchHeaders)
        Creates a map of headers to sign for each HTTP method.
        Parameters:
        getHeaders - headers for GET requests
        headHeaders - headers for HEAD requests
        deleteHeaders - headers for DELETE requests
        putHeaders - headers for PUT requests
        postHeaders - headers for POST requests
        patchHeaders - headers for PATCH requests
        Returns:
        A new immutable map of headers