001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common Development
008: * and Distribution License("CDDL") (collectively, the "License"). You
009: * may not use this file except in compliance with the License. You can obtain
010: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
011: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
012: * language governing permissions and limitations under the License.
013: *
014: * When distributing the software, include this License Header Notice in each
015: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
016: * Sun designates this particular file as subject to the "Classpath" exception
017: * as provided by Sun in the GPL Version 2 section of the License file that
018: * accompanied this code. If applicable, add the following below the License
019: * Header, with the fields enclosed by brackets [] replaced by your own
020: * identifying information: "Portions Copyrighted [year]
021: * [name of copyright owner]"
022: *
023: * Contributor(s):
024: *
025: * If you wish your version of this file to be governed by only the CDDL or
026: * only the GPL Version 2, indicate your decision by adding "[Contributor]
027: * elects to include this software in this distribution under the [CDDL or GPL
028: * Version 2] license." If you don't indicate a single choice of license, a
029: * recipient has the option to distribute your version of this file under
030: * either the CDDL, the GPL Version 2 or to extend the choice of license to
031: * its licensees as provided above. However, if you add GPL Version 2 code
032: * and therefore, elected the GPL Version 2 license, then the option applies
033: * only if the new code is made subject to such option by the copyright
034: * holder.
035: */
036:
037: package com.sun.xml.ws.security.policy;
038:
039: import java.util.Set;
040:
041: /**
042: * Represents the AlgorithmSuite assertion.
043: * <p>
044: * Syntax :
045: *
046: * <pre><xmp>
047: * <sp:AlgorithmSuite ... >
048: * <wsp:Policy>
049: * (
050: * <sp:Basic256 ... /> |
051: * <sp:Basic192 ... /> |
052: * <sp:Basic128 ... /> |
053: * <sp:TripleDes ... /> |
054: * <sp:Basic256Rsa15 ... /> |
055: * <sp:Basic192Rsa15 ... /> |
056: * <sp:Basic128Rsa15 ... /> |
057: * <sp:TripleDesRsa15 ... /> |
058: * <sp:Basic256Sha256 ... /> |
059: * <sp:Basic192Sha256 ... /> |
060: * <sp:Basic128Sha256 ... /> |
061: * <sp:TripleDesSha256 ... /> |
062: * <sp:Basic256Sha256Rsa15 ... /> |
063: * <sp:Basic192Sha256Rsa15 ... /> |
064: * <sp:Basic128Sha256Rsa15 ... /> |
065: * <sp:TripleDesSha256Rsa15 ... /> |
066: *
067: * ...)
068: * <sp:InclusiveC14N ... /> ?
069: * <sp:SOAPNormalization10 ... /> ?
070: * <sp:STRTransform10 ... /> ?
071: * <sp:XPath10 ... /> ?
072: * <sp:XPathFilter20 ... /> ?
073: * ...
074: * </wsp:Policy>
075: * ...
076: * </sp:AlgorithmSuite>
077: *</xmp></pre>
078: *
079: * @author K.Venugopal@sun.com
080: */
081: public interface AlgorithmSuite {
082:
083: public static final String INCLUSIVE14N = "InclusiveC14N";
084: public static final String SOAP_NORMALIZATION10 = "SOAPNormalization10";
085: public static final String STR_TRANSFORM10 = "STRTransform10";
086: public static final String XPATH10 = "XPath10";
087: public static final String XPATH_FILTER20 = "XPathFilter20";
088: public static int MAX_SKL = 256;
089: public static int MAX_AKL = 4096;
090: public static int MIN_AKL = 1024;
091:
092: /**
093: * returns the Algorithm suite to be used.
094: * @return {@link AlgorithmSuiteValue}
095: */
096: public AlgorithmSuiteValue getType();
097:
098: /**
099: * Property set containing INCLUSIVE14N,SOAP_NORMALIZATION10,STR_TRANSFORM10,XPATH10,XPATH_FILTER20
100: * @return list identifying the properties
101: */
102: public Set getAdditionalProps();
103:
104: /**
105: * Gets the Digest algorithm identified by this AlgorithmSuite.
106: * @return {@java.lang.String}
107: */
108: public String getDigestAlgorithm();
109:
110: /**
111: * Gets the Encryption algorithm
112: * @return
113: */
114: public String getEncryptionAlgorithm();
115:
116: /**
117: * Gets the Symmetric key signature algorithm
118: * @return
119: */
120: public String getSymmetricKeySignatureAlgorithm();
121:
122: /**
123: * Gets the Asymmetric key signature algorithm
124: * @return
125: */
126: public String getAsymmetricKeySignatureAlgorithm();
127:
128: /**
129: * Gets the Symmetric Key algorithm
130: * @return
131: */
132: public String getSymmetricKeyAlgorithm();
133:
134: /**
135: * Get the Assymetric key algorithm
136: * @return
137: */
138: public String getAsymmetricKeyAlgorithm();
139:
140: /**
141: * Gets the Signature key derivation algorithm
142: * @return
143: */
144: public String getSignatureKDAlogrithm();
145:
146: /**
147: * Gets the Encryprion key derivation algorithm
148: * @return
149: */
150: public String getEncryptionKDAlogrithm();
151:
152: /**
153: * Gets minimum key length for symmetric key algorithm.
154: * @return
155: */
156: public int getMinSKLAlgorithm();
157:
158: /*
159: * Gets the computed key algorithm
160: */
161: public String getComputedKeyAlgorithm();
162:
163: /*
164: *Gets the Maximum symmetric key length
165: */
166: public int getMaxSymmetricKeyLength();
167:
168: /*
169: *Gets the minimum Asymmetric key length
170: */
171: public int getMinAsymmetricKeyLength();
172:
173: /*
174: *Gets the maximum Asymmetric key length
175: */
176: public int getMaxAsymmetricKeyLength();
177: }
|