Package org.apache.ws.secpolicy.model

Examples of org.apache.ws.secpolicy.model.AlgorithmSuite.serialize()


  public static void main(String[] args) {
    AlgorithmSuite suite = new AlgorithmSuite(11);
    try {
      XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(System.out);
      suite.setAlgorithmSuite(org.apache.ws.secpolicy.Constants.ALGO_SUITE_BASIC256);
      suite.serialize(writer);
      writer.flush();
      writer.close();
    } catch (WSSPolicyException e) {
      e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
    } catch (XMLStreamException e) {
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.