SignatureAlgorithm Class

public final class SignatureAlgorithm
extends ExpandableStringEnum<SignatureAlgorithm>

Defines values for SignatureAlgorithm.

Field Summary

Modifier and Type Field and Description
static final SignatureAlgorithm ES256

Static value ES256 for SignatureAlgorithm.

static final SignatureAlgorithm ES256K

Static value ES256K for SignatureAlgorithm.

static final SignatureAlgorithm ES384

Static value ES384 for SignatureAlgorithm.

static final SignatureAlgorithm ES512

Static value ES512 for SignatureAlgorithm.

static final SignatureAlgorithm PS256

Static value PS256 for SignatureAlgorithm.

static final SignatureAlgorithm PS384

Static value PS384 for SignatureAlgorithm.

static final SignatureAlgorithm PS512

Static value PS512 for SignatureAlgorithm.

static final SignatureAlgorithm RS256

Static value RS256 for SignatureAlgorithm.

static final SignatureAlgorithm RS384

Static value RS384 for SignatureAlgorithm.

static final SignatureAlgorithm RS512

Static value RS512 for SignatureAlgorithm.

Constructor Summary

Constructor Description
SignatureAlgorithm()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SignatureAlgorithm without a #toString() value.

Method Summary

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

Creates or finds a SignatureAlgorithm from its string representation.

static Collection<SignatureAlgorithm> values()

Gets the known SignatureAlgorithm values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ES256

public static final SignatureAlgorithm ES256

Static value ES256 for SignatureAlgorithm.

ES256K

public static final SignatureAlgorithm ES256K

Static value ES256K for SignatureAlgorithm.

ES384

public static final SignatureAlgorithm ES384

Static value ES384 for SignatureAlgorithm.

ES512

public static final SignatureAlgorithm ES512

Static value ES512 for SignatureAlgorithm.

PS256

public static final SignatureAlgorithm PS256

Static value PS256 for SignatureAlgorithm.

PS384

public static final SignatureAlgorithm PS384

Static value PS384 for SignatureAlgorithm.

PS512

public static final SignatureAlgorithm PS512

Static value PS512 for SignatureAlgorithm.

RS256

public static final SignatureAlgorithm RS256

Static value RS256 for SignatureAlgorithm.

RS384

public static final SignatureAlgorithm RS384

Static value RS384 for SignatureAlgorithm.

RS512

public static final SignatureAlgorithm RS512

Static value RS512 for SignatureAlgorithm.

Constructor Details

SignatureAlgorithm

@Deprecated
public SignatureAlgorithm()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SignatureAlgorithm without a #toString() value.

This constructor shouldn't be called as it will produce a SignatureAlgorithm which doesn't have a String enum value.

Method Details

fromString

public static SignatureAlgorithm fromString(String name)

Creates or finds a SignatureAlgorithm from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SignatureAlgorithm.

values

public static Collection values()

Gets the known SignatureAlgorithm values.

Returns:

known SignatureAlgorithm values.

Applies to