use of org.apache.cxf.systest.jaxrs.security.jose.BookStore in project cxf by apache.
the class JAXRSJwsMultipartTest method testJwsJwkBookHMacMultipartModifiedBufferPayload.
@Test(expected = BadRequestException.class)
public void testJwsJwkBookHMacMultipartModifiedBufferPayload() throws Exception {
String address = "https://localhost:" + PORT + "/jwsjwkhmacModifiedBufferPayload";
BookStore bs = createJwsBookStoreHMac(address, true, false);
bs.echoBookMultipartModified(new Book("book", 123L));
}
use of org.apache.cxf.systest.jaxrs.security.jose.BookStore in project cxf by apache.
the class JAXRSJwsMultipartTest method testJwsJwkBookRSAMultipart.
@Test
public void testJwsJwkBookRSAMultipart() throws Exception {
String address = "https://localhost:" + PORT + "/jwsjwkrsa";
BookStore bs = createJwsBookStoreRSA(address);
Book book = bs.echoBookMultipart(new Book("book", 123L));
assertEquals("book", book.getName());
assertEquals(123L, book.getId());
}
Aggregations