public final class JwkUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JWK_KEY_STORE_TYPE |
static String |
RSSEC_KEY_STORE_JWKKEY |
static String |
RSSEC_KEY_STORE_JWKSET |
public static final String JWK_KEY_STORE_TYPE
public static final String RSSEC_KEY_STORE_JWKSET
public static final String RSSEC_KEY_STORE_JWKKEY
public static JsonWebKey readJwkKey(URI uri) throws IOException
IOException
public static JsonWebKeys readJwkSet(URI uri) throws IOException
IOException
public static JsonWebKey readJwkKey(InputStream is) throws IOException
IOException
public static JsonWebKeys readJwkSet(InputStream is) throws IOException
IOException
public static JsonWebKey readJwkKey(String jwkJson)
public static JsonWebKeys readJwkSet(String jwksJson)
public static String jwkKeyToJson(JsonWebKey jwkKey)
public static String jwkSetToJson(JsonWebKeys jwkSet)
public static String encodeJwkKey(JsonWebKey jwkKey)
public static String encodeJwkSet(JsonWebKeys jwkSet)
public static JsonWebKey decodeJwkKey(String jwkJson)
public static JsonWebKeys decodeJwkSet(String jwksJson)
public static String encryptJwkSet(JsonWebKeys jwkSet, char[] password)
public static String encryptJwkSet(JsonWebKeys jwkSet, char[] password, JwkReaderWriter writer)
public static String encryptJwkSet(JsonWebKeys jwkSet, JweEncryptionProvider jwe, JwkReaderWriter writer)
public static String encryptJwkSet(JsonWebKeys jwkSet, RSAPublicKey key, String keyAlgo, String contentAlgo)
public static String signJwkSet(JsonWebKeys jwkSet, RSAPrivateKey key, String algo)
public static String encryptJwkSet(JsonWebKeys jwkSet, SecretKey key, String keyAlgo, String contentAlgo)
public static JsonWebKeys decryptJwkSet(String jsonJwkSet, char[] password)
public static JsonWebKeys decryptJwkSet(String jsonJwkSet, char[] password, JwkReaderWriter reader)
public static JsonWebKeys decryptJwkSet(String jsonJwkSet, JweDecryptionProvider jwe, JwkReaderWriter reader)
public static JsonWebKeys decryptJwkSet(RSAPrivateKey key, String keyAlgo, String ctAlgo, String jsonJwkSet)
public static JsonWebKeys verifyJwkSet(RSAPublicKey key, String keyAlgo, String jsonJwk)
public static JsonWebKeys decryptJwkSet(SecretKey key, String keyAlgo, String ctAlgo, String jsonJwkSet)
public static JsonWebKeys decryptJwkSet(InputStream is, char[] password) throws IOException
IOException
public static JsonWebKeys decryptJwkSet(InputStream is, char[] password, JwkReaderWriter reader) throws IOException
IOException
public static JsonWebKeys decryptJwkSet(InputStream is, JweDecryptionProvider jwe, JwkReaderWriter reader) throws IOException
IOException
public static String encryptJwkKey(JsonWebKey jwk, char[] password)
public static String encryptJwkKey(JsonWebKey jwkKey, char[] password, JwkReaderWriter writer)
public static String encryptJwkKey(JsonWebKey jwkKey, JweEncryptionProvider jwe, JwkReaderWriter writer)
public static String encryptJwkKey(JsonWebKey jwkKey, RSAPublicKey key, String keyAlgo, String contentAlgo)
public static String encryptJwkKey(JsonWebKey jwkKey, SecretKey key, String keyAlgo, String contentAlgo)
public static String signJwkKey(JsonWebKey jwkKey, RSAPrivateKey key, String algo)
public static JsonWebKey decryptJwkKey(String jsonJwkKey, char[] password)
public static JsonWebKey decryptJwkKey(String jsonJwkKey, char[] password, JwkReaderWriter reader)
public static JsonWebKey decryptJwkKey(RSAPrivateKey key, String keyAlgo, String ctAlgo, String jsonJwk)
public static JsonWebKey verifyJwkKey(RSAPublicKey key, String keyAlgo, String jsonJwk)
public static JsonWebKey decryptJwkKey(SecretKey key, String keyAlgo, String ctAlgo, String jsonJwk)
public static JsonWebKey decryptJwkKey(String jsonJwkKey, JweDecryptionProvider jwe, JwkReaderWriter reader)
public static JsonWebKey decryptJwkKey(InputStream is, char[] password) throws IOException
IOException
public static JsonWebKey decryptJwkKey(InputStream is, char[] password, JwkReaderWriter reader) throws IOException
IOException
public static JsonWebKey decryptJwkKey(InputStream is, JweDecryptionProvider jwe, JwkReaderWriter reader) throws IOException
IOException
public static JsonWebKeys loadJwkSet(Message m, Properties props, PrivateKeyPasswordProvider cb)
public static JsonWebKeys loadJwkSet(Message m, Properties props, PrivateKeyPasswordProvider cb, JwkReaderWriter reader)
public static JsonWebKeys loadJwkSet(Properties props, Bus bus, PrivateKeyPasswordProvider cb)
public static JsonWebKeys loadJwkSet(Properties props, Bus bus, PrivateKeyPasswordProvider cb, JwkReaderWriter reader)
public static JsonWebKeys loadJwkSet(Properties props, Bus bus, JweDecryptionProvider jwe, JwkReaderWriter reader)
public static JsonWebKey loadJsonWebKey(Message m, Properties props, String keyOper)
public static JsonWebKey loadJsonWebKey(Message m, Properties props, String keyOper, JwkReaderWriter reader)
public static List<JsonWebKey> loadJsonWebKeys(Message m, Properties props, String keyOper)
public static List<JsonWebKey> loadJsonWebKeys(Message m, Properties props, String keyOper, JwkReaderWriter reader)
public static RSAPublicKey toRSAPublicKey(JsonWebKey jwk)
public static RSAPublicKey toRSAPublicKey(JsonWebKey jwk, boolean checkX509)
public static List<X509Certificate> toX509CertificateChain(JsonWebKey jwk)
public static JsonWebKey fromECPublicKey(ECPublicKey pk, String curve)
public static JsonWebKey fromECPrivateKey(ECPrivateKey pk, String curve)
public static JsonWebKey fromRSAPublicKey(RSAPublicKey pk, String algo)
public static JsonWebKey fromX509CertificateChain(List<X509Certificate> chain, String algo)
public static RSAPrivateKey toRSAPrivateKey(JsonWebKey jwk)
public static JsonWebKey fromRSAPrivateKey(RSAPrivateKey pk, String algo)
public static ECPublicKey toECPublicKey(JsonWebKey jwk)
public static ECPrivateKey toECPrivateKey(JsonWebKey jwk)
public static SecretKey toSecretKey(JsonWebKey jwk)
public static JsonWebKey fromSecretKey(SecretKey secretKey, String algo)
public static void setPublicKeyInfo(JsonWebKey jwk, JoseHeaders headers, String algo)
Apache CXF