public final class JwsUtils extends Object
public static String sign(PrivateKey key, String algo, String content)
public static String sign(PrivateKey key, String algo, String content, String ct)
public static JwsSignatureProvider getSignatureProvider(JsonWebKey jwk)
public static JwsSignatureProvider getSignatureProvider(JsonWebKey jwk, String defaultAlgorithm)
public static JwsSignatureProvider getPrivateKeySignatureProvider(PrivateKey key, String algo)
public static JwsSignatureProvider getHmacSignatureProvider(byte[] key, String algo)
public static JwsSignatureVerifier getSignatureVerifier(JsonWebKey jwk)
public static JwsSignatureVerifier getSignatureVerifier(JsonWebKey jwk, String defaultAlgorithm)
public static JwsSignatureVerifier getPublicKeySignatureVerifier(X509Certificate cert, String algo)
public static JwsSignatureVerifier getPublicKeySignatureVerifier(PublicKey key, String algo)
public static JwsSignatureVerifier getHmacSignatureVerifier(byte[] key, String algo)
public static javax.ws.rs.core.MultivaluedMap<String,JwsJsonSignatureEntry> getJwsJsonSignatureMap(List<JwsJsonSignatureEntry> signatures)
public static JwsSignatureProvider loadSignatureProvider(boolean required)
public static JwsSignatureProvider loadSignatureProvider(JoseHeaders headers, boolean required)
public static JwsSignatureVerifier loadSignatureVerifier(boolean required)
public static JwsSignatureVerifier loadSignatureVerifier(JoseHeaders headers, boolean required)
public static List<JwsSignatureProvider> loadSignatureProviders(String propLoc, Message m)
public static List<JwsSignatureVerifier> loadSignatureVerifiers(String propLoc, Message m)
public static boolean validateCriticalHeaders(JoseHeaders headers)
public static JwsCompactConsumer verify(JwsSignatureVerifier v, String content)
public static String sign(JwsSignatureProvider jwsSig, String content, String ct)
public static void validateJwsCertificateChain(List<X509Certificate> certs)
Apache CXF