use of org.apache.cxf.xkms.model.xkms.LocateRequestType in project cxf by apache.
the class XKMSServiceTest method testLocatePKIX.
@Test
public void testLocatePKIX() throws URISyntaxException, Exception {
LocateRequestType request = XKMS_OF.createLocateRequestType();
setGenericRequestParams(request);
QueryKeyBindingType queryKeyBindingType = XKMS_OF.createQueryKeyBindingType();
UseKeyWithType useKeyWithType = XKMS_OF.createUseKeyWithType();
useKeyWithType.setIdentifier("CN=Dave, OU=Apache, O=CXF, L=CGN, ST=NRW, C=DE");
useKeyWithType.setApplication(Applications.PKIX.getUri());
locateCertificate(request, queryKeyBindingType, useKeyWithType);
}
use of org.apache.cxf.xkms.model.xkms.LocateRequestType in project cxf by apache.
the class XKMSServiceTest method testLocateByEndpoint.
@Test
public void testLocateByEndpoint() throws URISyntaxException, Exception {
LocateRequestType request = XKMS_OF.createLocateRequestType();
setGenericRequestParams(request);
QueryKeyBindingType queryKeyBindingType = XKMS_OF.createQueryKeyBindingType();
UseKeyWithType useKeyWithType = XKMS_OF.createUseKeyWithType();
useKeyWithType.setIdentifier("http://localhost:8080/services/TestService");
useKeyWithType.setApplication(Applications.SERVICE_ENDPOINT.getUri());
locateCertificate(request, queryKeyBindingType, useKeyWithType);
}
Aggregations