org.apache.cxf.rs.security.jose.jwk
Class JwkUtils
java.lang.Object
org.apache.cxf.rs.security.jose.jwk.JwkUtils
public final class JwkUtils
- extends Object
|
Method Summary |
static JsonWebKey |
decryptJwkKey(InputStream is,
char[] password)
|
static JsonWebKey |
decryptJwkKey(InputStream is,
char[] password,
JwkReaderWriter reader)
|
static JsonWebKey |
decryptJwkKey(InputStream is,
JweDecryptionProvider jwe,
JwkReaderWriter reader)
|
static JsonWebKey |
decryptJwkKey(String jsonJwkKey,
char[] password)
|
static JsonWebKey |
decryptJwkKey(String jsonJwkKey,
char[] password,
JwkReaderWriter reader)
|
static JsonWebKey |
decryptJwkKey(String jsonJwkKey,
JweDecryptionProvider jwe,
JwkReaderWriter reader)
|
static JsonWebKeys |
decryptJwkSet(InputStream is,
char[] password)
|
static JsonWebKeys |
decryptJwkSet(InputStream is,
char[] password,
JwkReaderWriter reader)
|
static JsonWebKeys |
decryptJwkSet(InputStream is,
JweDecryptionProvider jwe,
JwkReaderWriter reader)
|
static JsonWebKeys |
decryptJwkSet(String jsonJwkSet,
char[] password)
|
static JsonWebKeys |
decryptJwkSet(String jsonJwkSet,
char[] password,
JwkReaderWriter reader)
|
static JsonWebKeys |
decryptJwkSet(String jsonJwkSet,
JweDecryptionProvider jwe,
JwkReaderWriter reader)
|
static String |
encryptJwkKey(JsonWebKey jwk,
char[] password)
|
static String |
encryptJwkKey(JsonWebKey jwkKey,
char[] password,
JwkReaderWriter writer)
|
static String |
encryptJwkKey(JsonWebKey jwkKey,
JweEncryptionProvider jwe,
JwkReaderWriter writer)
|
static String |
encryptJwkSet(JsonWebKeys jwkSet,
char[] password)
|
static String |
encryptJwkSet(JsonWebKeys jwkSet,
char[] password,
JwkReaderWriter writer)
|
static String |
encryptJwkSet(JsonWebKeys jwkSet,
JweEncryptionProvider jwe,
JwkReaderWriter writer)
|
static String |
jwkKeyToJson(JsonWebKey jwkKey)
|
static String |
jwkSetToJson(JsonWebKeys jwkSet)
|
static JsonWebKey |
loadJsonWebKey(org.apache.cxf.message.Message m,
Properties props,
String keyOper)
|
static JsonWebKey |
loadJsonWebKey(org.apache.cxf.message.Message m,
Properties props,
String keyOper,
JwkReaderWriter reader)
|
static JsonWebKeys |
loadJwkSet(org.apache.cxf.message.Message m,
Properties props,
PrivateKeyPasswordProvider cb)
|
static JsonWebKeys |
loadJwkSet(org.apache.cxf.message.Message m,
Properties props,
PrivateKeyPasswordProvider cb,
JwkReaderWriter reader)
|
static JsonWebKeys |
loadJwkSet(Properties props,
org.apache.cxf.Bus bus,
JweDecryptionProvider jwe,
JwkReaderWriter reader)
|
static JsonWebKeys |
loadJwkSet(Properties props,
org.apache.cxf.Bus bus,
PrivateKeyPasswordProvider cb)
|
static JsonWebKeys |
loadJwkSet(Properties props,
org.apache.cxf.Bus bus,
PrivateKeyPasswordProvider cb,
JwkReaderWriter reader)
|
static JsonWebKey |
readJwkKey(InputStream is)
|
static JsonWebKey |
readJwkKey(String jwkJson)
|
static JsonWebKeys |
readJwkSet(InputStream is)
|
static JsonWebKeys |
readJwkSet(String jwksJson)
|
static ECPrivateKey |
toECPrivateKey(JsonWebKey jwk)
|
static ECPublicKey |
toECPublicKey(JsonWebKey jwk)
|
static RSAPrivateKey |
toRSAPrivateKey(JsonWebKey jwk)
|
static RSAPublicKey |
toRSAPublicKey(JsonWebKey jwk)
|
static SecretKey |
toSecretKey(JsonWebKey jwk)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JWK_KEY_STORE_TYPE
public static final String JWK_KEY_STORE_TYPE
- See Also:
- Constant Field Values
RSSEC_KEY_STORE_JWKSET
public static final String RSSEC_KEY_STORE_JWKSET
- See Also:
- Constant Field Values
RSSEC_KEY_STORE_JWKKEY
public static final String RSSEC_KEY_STORE_JWKKEY
- See Also:
- Constant Field Values
readJwkKey
public static JsonWebKey readJwkKey(InputStream is)
throws IOException
- Throws:
IOException
readJwkSet
public static JsonWebKeys readJwkSet(InputStream is)
throws IOException
- Throws:
IOException
readJwkKey
public static JsonWebKey readJwkKey(String jwkJson)
readJwkSet
public static JsonWebKeys readJwkSet(String jwksJson)
jwkKeyToJson
public static String jwkKeyToJson(JsonWebKey jwkKey)
jwkSetToJson
public static String jwkSetToJson(JsonWebKeys jwkSet)
encryptJwkSet
public static String encryptJwkSet(JsonWebKeys jwkSet,
char[] password)
encryptJwkSet
public static String encryptJwkSet(JsonWebKeys jwkSet,
char[] password,
JwkReaderWriter writer)
encryptJwkSet
public static String encryptJwkSet(JsonWebKeys jwkSet,
JweEncryptionProvider jwe,
JwkReaderWriter writer)
decryptJwkSet
public static JsonWebKeys decryptJwkSet(String jsonJwkSet,
char[] password)
decryptJwkSet
public static JsonWebKeys decryptJwkSet(String jsonJwkSet,
char[] password,
JwkReaderWriter reader)
decryptJwkSet
public static JsonWebKeys decryptJwkSet(String jsonJwkSet,
JweDecryptionProvider jwe,
JwkReaderWriter reader)
decryptJwkSet
public static JsonWebKeys decryptJwkSet(InputStream is,
char[] password)
throws IOException
- Throws:
IOException
decryptJwkSet
public static JsonWebKeys decryptJwkSet(InputStream is,
char[] password,
JwkReaderWriter reader)
throws IOException
- Throws:
IOException
decryptJwkSet
public static JsonWebKeys decryptJwkSet(InputStream is,
JweDecryptionProvider jwe,
JwkReaderWriter reader)
throws IOException
- Throws:
IOException
encryptJwkKey
public static String encryptJwkKey(JsonWebKey jwk,
char[] password)
encryptJwkKey
public static String encryptJwkKey(JsonWebKey jwkKey,
char[] password,
JwkReaderWriter writer)
encryptJwkKey
public static String encryptJwkKey(JsonWebKey jwkKey,
JweEncryptionProvider jwe,
JwkReaderWriter writer)
decryptJwkKey
public static JsonWebKey decryptJwkKey(String jsonJwkKey,
char[] password)
decryptJwkKey
public static JsonWebKey decryptJwkKey(String jsonJwkKey,
char[] password,
JwkReaderWriter reader)
decryptJwkKey
public static JsonWebKey decryptJwkKey(String jsonJwkKey,
JweDecryptionProvider jwe,
JwkReaderWriter reader)
decryptJwkKey
public static JsonWebKey decryptJwkKey(InputStream is,
char[] password)
throws IOException
- Throws:
IOException
decryptJwkKey
public static JsonWebKey decryptJwkKey(InputStream is,
char[] password,
JwkReaderWriter reader)
throws IOException
- Throws:
IOException
decryptJwkKey
public static JsonWebKey decryptJwkKey(InputStream is,
JweDecryptionProvider jwe,
JwkReaderWriter reader)
throws IOException
- Throws:
IOException
loadJwkSet
public static JsonWebKeys loadJwkSet(org.apache.cxf.message.Message m,
Properties props,
PrivateKeyPasswordProvider cb)
loadJwkSet
public static JsonWebKeys loadJwkSet(org.apache.cxf.message.Message m,
Properties props,
PrivateKeyPasswordProvider cb,
JwkReaderWriter reader)
loadJwkSet
public static JsonWebKeys loadJwkSet(Properties props,
org.apache.cxf.Bus bus,
PrivateKeyPasswordProvider cb)
loadJwkSet
public static JsonWebKeys loadJwkSet(Properties props,
org.apache.cxf.Bus bus,
PrivateKeyPasswordProvider cb,
JwkReaderWriter reader)
loadJwkSet
public static JsonWebKeys loadJwkSet(Properties props,
org.apache.cxf.Bus bus,
JweDecryptionProvider jwe,
JwkReaderWriter reader)
loadJsonWebKey
public static JsonWebKey loadJsonWebKey(org.apache.cxf.message.Message m,
Properties props,
String keyOper)
loadJsonWebKey
public static JsonWebKey loadJsonWebKey(org.apache.cxf.message.Message m,
Properties props,
String keyOper,
JwkReaderWriter reader)
toRSAPublicKey
public static RSAPublicKey toRSAPublicKey(JsonWebKey jwk)
toRSAPrivateKey
public static RSAPrivateKey toRSAPrivateKey(JsonWebKey jwk)
toECPublicKey
public static ECPublicKey toECPublicKey(JsonWebKey jwk)
toECPrivateKey
public static ECPrivateKey toECPrivateKey(JsonWebKey jwk)
toSecretKey
public static SecretKey toSecretKey(JsonWebKey jwk)
Apache CXF