public final class JwkUtils extends Object
public static String getThumbprint(JsonWebKey key)
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 void jwkKeyToJson(JsonWebKey jwkKey, OutputStream os) throws IOException
IOException
public static String jwkSetToJson(JsonWebKeys jwkSet)
public static void jwkSetToJson(JsonWebKeys jwkSet, OutputStream os) throws IOException
IOException
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, JweEncryptionProvider jwe)
public static String encryptJwkSet(JsonWebKeys jwkSet, PublicKey key, KeyAlgorithm keyAlgo, ContentAlgorithm contentAlgo)
public static String signJwkSet(JsonWebKeys jwkSet, PrivateKey key, SignatureAlgorithm algo)
public static String encryptJwkSet(JsonWebKeys jwkSet, SecretKey key, KeyAlgorithm keyAlgo, ContentAlgorithm contentAlgo)
public static JsonWebKeys decryptJwkSet(String jsonJwkSet, char[] password)
public static JsonWebKeys decryptJwkSet(String jsonJwkSet, JweDecryptionProvider jwe)
public static JsonWebKeys decryptJwkSet(PrivateKey key, KeyAlgorithm keyAlgo, ContentAlgorithm ctAlgo, String jsonJwkSet)
public static JsonWebKeys verifyJwkSet(PublicKey key, SignatureAlgorithm keyAlgo, String jsonJwk)
public static JsonWebKeys decryptJwkSet(SecretKey key, KeyAlgorithm keyAlgo, ContentAlgorithm ctAlgo, String jsonJwkSet)
public static JsonWebKeys decryptJwkSet(InputStream is, char[] password) throws IOException
IOException
public static JsonWebKeys decryptJwkSet(InputStream is, JweDecryptionProvider jwe) throws IOException
IOException
public static String encryptJwkKey(JsonWebKey jwkKey, char[] password)
public static String encryptJwkKey(JsonWebKey jwkKey, JweEncryptionProvider jwe)
public static String encryptJwkKey(JsonWebKey jwkKey, PublicKey key, KeyAlgorithm keyAlgo, ContentAlgorithm contentAlgo)
public static String encryptJwkKey(JsonWebKey jwkKey, SecretKey key, KeyAlgorithm keyAlgo, ContentAlgorithm contentAlgo)
public static String signJwkKey(JsonWebKey jwkKey, PrivateKey key, SignatureAlgorithm algo)
public static JsonWebKey decryptJwkKey(String jsonJwkKey, char[] password)
public static JsonWebKey decryptJwkKey(PrivateKey key, KeyAlgorithm keyAlgo, ContentAlgorithm ctAlgo, String jsonJwk)
public static JsonWebKey verifyJwkKey(PublicKey key, SignatureAlgorithm keyAlgo, String jsonJwk)
public static JsonWebKey decryptJwkKey(SecretKey key, KeyAlgorithm keyAlgo, ContentAlgorithm ctAlgo, String jsonJwk)
public static JsonWebKey decryptJwkKey(String jsonJwkKey, JweDecryptionProvider jwe)
public static JsonWebKey decryptJwkKey(InputStream is, char[] password) throws IOException
IOException
public static JsonWebKey decryptJwkKey(InputStream is, JweDecryptionProvider jwe) throws IOException
IOException
public static JsonWebKeys loadPublicJwkSet(Message m, Properties props)
public static JsonWebKeys loadJwkSet(Message m, Properties props, PrivateKeyPasswordProvider cb)
public static JsonWebKeys loadJwkSet(Properties props, Bus bus, PrivateKeyPasswordProvider cb)
public static JsonWebKeys loadJwkSet(Properties props, Bus bus, JweDecryptionProvider jwe)
public static JsonWebKey loadJsonWebKey(Message m, Properties props, KeyOperation keyOper)
public static JsonWebKey loadJsonWebKey(Message m, Properties props, KeyOperation keyOper, String inHeaderKid)
public static List<JsonWebKey> loadJsonWebKeys(Message m, Properties props, KeyOperation keyOper)
public static List<JsonWebKey> loadJsonWebKeys(Message m, Properties props, KeyOperation keyOper, PrivateKeyPasswordProvider cb)
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 fromECPublicKey(ECPublicKey pk, String curve, String kid)
public static JsonWebKey fromECPrivateKey(ECPrivateKey pk, String curve)
public static JsonWebKey fromECPrivateKey(ECPrivateKey pk, String curve, String kid)
public static JsonWebKey fromRSAPublicKey(RSAPublicKey pk, String algo)
public static JsonWebKey fromRSAPublicKey(RSAPublicKey pk, String algo, String kid)
public static JsonWebKey fromPublicKey(PublicKey key, Properties props, String algoProp)
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 JsonWebKey fromRSAPrivateKey(RSAPrivateKey pk, String algo, String kid)
public static ECPublicKey toECPublicKey(JsonWebKey jwk)
public static ECPrivateKey toECPrivateKey(JsonWebKey jwk)
public static SecretKey toSecretKey(JsonWebKey jwk)
public static SecretKey toSecretKey(JsonWebKey jwk, KeyAlgorithm algorithm)
public static JsonWebKey fromSecretKey(SecretKey secretKey, String algo)
public static JsonWebKey fromSecretKey(SecretKey secretKey, String algo, String kid)
public static void includeCertChain(JsonWebKey jwk, JoseHeaders headers, String algo)
public static void includePublicKey(JsonWebKey jwk, JoseHeaders headers, String algo)
public static List<JsonWebKey> stripPrivateParameters(List<JsonWebKey> keys)
Apache CXF