Algorithm Class

public final class Algorithm
extends ExpandableStringEnum<Algorithm>

Algorithm to use for URL signing.

Field Summary

Modifier and Type Field and Description
static final Algorithm SHA256

Static value SHA256 for Algorithm.

Constructor Summary

Constructor Description
Algorithm()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Algorithm value.

Method Summary

Modifier and Type Method and Description
static Algorithm fromString(String name)

Creates or finds a Algorithm from its string representation.

static Collection<Algorithm> values()

Gets known Algorithm values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

SHA256

public static final Algorithm SHA256

Static value SHA256 for Algorithm.

Constructor Details

Algorithm

@Deprecated
public Algorithm()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Algorithm value.

Method Details

fromString

public static Algorithm fromString(String name)

Creates or finds a Algorithm from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding Algorithm.

values

public static Collection<Algorithm> values()

Gets known Algorithm values.

Returns:

known Algorithm values.

Applies to