Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0"?>
 * $Id: encryptionPolicies_1_0.xsd 22 2009-05-18 17:20:44Z mitcje $
 * $URL: $
 * ====================================================================
 * Ikasan Enterprise Integration Platform
 * Copyright (c) 2003-2008 Mizuho International plc. and individual contributors as indicated
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * Lesser General Public License for more details.
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the 
 * Free Software Foundation Europe e.V. Talstrasse 110, 40217 Dusseldorf, Germany 
 * or see the FSF site:
 * ====================================================================
 * Purpose: XML Schema defining encryptionPolicies structure.
 * Author <a href="">Ikasan Development Team</a>
<xsd:schema xmlns:xsd="">
        <xsd:documentation>Server instance security definition policies.</xsd:documentation>

    <!-- root -->
    <xsd:element name="EncryptionPolicies" type="EncryptionPoliciesType"/>

    <!-- policy definition -->
    <xsd:complexType name="EncryptionPoliciesType">
            <xsd:element name="EncryptionPolicy" type="EncryptionPolicyType" minOccurs="1" maxOccurs="unbounded"/>
        <xsd:attribute name="version" type="xsd:string" use="required"/>

    <xsd:complexType name="EncryptionPolicyType">
        <!-- add supported algorithm here -->
            <xsd:element name="PBE" type="PBEType"/>
            <xsd:element name="Blowfish" type="BlowfishType"/>
        <xsd:attribute name="name" type="xsd:string" use="required"/>

    <xsd:complexType name="PBEType">
        <xsd:attribute name="pass" type="xsd:string" use="required"/>
        <xsd:attribute name="cipher" type="PBECipherType" use="required"/>
        <xsd:attribute name="iterationCount" type="xsd:string" use="required"/>
        <xsd:attribute name="salt" type="xsd:string" use="required"/>

    <xsd:simpleType name="PBECipherType">
        <xsd:restriction base="xsd:string">
            <xsd:enumeration value="PBEwithMD5andDES"/>

    <xsd:complexType name="BlowfishType">
        <xsd:attribute name="pass" type="xsd:string" use="required"/>
        <xsd:attribute name="cipher" type="BlowfishCipherType" use="required"/>

    <xsd:simpleType name="BlowfishCipherType">
        <xsd:restriction base="xsd:string">
            <xsd:enumeration value="blowey"/>

New to GrepCode? Check out our FAQ X