use of org.apache.cxf.systest.jaxrs.security.jose.BookStore in project cxf by apache.
the class JAXRSJweJsonTest method testJweJsonSingleRecipientAesGcmDirect.
@Test
public void testJweJsonSingleRecipientAesGcmDirect() throws Exception {
String address = "https://localhost:" + PORT + "/jwejsondirect";
BookStore bs = createBookStore(address, "org/apache/cxf/systest/jaxrs/security/jwe.direct.properties");
String text = bs.echoText("book");
assertEquals("book", text);
}
use of org.apache.cxf.systest.jaxrs.security.jose.BookStore in project cxf by apache.
the class JAXRSJweJwsTest method testJweJwkPlainTextRSA.
@Test
public void testJweJwkPlainTextRSA() throws Exception {
String address = "https://localhost:" + PORT + "/jwejwkrsa";
BookStore bs = createJweBookStore(address, null);
String text = bs.echoText("book");
assertEquals("book", text);
}
use of org.apache.cxf.systest.jaxrs.security.jose.BookStore in project cxf by apache.
the class JAXRSJweJwsTest method testJwsJwkPlainTextHMac.
@Test
public void testJwsJwkPlainTextHMac() throws Exception {
String address = "https://localhost:" + PORT + "/jwsjwkhmac";
BookStore bs = createJwsBookStore(address, null);
String text = bs.echoText("book");
assertEquals("book", text);
}
use of org.apache.cxf.systest.jaxrs.security.jose.BookStore in project cxf by apache.
the class JAXRSJweJwsTest method testJweRsaJwsRsa.
@Test
public void testJweRsaJwsRsa() throws Exception {
String address = "https://localhost:" + PORT + "/jwejwsrsa";
BookStore bs = createJweJwsBookStore(address, null, null);
String text = bs.echoText("book");
assertEquals("book", text);
}
use of org.apache.cxf.systest.jaxrs.security.jose.BookStore in project cxf by apache.
the class JAXRSJweJwsTest method testJweRsaJwsRsaCertInHeaders.
@Test
public void testJweRsaJwsRsaCertInHeaders() throws Exception {
String address = "https://localhost:" + PORT + "/jwejwsrsaCertInHeaders";
BookStore bs = createJweJwsBookStore(address, null, null);
WebClient.getConfig(bs).getRequestContext().put("rs.security.signature.include.cert", "true");
WebClient.getConfig(bs).getRequestContext().put("rs.security.encryption.include.cert", "true");
String text = bs.echoText("book");
assertEquals("book", text);
}
Aggregations