public final class JweUtils extends Object
public static String encrypt(RSAPublicKey key, String keyAlgo, String contentAlgo, byte[] content)
public static String encrypt(RSAPublicKey key, String keyAlgo, String contentAlgo, byte[] content, String ct)
public static String encrypt(SecretKey key, String keyAlgo, String contentAlgo, byte[] content)
public static String encrypt(SecretKey key, String keyAlgo, String contentAlgo, byte[] content, String ct)
public static String encrypt(JsonWebKey key, String contentAlgo, byte[] content, String ct)
public static String encryptDirect(SecretKey key, String contentAlgo, byte[] content, String ct)
public static String encryptDirect(JsonWebKey key, byte[] content, String ct)
public static byte[] decrypt(PrivateKey key, String keyAlgo, String contentAlgo, String content)
public static byte[] decrypt(SecretKey key, String keyAlgo, String contentAlgo, String content)
public static byte[] decrypt(JsonWebKey key, String contentAlgo, String content)
public static byte[] decryptDirect(JsonWebKey key, String content)
public static KeyEncryptionProvider getKeyEncryptionProvider(JsonWebKey jwk)
public static KeyEncryptionProvider getKeyEncryptionProvider(JsonWebKey jwk, String defaultAlgorithm)
public static KeyEncryptionProvider getRSAKeyEncryptionProvider(RSAPublicKey key, String algo)
public static KeyEncryptionProvider getSecretKeyEncryptionAlgorithm(SecretKey key, String algo)
public static KeyDecryptionAlgorithm getKeyDecryptionAlgorithm(JsonWebKey jwk)
public static KeyDecryptionAlgorithm getKeyDecryptionAlgorithm(JsonWebKey jwk, String defaultAlgorithm)
public static KeyDecryptionAlgorithm getPrivateKeyDecryptionAlgorithm(PrivateKey key, String algo)
public static KeyDecryptionAlgorithm getSecretKeyDecryptionAlgorithm(SecretKey key, String algo)
public static ContentEncryptionProvider getContentEncryptionAlgorithm(JsonWebKey jwk)
public static ContentEncryptionProvider getContentEncryptionAlgorithm(JsonWebKey jwk, String defaultAlgorithm)
public static ContentEncryptionProvider getContentEncryptionAlgorithm(SecretKey key, String algorithm)
public static ContentEncryptionProvider getContentEncryptionAlgorithm(String algorithm)
public static ContentDecryptionAlgorithm getContentDecryptionAlgorithm(String algorithm)
public static SecretKey getContentDecryptionSecretKey(JsonWebKey jwk)
public static SecretKey getContentDecryptionSecretKey(JsonWebKey jwk, String defaultAlgorithm)
public static JweEncryption getDirectKeyJweEncryption(JsonWebKey key)
public static JweEncryption getDirectKeyJweEncryption(SecretKey key, String algorithm)
public static JweDecryption getDirectKeyJweDecryption(JsonWebKey key)
public static JweDecryption getDirectKeyJweDecryption(SecretKey key, String algorithm)
public static JweEncryptionProvider loadEncryptionProvider(boolean required)
public static JweEncryptionProvider loadEncryptionProvider(JweHeaders headers, boolean required)
public static JweDecryptionProvider loadDecryptionProvider(boolean required)
public static JweDecryptionProvider loadDecryptionProvider(JweHeaders inHeaders, boolean required)
public static JweEncryptionProvider createJweEncryptionProvider(RSAPublicKey key, String keyAlgo, String contentEncryptionAlgo, String compression)
public static JweEncryptionProvider createJweEncryptionProvider(RSAPublicKey key, JweHeaders headers)
public static JweEncryptionProvider createJweEncryptionProvider(SecretKey key, String keyAlgo, String contentEncryptionAlgo, String compression)
public static JweEncryptionProvider createJweEncryptionProvider(SecretKey key, JweHeaders headers)
public static JweEncryptionProvider createJweEncryptionProvider(JsonWebKey key, String contentEncryptionAlgo, String compression)
public static JweEncryptionProvider createJweEncryptionProvider(JsonWebKey key, JweHeaders headers)
public static JweEncryptionProvider createJweEncryptionProvider(KeyEncryptionProvider keyEncryptionProvider, String contentEncryptionAlgo, String compression)
public static JweEncryptionProvider createJweEncryptionProvider(KeyEncryptionProvider keyEncryptionProvider, JweHeaders headers)
public static JweDecryptionProvider createJweDecryptionProvider(PrivateKey key, String keyAlgo, String contentDecryptionAlgo)
public static JweDecryptionProvider createJweDecryptionProvider(SecretKey key, String keyAlgo, String contentDecryptionAlgo)
public static JweDecryptionProvider createJweDecryptionProvider(JsonWebKey key, String contentDecryptionAlgo)
public static JweDecryptionProvider createJweDecryptionProvider(KeyDecryptionAlgorithm keyDecryptionProvider, String contentDecryptionAlgo)
public static boolean validateCriticalHeaders(JoseHeaders headers)
public static byte[] getECDHKey(JsonWebKey privateKey, JsonWebKey peerPublicKey, byte[] partyUInfo, byte[] partyVInfo, String algoName, int algoKeyBitLen)
public static byte[] getECDHKey(ECPrivateKey privateKey, ECPublicKey peerPublicKey, byte[] partyUInfo, byte[] partyVInfo, String algoName, int algoKeyBitLen)
public static byte[] getAdditionalAuthenticationData(String headersJson, byte[] aad)
public static void validateJweCertificateChain(List<X509Certificate> certs)
Apache CXF