Examples of RSAKeyPair


Examples of org.wso2.xkms2.RSAKeyPair

    private static final QName D = new QName(XKMS2Constants.XKMS2_NS, "D");

    public static final RSAKeyPairTypeBuilder INSTANCE = new RSAKeyPairTypeBuilder();

    public XKMSElement buildElement(OMElement element) throws XKMSException {
        RSAKeyPair rsaKeyPair = new RSAKeyPair();
        OMElement child;
       
        child = element.getFirstChildWithName(MODULUS);
        rsaKeyPair.setModulus(decodeText(child));
       
        child = element.getFirstChildWithName(EXPONENT);
        rsaKeyPair.setExponent(decodeText(child));
       
        child = element.getFirstChildWithName(P);
        rsaKeyPair.setP(decodeText(child));
       
        child = element.getFirstChildWithName(Q);
        rsaKeyPair.setQ(decodeText(child));
       
        child = element.getFirstChildWithName(DP);
        rsaKeyPair.setDP(decodeText(child));
       
        child = element.getFirstChildWithName(DQ);
        rsaKeyPair.setDQ(decodeText(child));
       
        child =element.getFirstChildWithName(INVERSE_Q);
        rsaKeyPair.setInverseQ(decodeText(child));
       
        child = element.getFirstChildWithName(D);
        rsaKeyPair.setD(decodeText(child));
       
        return rsaKeyPair;
    }
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.