Share via


HashingAlgorithm Class

public final class HashingAlgorithm
extends ExpandableStringEnum<HashingAlgorithm>

The signing or hashing algorithm.

Field Summary

Modifier and Type Field and Description
static final HashingAlgorithm MD5

Static value MD5 for HashingAlgorithm.

static final HashingAlgorithm NONE

Static value None for HashingAlgorithm.

static final HashingAlgorithm NOT_SPECIFIED

Static value NotSpecified for HashingAlgorithm.

static final HashingAlgorithm SHA1

Static value SHA1 for HashingAlgorithm.

static final HashingAlgorithm SHA2256

Static value SHA2256 for HashingAlgorithm.

static final HashingAlgorithm SHA2384

Static value SHA2384 for HashingAlgorithm.

static final HashingAlgorithm SHA2512

Static value SHA2512 for HashingAlgorithm.

Constructor Summary

Constructor Description
HashingAlgorithm()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of HashingAlgorithm value.

Method Summary

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

Creates or finds a HashingAlgorithm from its string representation.

static Collection<HashingAlgorithm> values()

Gets known HashingAlgorithm values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

MD5

public static final HashingAlgorithm MD5

Static value MD5 for HashingAlgorithm.

NONE

public static final HashingAlgorithm NONE

Static value None for HashingAlgorithm.

NOT_SPECIFIED

public static final HashingAlgorithm NOT_SPECIFIED

Static value NotSpecified for HashingAlgorithm.

SHA1

public static final HashingAlgorithm SHA1

Static value SHA1 for HashingAlgorithm.

SHA2256

public static final HashingAlgorithm SHA2256

Static value SHA2256 for HashingAlgorithm.

SHA2384

public static final HashingAlgorithm SHA2384

Static value SHA2384 for HashingAlgorithm.

SHA2512

public static final HashingAlgorithm SHA2512

Static value SHA2512 for HashingAlgorithm.

Constructor Details

HashingAlgorithm

@Deprecated
public HashingAlgorithm()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of HashingAlgorithm value.

Method Details

fromString

public static HashingAlgorithm fromString(String name)

Creates or finds a HashingAlgorithm from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding HashingAlgorithm.

values

public static Collection<HashingAlgorithm> values()

Gets known HashingAlgorithm values.

Returns:

known HashingAlgorithm values.

Applies to