public class KeyConverter extends Object
KeyConverter to avoid hard dependencies to cryptoutils project| Constructor and Description |
|---|
KeyConverter() |
| Modifier and Type | Method and Description |
|---|---|
static Key |
toPrivateOrSecret(com.nimbusds.jose.jwk.JWK jwk)
Converts the specified of JSON Web Keys (JWK) it's standard Java
class representation.
|
static Key |
toPrivateOrSecret(com.nimbusds.jose.jwk.JWK jwk,
String alg)
Converts the specified of JSON Web Keys (JWK) it's standard Java
class representation.
|
static Key |
toPublic(com.nimbusds.jose.jwk.JWK jwk) |
public static Key toPrivateOrSecret(com.nimbusds.jose.jwk.JWK jwk)
RSA and
EC key pairs are converted to
PublicKey and PrivateKey
(if specified) objects. secret JWKs are
converted to SecretKey objects.jwk - jwkpublic static Key toPrivateOrSecret(com.nimbusds.jose.jwk.JWK jwk, String alg)
RSA and
EC key pairs are converted to
PublicKey and PrivateKey
(if specified) objects. secret JWKs are
converted to SecretKey objects.jwk - jwkpublic static Key toPublic(com.nimbusds.jose.jwk.JWK jwk)
Copyright © 2018. All rights reserved.