public final class JwsUtils extends Object
public static String sign(PrivateKey key, SignatureAlgorithm algo, String content)
public static String sign(PrivateKey key, SignatureAlgorithm algo, String content, String ct)
public static String sign(String encodedKey, SignatureAlgorithm algo, String content)
public static String sign(byte[] key, SignatureAlgorithm algo, String content)
public static String sign(byte[] key, SignatureAlgorithm algo, String content, String ct)
public static String verify(PublicKey key, SignatureAlgorithm algo, String content)
public static String verify(String encodedKey, SignatureAlgorithm algo, String content)
public static String verify(byte[] key, SignatureAlgorithm algo, String content)
public static JwsSignatureProvider getSignatureProvider(JsonWebKey jwk)
public static JwsSignatureProvider getSignatureProvider(JsonWebKey jwk, SignatureAlgorithm defaultAlgorithm)
public static JwsSignatureProvider getPrivateKeySignatureProvider(PrivateKey key, SignatureAlgorithm algo)
public static JwsSignatureProvider getHmacSignatureProvider(String encodedKey, SignatureAlgorithm algo)
public static JwsSignatureProvider getHmacSignatureProvider(byte[] key, SignatureAlgorithm algo)
public static JwsSignatureVerifier getSignatureVerifier(JsonWebKey jwk)
public static JwsSignatureVerifier getSignatureVerifier(JsonWebKey jwk, SignatureAlgorithm defaultAlgorithm)
public static JwsSignatureVerifier getPublicKeySignatureVerifier(X509Certificate cert, SignatureAlgorithm algo)
public static JwsSignatureVerifier getPublicKeySignatureVerifier(PublicKey key, SignatureAlgorithm algo)
public static JwsSignatureVerifier getHmacSignatureVerifier(String encodedKey, SignatureAlgorithm algo)
public static JwsSignatureVerifier getHmacSignatureVerifier(byte[] key, SignatureAlgorithm algo)
public static Map<SignatureAlgorithm,List<JwsJsonSignatureEntry>> getJwsJsonSignatureMap(List<JwsJsonSignatureEntry> signatures)
public static JwsSignatureProvider loadSignatureProvider(boolean required)
public static JwsSignatureProvider loadSignatureProvider(JwsHeaders headers, boolean required)
public static Properties loadSignatureOutProperties(boolean required)
public static Properties loadSignatureInProperties(boolean required)
public static Properties loadSignatureProperties(String propertiesName, boolean required)
public static Properties loadSignatureProperties(String propertiesLoc, Bus bus)
public static JwsSignatureVerifier loadSignatureVerifier(boolean required)
public static JwsSignatureVerifier loadSignatureVerifier(String propertiesLoc, Bus bus)
public static JwsSignatureVerifier loadSignatureVerifier(JwsHeaders headers, boolean required)
public static boolean validateCriticalHeaders(JwsHeaders headers)
public static JwsSignatureProvider loadSignatureProvider(Properties props, JwsHeaders headers)
public static JwsSignatureProvider loadSignatureProvider(String propertiesLoc, Bus bus)
public static JwsSignatureProvider loadSignatureProvider(Message m, Properties props, JwsHeaders headers)
public static JwsSignatureVerifier loadSignatureVerifier(Properties props, JwsHeaders inHeaders)
public static JwsSignatureVerifier loadSignatureVerifier(Message m, Properties props, JwsHeaders inHeaders)
public static Properties loadJwsProperties(Message m, String propLoc)
public static SignatureAlgorithm getSignatureAlgorithm(Message m, Properties props, SignatureAlgorithm algo, SignatureAlgorithm defaultAlgo)
public static SignatureAlgorithm getSignatureAlgorithm(Properties props, SignatureAlgorithm defaultAlgo)
public static SignatureAlgorithm getSignatureAlgorithm(Message m, Properties props, SignatureAlgorithm defaultAlgo)
public static JwsCompactConsumer verify(JwsSignatureVerifier v, String content)
public static String sign(JwsSignatureProvider jwsSig, String content, String ct)
public static boolean isPayloadUnencoded(JwsHeaders jwsHeaders)
public static void checkSignatureKeySize(Key key)
@Deprecated public static JsonWebKeys loadPublicVerificationKeys(Message m, Properties props)
public static JsonWebKeys loadPublicVerificationKeys(Message m, Properties props, boolean stripPrivateParameters)
Apache CXF