Package | Description |
---|---|
org.eclipse.microprofile.jwt.tck.util |
Modifier and Type | Method and Description |
---|---|
static SignatureAlgorithm |
SignatureAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SignatureAlgorithm[] |
SignatureAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static String |
TokenUtils.signClaims(String jsonResName,
SignatureAlgorithm algorithm)
Utility method to generate a JWT string from a JSON resource file that is signed by the privateKey.pem test
resource key using either RS256 or ES256 algorithm.
|
static String |
TokenUtils.signClaims(String jsonResName,
SignatureAlgorithm algorithm,
Set<TokenUtils.InvalidClaims> invalidClaims)
Utility method to generate a JWT string from a JSON resource file that is signed by the privateKey.pem test
resource key using either RS256 or ES256 algorithm, possibly with invalid fields.
|
static String |
TokenUtils.signClaims(String jsonResName,
SignatureAlgorithm algorithm,
Set<TokenUtils.InvalidClaims> invalidClaims,
Map<String,Long> timeClaims)
Utility method to generate a JWT string from a JSON resource file that is signed by either the privateKey.pem
test resource using RS256 algorithm or the ecPrivateKey.pem test resource using ES256 algorithm, possibly with
invalid fields and custom time claims.
|
static String |
TokenUtils.signEncryptClaims(String jsonResName,
SignatureAlgorithm signatureAlgorithm)
Utility method to generate a JWT string from a JSON resource file by signing it first by either the
privateKey.pem test resource using RS256 algorithm or the ecPrivateKey.pem test resource using ES256 algorithm
and encrypting it next with the publicKey.pem test resource.
|
Copyright © 2017 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.