JsonWebKey.setAlg(String alg) Method

Definition

Set the alg property: The "alg" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA "JSON Web Signature and Encryption Algorithms" registry established by [JWA] or be a value that contains a Collision- Resistant Name.

public JsonWebKey setAlg(String alg)

Parameters

alg
java.lang.String

the alg value to set.

Returns

the JsonWebKey object itself.

Applies to