Examples of XKMSException


Examples of org.wso2.xkms2.XKMSException

        try {
            XMLSignature signature = new XMLSignature(sigElement, "");
            registerRequest.setProofOfPossesion(signature);

        } catch (XMLSignatureException e) {
            throw new XKMSException(e);
        } catch (XMLSecurityException e) {
            throw new XKMSException(e);
        }
    }
View Full Code Here

Examples of org.wso2.xkms2.XKMSException

    public XKMSElement buildElement(OMElement element) throws XKMSException {
        QName qName = element.getQName();
        if (!(qName.getLocalPart().equals("LocateRequest") &&
              qName.getNamespaceURI().equals(XKMS2Constants.XKMS2_NS))) {
            throw new XKMSException("LocateRequest is not the first element");

        }
        super.buildElement(element, locateRequest);
        return locateRequest;
    }
View Full Code Here

Examples of org.wso2.xkms2.XKMSException

        super.buildElement(element, recoverRequest);

        OMElement recoverKeyBindingElem = element
                .getFirstChildWithName(XKMS2Constants.Q_ELEM_RECOVER_KEY_BINDING);
        if (recoverKeyBindingElem == null) {
            throw new XKMSException("RecoverKeyBinding is not present");
        }

        recoverRequest
                .setRecoverKeyBinding((RecoverKeyBinding) RecoverKeyBindingBuilder.INSTANCE
                        .buildElement(recoverKeyBindingElem));
View Full Code Here

Examples of org.wso2.xkms2.XKMSException

        try {
            XMLSignature signature = new XMLSignature((Element) signElement, "");
            authentication.setKeyBindingAuthentication(signature);

        } catch (XMLSecurityException se) {
            throw new XKMSException(se);
        }
    }
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.