Examples of ProtocolExchange


Examples of org.wso2.xkms2.core.ProtocolExchange

    public static List elementHelper(KeyInfo keyInfo, UseKeyWith[] useKeyWiths,
                                     RespondWith[] respondWiths,
                                     KeyUsage[] keyUsages,
                                     ServiceClient serviceClient,
                                     KISSRequest request) throws XKMSException {
        ProtocolExchange protocolExchange = new ProtocolExchange();

        try {
            populateRequest(serviceClient.getOptions().getTo(),
                            respondWiths,
                            keyUsages, keyInfo,
                            useKeyWiths,
                            request);

            OMFactory fac = DOOMAbstractFactory.getOMFactory();
            OMElement omElement = request.serialize(fac);
            omElement = XKMSUtil.getOMElement(omElement);
            MessageContext inMsgCtx = sendReceive(omElement, serviceClient);
            XKMSElement xkmsElement = protocolExchange.exchangeClient(inMsgCtx);
            LocateResult locateResult = (LocateResult) xkmsElement;

            return locateResult.getUnverifiedKeyBindingList();
        } catch (AxisFault e) {
            e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.