public class KeyConverter extends Object
| Constructor and Description |
|---|
KeyConverter() |
| Modifier and Type | Method and Description |
|---|---|
static com.nimbusds.jose.jwk.JWKSet |
exportPrivateKeys(KeyStore keyStore,
char[] keypass) |
static com.nimbusds.jose.JWSSigner |
findSigner(KeyAndJwk randomKey) |
static com.nimbusds.jose.JWSAlgorithm |
getJWSAlgo(KeyAndJwk randomKey) |
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)
public static com.nimbusds.jose.jwk.JWKSet exportPrivateKeys(KeyStore keyStore, char[] keypass)
public static com.nimbusds.jose.JWSAlgorithm getJWSAlgo(KeyAndJwk randomKey)
public static com.nimbusds.jose.JWSSigner findSigner(KeyAndJwk randomKey) throws com.nimbusds.jose.JOSEException
com.nimbusds.jose.JOSEExceptionCopyright © 2020. All rights reserved.