private void writeKeyValueType(KeyValueType type) throws ProcessingException { StaxUtil.writeStartElement(writer, WSTrustConstants.XMLDSig.DSIG_PREFIX, WSTrustConstants.XMLDSig.KEYVALUE, WSTrustConstants.DSIG_NS); StaxUtil.writeNameSpace(writer, WSTrustConstants.XMLDSig.DSIG_PREFIX, WSTrustConstants.DSIG_NS); if (type instanceof RSAKeyValueType) { RSAKeyValueType rsaKeyValue = (RSAKeyValueType) type; StaxWriterUtil.writeRSAKeyValueType(writer, rsaKeyValue); } else if (type instanceof DSAKeyValueType) { DSAKeyValueType dsaKeyValue = (DSAKeyValueType) type; StaxWriterUtil.writeDSAKeyValueType(writer, dsaKeyValue); } StaxUtil.writeEndElement(writer); }
private void writeKeyValueType(KeyValueType type) throws ProcessingException { StaxUtil.writeStartElement(writer, WSTrustConstants.XMLDSig.DSIG_PREFIX, WSTrustConstants.XMLDSig.KEYVALUE, WSTrustConstants.DSIG_NS); StaxUtil.writeNameSpace(writer, WSTrustConstants.XMLDSig.DSIG_PREFIX, WSTrustConstants.DSIG_NS); if (type instanceof RSAKeyValueType) { RSAKeyValueType rsaKeyValue = (RSAKeyValueType) type; StaxWriterUtil.writeRSAKeyValueType(writer, rsaKeyValue); } else if (type instanceof DSAKeyValueType) { DSAKeyValueType dsaKeyValue = (DSAKeyValueType) type; StaxWriterUtil.writeDSAKeyValueType(writer, dsaKeyValue); } StaxUtil.writeEndElement(writer); }
writeRSAKeyValueType(writer, (RSAKeyValueType) keyvalueType);
writeRSAKeyValueType(writer, (RSAKeyValueType) keyvalueType);