Package | Description |
---|---|
org.eclipse.microprofile.jwt.tck.util |
Modifier and Type | Method and Description |
---|---|
static KeyManagementAlgorithm |
KeyManagementAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyManagementAlgorithm[] |
KeyManagementAlgorithm.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.encryptClaims(PublicKey pk,
KeyManagementAlgorithm keyAlgorithm,
String kid,
String jsonResName,
Set<TokenUtils.InvalidClaims> invalidClaims,
Map<String,Long> timeClaims)
Utility method to generate a JWT string from a JSON resource file that is encrypted by the public key, possibly
with invalid fields.
|
static String |
TokenUtils.signEncryptClaims(PrivateKey signingKey,
String signingKid,
PublicKey encryptionKey,
KeyManagementAlgorithm keyAlgorithm,
String encryptionKid,
String jsonResName,
boolean setContentType)
Utility method to generate a JWT string from a JSON resource file by signing it first with the private key using
RS256 algorithm and encrypting next with the public key with an option to skip setting a content-type 'cty'
parameter.
|
Copyright © 2017 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.