01: /*
02: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
03: *
04: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
05: *
06: * The contents of this file are subject to the terms of either the GNU
07: * General Public License Version 2 only ("GPL") or the Common Development
08: * and Distribution License("CDDL") (collectively, the "License"). You
09: * may not use this file except in compliance with the License. You can obtain
10: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
11: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
12: * language governing permissions and limitations under the License.
13: *
14: * When distributing the software, include this License Header Notice in each
15: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
16: * Sun designates this particular file as subject to the "Classpath" exception
17: * as provided by Sun in the GPL Version 2 section of the License file that
18: * accompanied this code. If applicable, add the following below the License
19: * Header, with the fields enclosed by brackets [] replaced by your own
20: * identifying information: "Portions Copyrighted [year]
21: * [name of copyright owner]"
22: *
23: * Contributor(s):
24: *
25: * If you wish your version of this file to be governed by only the CDDL or
26: * only the GPL Version 2, indicate your decision by adding "[Contributor]
27: * elects to include this software in this distribution under the [CDDL or GPL
28: * Version 2] license." If you don't indicate a single choice of license, a
29: * recipient has the option to distribute your version of this file under
30: * either the CDDL, the GPL Version 2 or to extend the choice of license to
31: * its licensees as provided above. However, if you add GPL Version 2 code
32: * and therefore, elected the GPL Version 2 license, then the option applies
33: * only if the new code is made subject to such option by the copyright
34: * holder.
35: */
36:
37: package com.sun.xml.ws.security.policy;
38:
39: /**
40: *
41: * @author K.Venugopal@sun.com
42: */
43: public interface Constants {
44: public static final String SECURITY_POLICY_2005_07 = "http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";
45: // public static final String BASIC256="Basic256";
46: // public static final String BASIC192="Basic192";
47: // public static final String BASIC128="Basic128";
48: // public static final String TRIPLEDES="TripleDes";
49: // public static final String BASIC256_RSA15="Basic256Rsa15";
50: // public static final String BASIC192_RSA15="Basic192Rsa15";
51: // public static final String BASIC128_RSA15="Basic128Rsa15";
52: // public static final String TRIPLEDES_RSA15="TripleDesRsa15";
53: // public static final String BASIC256_SHA256="Basic256Sha256";
54: // public static final String BASIC192_SHA256="Basic192Sha256";
55: // public static final String BASIC128_SHA256="Basic128Sha256";
56: // public static final String TRIPLEDES_SHA256="TripleDesSha256";
57: // public static final String BASIC256_SHA256_RSA15="Basic256Sha256Rsa15";
58: // public static final String BASIC192_SHA256_RSA15="Basic192Sha256Rsa15";
59: // public static final String BASIC128_SHA256_RSA15="Basic128Sha256Rsa15";
60: // public static final String TRIPLEDES_SHA256_RSA15="TripleDesSha256Rsa15";
61:
62: public static final String HMAC_SHA1 = "http://www.w3.org/2000/09/xmldsig#hmac-sha1";
63: public static final String RSA_SHA1 = "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
64: public static final String SHA1 = "http://www.w3.org/2000/09/xmldsig#sha1";
65: public static final String SHA256 = "http://www.w3.org/2001/04/xmlenc#sha256";
66: public static final String SHA512 = "http://www.w3.org/2001/04/xmlenc#sha512";
67: public static final String AES128 = "http://www.w3.org/2001/04/xmlenc#aes128-cbc";
68: public static final String AES192 = "http://www.w3.org/2001/04/xmlenc#aes192-cbc";
69: public static final String AES256 = "http://www.w3.org/2001/04/xmlenc#aes256-cbc";
70: public static final String TRIPLE_DES = "http://www.w3.org/2001/04/xmlenc#tripledes-cbc";
71: public static final String KW_AES128 = "http://www.w3.org/2001/04/xmlenc#kw-aes256";
72: public static final String KW_AES192 = "http://www.w3.org/2001/04/xmlenc#kw-aes192";
73: public static final String KW_AES256 = "http://www.w3.org/2001/04/xmlenc#kw-aes128";
74: public static final String KW_TRIPLE_DES = "http://www.w3.org/2001/04/xmlenc#kw-tripledes";
75: public static final String KW_RSA_OAEP = "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p";
76: public static final String KW_RSA15 = "http://www.w3.org/2001/04/xmlenc#rsa-1_5";
77: public static final String PSHA1 = "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1";
78: public static final String PSHA1_L128 = "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1";
79: public static final String PSHA1_L192 = "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1";
80: public static final String PSHA1_L256 = "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1";
81: public static final String XPATH = "http://www.w3.org/TR/1999/REC-xpath-19991116";
82: public static final String XPATH20 = "http://www.w3.org/2002/06/xmldsig-filter2";
83: public static final String C14N = "http://www.w3.org/2001/10/xml-c14n#";
84: public static final String EXC14N = "http://www.w3.org/2001/10/xml-exc-c14n#";
85: public static final String SNT = "http://www.w3.org/TR/soap12-n11n";
86: public static final String STRT10 = "http://docs.oasis-open.org/wss/2004/xx/oasis-2004xx-wss-soapmessage- security-1.0#STR-Transform";
87:
88: //TODO:: Remove this constants from here.-Abhijit.
89:
90: public final static String MUSTSUPPORT_REF_THUMBPRINT = "MustSupportRefThumbprint";
91: public final static String MUSTSUPPORT_REF_ENCRYPTED_KEY = "MustSupportRefEncryptedKey";
92: public final static String REQUIRED_SIGNATURE_CONFIRMATION = "RequireSignatureConfirmation";
93:
94: public static final String MUST_SUPPORT_CLIENT_CHALLENGE = "MustSupportClientChallenge";
95: public static final String MUST_SUPPORT_SERVER_CHALLENGE = "MustSupportServerChallenge";
96: public static final String REQUIRE_CLIENT_ENTROPY = "RequireClientEntropy";
97: public static final String REQUIRE_SERVER_ENTROPY = "RequireServerEntropy";
98: public static final String MUST_SUPPORT_ISSUED_TOKENS = "MustSupportIssuedTokens";
99: }
|