ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gi...@apache.org
Subject svn commit: r1172285 [5/48] - in /webservices/wss4j/branches/swssf: ./ cxf-integration/ cxf-integration/src/ cxf-integration/src/main/ cxf-integration/src/main/java/ cxf-integration/src/main/java/org/ cxf-integration/src/main/java/org/swssf/ cxf-integr...
Date Sun, 18 Sep 2011 13:51:36 GMT
Added: webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SP12Constants.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SP12Constants.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SP12Constants.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SP12Constants.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,802 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.swssf.policy.secpolicy;
+
+import javax.xml.namespace.QName;
+
+/**
+ * class lent from apache cxf
+ */
+public final class SP12Constants extends SPConstants {
+
+    public static final SP12Constants INSTANCE = new SP12Constants();
+
+    public final static String SP_NS = "http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702";
+
+    public final static String SP_PREFIX = "sp";
+
+    //all attributes are unqualified!!
+    public static final QName INCLUDE_TOKEN = new QName(SPConstants.ATTR_INCLUDE_TOKEN);
+
+    public final static String INCLUDE_NEVER = SP12Constants.SP_NS +
+            SPConstants.INCLUDE_TOKEN_NEVER_SUFFIX;
+
+    public final static String INCLUDE_ONCE = SP12Constants.SP_NS +
+            SPConstants.INCLUDE_TOKEN_ONCE_SUFFIX;
+
+    public final static String INCLUDE_ALWAYS_TO_RECIPIENT = SP12Constants.SP_NS
+            + SPConstants.INCLUDE_TOEKN_ALWAYS_TO_RECIPIENT_SUFFIX;
+
+    public final static String INCLUDE_ALWAYS_TO_INITIATOR = SP12Constants.SP_NS
+            + SPConstants.INCLUDE_TOEKN_ALWAYS_TO_INITIATOR_SUFFIX;
+
+    public final static String INCLUDE_ALWAYS = SP12Constants.SP_NS
+            + SPConstants.INCLUDE_TOEKN_ALWAYS_SUFFIX;
+
+    public static final QName TRUST_10 = new QName(SP12Constants.SP_NS, SPConstants.TRUST_10,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName TRUST_13 = new QName(SP12Constants.SP_NS, SPConstants.TRUST_13,
+            SP12Constants.SP_PREFIX);
+
+    public final static QName REQUIRE_CLIENT_CERTIFICATE = new QName(SP12Constants.SP_NS,
+            "RequireClientCertificate", SP12Constants.SP_PREFIX);
+
+    public final static QName HTTP_BASIC_AUTHENTICATION = new QName(SP12Constants.SP_NS,
+            "HttpBasicAuthentication", SP12Constants.SP_PREFIX);
+
+    public final static QName HTTP_DIGEST_AUTHENTICATION = new QName(SP12Constants.SP_NS,
+            "HttpDigestAuthentication", SP12Constants.SP_PREFIX);
+
+    // /////////////////////////////////////////////////////////////////////
+
+    public static final QName ATTR_XPATH_VERSION = new QName(SP_NS, SPConstants.XPATH_VERSION, SP12Constants.SP_PREFIX);
+
+    ////////////////////////////////////////////////////////////////////////
+
+
+    public static final QName TRANSPORT_BINDING = new QName(SP_NS,
+            SPConstants.TRANSPORT_BINDING, SP12Constants.SP_PREFIX);
+
+    public static final QName ALGORITHM_SUITE = new QName(SP_NS,
+            SPConstants.ALGO_SUITE, SP12Constants.SP_PREFIX);
+
+    public static final QName LAYOUT = new QName(SP_NS, SPConstants.LAYOUT, SP_PREFIX);
+
+
+    public static final QName STRICT = new QName(SP12Constants.SP_NS, SPConstants.LAYOUT_STRICT,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName LAX = new QName(SP12Constants.SP_NS, SPConstants.LAYOUT_LAX,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName LAXTSFIRST = new QName(SP12Constants.SP_NS,
+            SPConstants.LAYOUT_LAX_TIMESTAMP_FIRST, SP12Constants.SP_PREFIX);
+
+    public static final QName LAXTSLAST = new QName(SP12Constants.SP_NS,
+            SPConstants.LAYOUT_LAX_TIMESTAMP_LAST, SP12Constants.SP_PREFIX);
+
+    // ////////////////
+
+    public static final QName INCLUDE_TIMESTAMP = new QName(SP12Constants.SP_NS,
+            SPConstants.INCLUDE_TIMESTAMP, SP12Constants.SP_PREFIX);
+
+    public static final QName ENCRYPT_BEFORE_SIGNING = new QName(SP12Constants.SP_NS,
+            SPConstants.ENCRYPT_BEFORE_SIGNING, SP12Constants.SP_PREFIX);
+
+    public static final QName SIGN_BEFORE_ENCRYPTING = new QName(SP12Constants.SP_NS,
+            SPConstants.SIGN_BEFORE_ENCRYPTING, SP12Constants.SP_PREFIX);
+
+    public static final QName ONLY_SIGN_ENTIRE_HEADERS_AND_BODY = new QName(SP12Constants.SP_NS,
+            SPConstants.ONLY_SIGN_ENTIRE_HEADERS_AND_BODY, SP12Constants.SP_PREFIX);
+
+    public static final QName TRANSPORT_TOKEN = new QName(SP_NS,
+            SPConstants.TRANSPORT_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName HTTPS_TOKEN = new QName(SP12Constants.SP_NS,
+            SPConstants.HTTPS_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName SECURITY_CONTEXT_TOKEN = new QName(
+            SP12Constants.SP_NS, SPConstants.SECURITY_CONTEXT_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName SECURE_CONVERSATION_TOKEN = new QName(
+            SP12Constants.SP_NS, SPConstants.SECURE_CONVERSATION_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName SIGNATURE_TOKEN = new QName(SP12Constants.SP_NS,
+            SPConstants.SIGNATURE_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName SIGNED_PARTS = new QName(SP12Constants.SP_NS,
+            SPConstants.SIGNED_PARTS, SP12Constants.SP_PREFIX);
+
+    public static final QName ENCRYPTED_PARTS = new QName(SP12Constants.SP_NS,
+            SPConstants.ENCRYPTED_PARTS, SP12Constants.SP_PREFIX);
+
+    public static final QName SIGNED_ELEMENTS = new QName(SP12Constants.SP_NS,
+            SPConstants.SIGNED_ELEMENTS, SP12Constants.SP_PREFIX);
+
+    public static final QName ENCRYPTED_ELEMENTS = new QName(SP12Constants.SP_NS,
+            SPConstants.ENCRYPTED_ELEMENTS, SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRED_ELEMENTS = new QName(SP12Constants.SP_NS,
+            SPConstants.REQUIRED_ELEMENTS, SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRED_PARTS = new QName(SP12Constants.SP_NS,
+            SPConstants.REQUIRED_PARTS, SP12Constants.SP_PREFIX);
+
+    public static final QName CONTENT_ENCRYPTED_ELEMENTS = new QName(SP12Constants.SP_NS,
+            SPConstants.CONTENT_ENCRYPTED_ELEMENTS, SP12Constants.SP_PREFIX);
+
+    public static final QName USERNAME_TOKEN = new QName(SP12Constants.SP_NS,
+            SPConstants.USERNAME_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName SAML_TOKEN = new QName(SP12Constants.SP_NS,
+            SPConstants.SAML_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName KEYVALUE_TOKEN = new QName(SP12Constants.SP_NS,
+            SPConstants.KEYVALUE_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName WSS_USERNAME_TOKEN10 = new QName(SP12Constants.SP_NS,
+            SPConstants.USERNAME_TOKEN10, SP12Constants.SP_PREFIX);
+
+    public static final QName WSS_USERNAME_TOKEN11 = new QName(SP12Constants.SP_NS,
+            SPConstants.USERNAME_TOKEN11, SP12Constants.SP_PREFIX);
+
+    public static final QName ENCRYPTION_TOKEN = new QName(SP12Constants.SP_NS,
+            SPConstants.ENCRYPTION_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName X509_TOKEN = new QName(SP12Constants.SP_NS,
+            SPConstants.X509_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_V1_TOKEN_10 = new QName(SP12Constants.SP_NS,
+            SPConstants.WSS_X509_V1_TOKEN10, SP12Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_V3_TOKEN_10 = new QName(SP12Constants.SP_NS,
+            SPConstants.WSS_X509_V3_TOKEN10, SP12Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_PKCS7_TOKEN_10 = new QName(
+            SP12Constants.SP_NS, SPConstants.WSS_X509_PKCS7_TOKEN10, SP12Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_PKI_PATH_V1_TOKEN_10 = new QName(
+            SP12Constants.SP_NS, SPConstants.WSS_X509_PKI_PATH_V1_TOKEN10, SP12Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_V1_TOKEN_11 = new QName(SP12Constants.SP_NS,
+            SPConstants.WSS_X509_V1_TOKEN11, SP12Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_V3_TOKEN_11 = new QName(SP12Constants.SP_NS,
+            SPConstants.WSS_X509_V3_TOKEN11, SP12Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_PKCS7_TOKEN_11 = new QName(
+            SP12Constants.SP_NS, SPConstants.WSS_X509_PKCS7_TOKEN11, SP12Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_PKI_PATH_V1_TOKEN_11 = new QName(
+            SP12Constants.SP_NS, SPConstants.WSS_X509_PKI_PATH_V1_TOKEN11, SP12Constants.SP_PREFIX);
+
+    public static final QName ISSUED_TOKEN = new QName(SP12Constants.SP_NS,
+            SPConstants.ISSUED_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName SUPPORTING_TOKENS = new QName(SP12Constants.SP_NS,
+            SPConstants.SUPPORTING_TOKENS, SP12Constants.SP_PREFIX);
+
+    public static final QName SIGNED_SUPPORTING_TOKENS = new QName(
+            SP12Constants.SP_NS, SPConstants.SIGNED_SUPPORTING_TOKENS, SP12Constants.SP_PREFIX);
+
+    public static final QName ENDORSING_SUPPORTING_TOKENS = new QName(
+            SP12Constants.SP_NS, SPConstants.ENDORSING_SUPPORTING_TOKENS, SP12Constants.SP_PREFIX);
+
+    public static final QName SIGNED_ENDORSING_SUPPORTING_TOKENS = new QName(
+            SP12Constants.SP_NS, SPConstants.SIGNED_ENDORSING_SUPPORTING_TOKENS,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName ENCRYPTED_SUPPORTING_TOKENS = new QName(SP12Constants.SP_NS,
+            SPConstants.ENCRYPTED_SUPPORTING_TOKENS, SP12Constants.SP_PREFIX);
+
+    public static final QName SIGNED_ENCRYPTED_SUPPORTING_TOKENS = new QName(
+            SP12Constants.SP_NS, SPConstants.SIGNED_ENCRYPTED_SUPPORTING_TOKENS, SP12Constants.SP_PREFIX);
+
+    public static final QName ENDORSING_ENCRYPTED_SUPPORTING_TOKENS = new QName(
+            SP12Constants.SP_NS, SPConstants.ENDORSING_ENCRYPTED_SUPPORTING_TOKENS, SP12Constants.SP_PREFIX);
+
+    public static final QName SIGNED_ENDORSING_ENCRYPTED_SUPPORTING_TOKENS = new QName(
+            SP12Constants.SP_NS, SPConstants.SIGNED_ENDORSING_ENCRYPTED_SUPPORTING_TOKENS,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName PROTECTION_TOKEN = new QName(SP12Constants.SP_NS,
+            SPConstants.PROTECTION_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName ASYMMETRIC_BINDING = new QName(SP12Constants.SP_NS,
+            SPConstants.ASYMMETRIC_BINDING, SP12Constants.SP_PREFIX);
+
+    public static final QName SYMMETRIC_BINDING = new QName(SP12Constants.SP_NS,
+            SPConstants.SYMMETRIC_BINDING, SP12Constants.SP_PREFIX);
+
+    public static final QName INITIATOR_TOKEN = new QName(SP12Constants.SP_NS,
+            SPConstants.INITIATOR_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName RECIPIENT_TOKEN = new QName(SP12Constants.SP_NS,
+            SPConstants.RECIPIENT_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName ENCRYPT_SIGNATURE = new QName(SP12Constants.SP_NS,
+            SPConstants.ENCRYPT_SIGNATURE, SP12Constants.SP_PREFIX);
+
+    public static final QName PROTECT_TOKENS = new QName(SP12Constants.SP_NS,
+            SPConstants.PROTECT_TOKENS, SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_KEY_IDENTIFIRE_REFERENCE = new QName(
+            SP12Constants.SP_NS, SPConstants.REQUIRE_KEY_IDENTIFIRE_REFERENCE,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_ISSUER_SERIAL_REFERENCE = new QName(
+            SP12Constants.SP_NS, SPConstants.REQUIRE_ISSUER_SERIAL_REFERENCE,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_EMBEDDED_TOKEN_REFERENCE = new QName(
+            SP12Constants.SP_NS, SPConstants.REQUIRE_EMBEDDED_TOKEN_REFERENCE,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_THUMBPRINT_REFERENCE = new QName(
+            SP12Constants.SP_NS, SPConstants.REQUIRE_THUMBPRINT_REFERENCE, SP12Constants.SP_PREFIX);
+
+
+    public static final QName MUST_SUPPORT_REF_KEY_IDENTIFIER = new QName(
+            SP12Constants.SP_NS, SPConstants.MUST_SUPPORT_REF_KEY_IDENTIFIER, SP12Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_REF_ISSUER_SERIAL = new QName(
+            SP12Constants.SP_NS, SPConstants.MUST_SUPPORT_REF_ISSUER_SERIAL, SP12Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_REF_EXTERNAL_URI = new QName(
+            SP12Constants.SP_NS, SPConstants.MUST_SUPPORT_REF_EXTERNAL_URI, SP12Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_REF_EMBEDDED_TOKEN = new QName(
+            SP12Constants.SP_NS, SPConstants.MUST_SUPPORT_REF_EMBEDDED_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_REF_THUMBPRINT = new QName(
+            SP12Constants.SP_NS, SPConstants.MUST_SUPPORT_REF_THUMBPRINT, SP12Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_REF_ENCRYPTED_KEY = new QName(
+            SP12Constants.SP_NS, SPConstants.MUST_SUPPORT_REF_ENCRYPTED_KEY, SP12Constants.SP_PREFIX);
+
+    public static final QName WSS10 = new QName(SP12Constants.SP_NS, SPConstants.WSS10,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName WSS11 = new QName(SP12Constants.SP_NS, SPConstants.WSS11,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_SIGNATURE_CONFIRMATION = new QName(
+            SP12Constants.SP_NS, SPConstants.REQUIRE_SIGNATURE_CONFIRMATION,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_CLIENT_CHALLENGE = new QName(
+            SP12Constants.SP_NS, SPConstants.MUST_SUPPORT_CLIENT_CHALLENGE, SP12Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_SERVER_CHALLENGE = new QName(
+            SP12Constants.SP_NS, SPConstants.MUST_SUPPORT_SERVER_CHALLENGE, SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_CLIENT_ENTROPY = new QName(
+            SP12Constants.SP_NS, SPConstants.REQUIRE_CLIENT_ENTROPY, SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_SERVER_ENTROPY = new QName(
+            SP12Constants.SP_NS, SPConstants.REQUIRE_SERVER_ENTROPY, SP12Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_ISSUED_TOKENS = new QName(
+            SP12Constants.SP_NS, SPConstants.MUST_SUPPORT_ISSUED_TOKENS, SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_REQUEST_SECURITY_TOKEN_COLLECTION = new QName(
+            SP12Constants.SP_NS, SPConstants.REQUIRE_REQUEST_SECURITY_TOKEN_COLLECTION, SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_APPLIES_TO = new QName(
+            SP12Constants.SP_NS, SPConstants.REQUIRE_APPLIES_TO, SP12Constants.SP_PREFIX);
+
+    public static final QName ISSUER = new QName(SP12Constants.SP_NS, SPConstants.ISSUER,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName ISSUER_NAME = new QName(SP12Constants.SP_NS, SPConstants.ISSUER_NAME,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_DERIVED_KEYS = new QName(SP12Constants.SP_NS,
+            SPConstants.REQUIRE_DERIVED_KEYS, SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_IMPLIED_DERIVED_KEYS = new QName(SP12Constants.SP_NS,
+            SPConstants.REQUIRE_IMPLIED_DERIVED_KEYS, SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_EXPLICIT_DERIVED_KEYS = new QName(SP12Constants.SP_NS,
+            SPConstants.REQUIRE_EXPLICIT_DERIVED_KEYS, SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_EXTERNAL_URI_REFERNCE = new QName(
+            SP12Constants.SP_NS, SPConstants.REQUIRE_EXTERNAL_URI_REFERNCE, SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_EXTERNAL_REFERNCE = new QName(
+            SP12Constants.SP_NS, SPConstants.REQUIRE_EXTERNAL_REFERNCE, SP12Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_INTERNAL_REFERNCE = new QName(
+            SP12Constants.SP_NS, SPConstants.REQUIRE_INTERNAL_REFERNCE, SP12Constants.SP_PREFIX);
+
+    public static final QName REQUEST_SECURITY_TOKEN_TEMPLATE = new QName(
+            SP12Constants.SP_NS, SPConstants.REQUEST_SECURITY_TOKEN_TEMPLATE,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName SC10_SECURITY_CONTEXT_TOKEN = new QName(
+            SP12Constants.SP_NS, SPConstants.SC10_SECURITY_CONTEXT_TOKEN, SP12Constants.SP_PREFIX);
+
+    public static final QName BOOTSTRAP_POLICY = new QName(SP12Constants.SP_NS,
+            SPConstants.BOOTSTRAP_POLICY, SP12Constants.SP_PREFIX);
+
+    public final static QName XPATH = new QName(SP12Constants.SP_NS, SPConstants.XPATH_EXPR,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName NO_PASSWORD = new QName(SP12Constants.SP_NS, SPConstants.NO_PASSWORD,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName HASH_PASSWORD = new QName(SP12Constants.SP_NS, SPConstants.HASH_PASSWORD,
+            SP12Constants.SP_PREFIX);
+
+    public static final QName CREATED = new QName(SP12Constants.SP_NS, SPConstants.CREATED,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName NONCE = new QName(SP12Constants.SP_NS, SPConstants.NONCE,
+            SP13Constants.SP_PREFIX);
+
+    // /////////////////////////////////////////////////////////////////////////////////////////////
+
+    public static final QName HEADER = new QName(SP12Constants.SP_NS, SPConstants.HEADER);
+
+    public static final QName BODY = new QName(SP12Constants.SP_NS, SPConstants.BODY);
+
+    public static final QName ATTACHMENTS = new QName(SP12Constants.SP_NS, SPConstants.ATTACHMENTS);
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public IncludeTokenType getInclusionFromAttributeValue(String value) {
+
+        if (INCLUDE_ALWAYS.equals(value)) {
+            return IncludeTokenType.INCLUDE_TOKEN_ALWAYS;
+        } else if (INCLUDE_ALWAYS_TO_RECIPIENT.equals(value)) {
+            return IncludeTokenType.INCLUDE_TOKEN_ALWAYS_TO_RECIPIENT;
+        } else if (INCLUDE_ALWAYS_TO_INITIATOR.equals(value)) {
+            return IncludeTokenType.INCLUDE_TOKEN_ALWAYS_TO_INITIATOR;
+        } else if (INCLUDE_NEVER.equals(value)) {
+            return IncludeTokenType.INCLUDE_TOKEN_NEVER;
+        } else if (INCLUDE_ONCE.equals(value)) {
+            return IncludeTokenType.INCLUDE_TOKEN_ONCE;
+        }
+        return value == null || value.equals("") ? IncludeTokenType.INCLUDE_TOKEN_ALWAYS : null;
+    }
+
+    public String getAttributeValueFromInclusion(IncludeTokenType value) {
+
+        switch (value) {
+            case INCLUDE_TOKEN_ALWAYS:
+                return SP12Constants.INCLUDE_ALWAYS;
+            case INCLUDE_TOKEN_ALWAYS_TO_RECIPIENT:
+                return SP12Constants.INCLUDE_ALWAYS_TO_RECIPIENT;
+            case INCLUDE_TOKEN_ALWAYS_TO_INITIATOR:
+                return SP12Constants.INCLUDE_ALWAYS_TO_INITIATOR;
+            case INCLUDE_TOKEN_NEVER:
+                return SP12Constants.INCLUDE_NEVER;
+            case INCLUDE_TOKEN_ONCE:
+                return SP12Constants.INCLUDE_ONCE;
+            default:
+                return null;
+        }
+
+    }
+
+    public Version getVersion() {
+        return Version.SP_V12;
+    }
+
+    public String getNamespace() {
+        return SP_NS;
+    }
+
+    public QName getAttrXpathVersion() {
+        return ATTR_XPATH_VERSION;
+    }
+
+    public QName getXpath() {
+        return XPATH;
+    }
+
+    public QName getHeader() {
+        return HEADER;
+    }
+
+    public QName getBody() {
+        return BODY;
+    }
+
+    public QName getAttachments() {
+        return ATTACHMENTS;
+    }
+
+    public QName getIssuer() {
+        return ISSUER;
+    }
+
+    public QName getIssuerName() {
+        return ISSUER_NAME;
+    }
+
+    public QName getRequestSecurityTokenTemplate() {
+        return REQUEST_SECURITY_TOKEN_TEMPLATE;
+    }
+
+    public QName getRequireExternalRefernce() {
+        return REQUIRE_EXTERNAL_REFERNCE;
+    }
+
+    public QName getRequireInternalRefernce() {
+        return REQUIRE_INTERNAL_REFERNCE;
+    }
+
+    public QName getRequireClientCertificate() {
+        return REQUIRE_CLIENT_CERTIFICATE;
+    }
+
+    public QName getHttpBasicAuthentication() {
+        return HTTP_BASIC_AUTHENTICATION;
+    }
+
+    public QName getHttpDigestAuthentication() {
+        return HTTP_DIGEST_AUTHENTICATION;
+    }
+
+    public QName getRequireExternalUriRefernce() {
+        return REQUIRE_EXTERNAL_URI_REFERNCE;
+    }
+
+    public QName getRequireExplicitDerivedKeys() {
+        return REQUIRE_EXPLICIT_DERIVED_KEYS;
+    }
+
+    public QName getRequireImpliedDerivedKeys() {
+        return REQUIRE_IMPLIED_DERIVED_KEYS;
+    }
+
+    public QName getRequireDerivedKeys() {
+        return REQUIRE_DERIVED_KEYS;
+    }
+
+    public QName getRequireAppliesTo() {
+        return REQUIRE_APPLIES_TO;
+    }
+
+    public QName getRequireRequestSecurityTokenCollection() {
+        return REQUIRE_REQUEST_SECURITY_TOKEN_COLLECTION;
+    }
+
+    public QName getSc10SecurityContextToken() {
+        return SC10_SECURITY_CONTEXT_TOKEN;
+    }
+
+    public QName getBootstrapPolicy() {
+        return BOOTSTRAP_POLICY;
+    }
+
+    public QName getLax() {
+        return LAX;
+    }
+
+    public QName getStrict() {
+        return STRICT;
+    }
+
+    public QName getLaxtsfirst() {
+        return LAXTSFIRST;
+    }
+
+    public QName getLaxtslast() {
+        return LAXTSLAST;
+    }
+
+    public QName getWSS10() {
+        return WSS10;
+    }
+
+    public QName getWSS11() {
+        return WSS11;
+    }
+
+    public QName getAlgorithmSuite() {
+        return ALGORITHM_SUITE;
+    }
+
+    public QName getAsymmetricBinding() {
+        return ASYMMETRIC_BINDING;
+    }
+
+    public QName getEncryptionToken() {
+        return ENCRYPTION_TOKEN;
+    }
+
+    public QName getHttpsToken() {
+        return HTTPS_TOKEN;
+    }
+
+    public QName getInitiatorToken() {
+        return INITIATOR_TOKEN;
+    }
+
+    public QName getIssuedToken() {
+        return ISSUED_TOKEN;
+    }
+
+    public QName getLayout() {
+        return LAYOUT;
+    }
+
+    public QName getProtectionToken() {
+        return PROTECTION_TOKEN;
+    }
+
+    public QName getRecipientToken() {
+        return RECIPIENT_TOKEN;
+    }
+
+    public QName getRequiredElements() {
+        return REQUIRED_ELEMENTS;
+    }
+
+    public QName getSecureConversationToken() {
+        return SECURE_CONVERSATION_TOKEN;
+    }
+
+    public QName getSecurityContextToken() {
+        return SECURITY_CONTEXT_TOKEN;
+    }
+
+    public QName getSignatureToken() {
+        return SIGNATURE_TOKEN;
+    }
+
+    public QName getSignedElements() {
+        return SIGNED_ELEMENTS;
+    }
+
+    public QName getEncryptedElements() {
+        return ENCRYPTED_ELEMENTS;
+    }
+
+    public QName getSignedParts() {
+        return SIGNED_PARTS;
+    }
+
+    public QName getEncryptedParts() {
+        return ENCRYPTED_PARTS;
+    }
+
+    public QName getOnlySignEntireHeadersAndBody() {
+        return ONLY_SIGN_ENTIRE_HEADERS_AND_BODY;
+    }
+
+    public QName getSymmetricBinding() {
+        return SYMMETRIC_BINDING;
+    }
+
+    public QName getTransportBinding() {
+        return TRANSPORT_BINDING;
+    }
+
+    public QName getTransportToken() {
+        return TRANSPORT_TOKEN;
+    }
+
+    public QName getUserNameToken() {
+        return USERNAME_TOKEN;
+    }
+
+    public QName getKeyValueToken() {
+        return KEYVALUE_TOKEN;
+    }
+
+    public QName getX509Token() {
+        return X509_TOKEN;
+    }
+
+    public QName getSamlToken() {
+        return SAML_TOKEN;
+    }
+
+    public QName getSupportingTokens() {
+        return SUPPORTING_TOKENS;
+    }
+
+    public QName getSignedSupportingTokens() {
+        return SIGNED_SUPPORTING_TOKENS;
+    }
+
+    public QName getEndorsingSupportingTokens() {
+        return ENDORSING_SUPPORTING_TOKENS;
+    }
+
+    public QName getSignedEndorsingSupportingTokens() {
+        return SIGNED_ENDORSING_SUPPORTING_TOKENS;
+    }
+
+    public QName getEncryptedSupportingTokens() {
+        return ENCRYPTED_SUPPORTING_TOKENS;
+    }
+
+    public QName getSignedEncryptedSupportingTokens() {
+        return SIGNED_ENCRYPTED_SUPPORTING_TOKENS;
+    }
+
+    public QName getEndorsingEncryptedSupportingTokens() {
+        return ENDORSING_ENCRYPTED_SUPPORTING_TOKENS;
+    }
+
+    public QName getSignedEndorsingEncryptedSupportingTokens() {
+        return SIGNED_ENDORSING_ENCRYPTED_SUPPORTING_TOKENS;
+    }
+
+    public QName getIncludeToken() {
+        return INCLUDE_TOKEN;
+    }
+
+    public QName getRequiredDerivedKeys() {
+        return REQUIRE_DERIVED_KEYS;
+    }
+
+    public QName getIncludeTimestamp() {
+        return INCLUDE_TIMESTAMP;
+    }
+
+    public QName getMustSupportClientChallenge() {
+        return MUST_SUPPORT_CLIENT_CHALLENGE;
+    }
+
+    public QName getMustSupportServerChallenge() {
+        return MUST_SUPPORT_SERVER_CHALLENGE;
+    }
+
+    public QName getRequireClientEntropy() {
+        return REQUIRE_CLIENT_ENTROPY;
+    }
+
+    public QName getRequireServerEntropy() {
+        return REQUIRE_SERVER_ENTROPY;
+    }
+
+    public QName getMustSupportIssuedTokens() {
+        return MUST_SUPPORT_ISSUED_TOKENS;
+    }
+
+    public QName getWssUsernameToken10() {
+        return WSS_USERNAME_TOKEN10;
+    }
+
+    public QName getWssUsernameToken11() {
+        return WSS_USERNAME_TOKEN11;
+    }
+
+    public QName getNoPassword() {
+        return NO_PASSWORD;
+    }
+
+    public QName getHashPassword() {
+        return HASH_PASSWORD;
+    }
+
+    public QName getCreated() {
+        return CREATED;
+    }
+
+    public QName getNonce() {
+        return NONCE;
+    }
+
+    public QName getMustSupportRefKeyIdentifier() {
+        return MUST_SUPPORT_REF_KEY_IDENTIFIER;
+    }
+
+    public QName getMustSupportRefIssuerSerial() {
+        return MUST_SUPPORT_REF_ISSUER_SERIAL;
+    }
+
+    public QName getMustSupportRefExternalUri() {
+        return MUST_SUPPORT_REF_EXTERNAL_URI;
+    }
+
+    public QName getMustSupportRefEmbeddedToken() {
+        return MUST_SUPPORT_REF_EMBEDDED_TOKEN;
+    }
+
+    public QName getMustSupportRefThumbprint() {
+        return MUST_SUPPORT_REF_THUMBPRINT;
+    }
+
+    public QName getMustSupportRefEncryptedKey() {
+        return MUST_SUPPORT_REF_ENCRYPTED_KEY;
+    }
+
+    public QName getRequireSignatureConfirmation() {
+        return REQUIRE_SIGNATURE_CONFIRMATION;
+    }
+
+    public QName getWssX509V1Token10() {
+        return WSS_X509_V1_TOKEN_10;
+    }
+
+    public QName getWssX509V3Token10() {
+        return WSS_X509_V3_TOKEN_10;
+    }
+
+    public QName getWssX509Pkcs7Token10() {
+        return WSS_X509_PKCS7_TOKEN_10;
+    }
+
+    public QName getWssX509PkiPathV1Token10() {
+        return WSS_X509_PKI_PATH_V1_TOKEN_10;
+    }
+
+    public QName getWssX509V1Token11() {
+        return WSS_X509_V1_TOKEN_11;
+    }
+
+    public QName getWssX509V3Token11() {
+        return WSS_X509_V3_TOKEN_11;
+    }
+
+    public QName getWssX509Pkcs7Token11() {
+        return WSS_X509_PKCS7_TOKEN_11;
+    }
+
+    public QName getWssX509PkiPathV1Token11() {
+        return WSS_X509_PKI_PATH_V1_TOKEN_11;
+    }
+
+    public QName getRequireKeyIdentifireReference() {
+        return REQUIRE_KEY_IDENTIFIRE_REFERENCE;
+    }
+
+    public QName getRequireIssuerSerialReference() {
+        return REQUIRE_ISSUER_SERIAL_REFERENCE;
+    }
+
+    public QName getRequireEmbeddedTokenReference() {
+        return REQUIRE_EMBEDDED_TOKEN_REFERENCE;
+    }
+
+    public QName getRequireThumbprintReference() {
+        return REQUIRE_THUMBPRINT_REFERENCE;
+    }
+
+    public QName getEncryptBeforeSigning() {
+        return ENCRYPT_BEFORE_SIGNING;
+    }
+
+    public QName getSignBeforeEncrypting() {
+        return SIGN_BEFORE_ENCRYPTING;
+    }
+
+    public QName getEncryptSignature() {
+        return ENCRYPT_SIGNATURE;
+    }
+
+    public QName getProtectTokens() {
+        return PROTECT_TOKENS;
+    }
+
+    public QName getTrust10() {
+        return TRUST_10;
+    }
+
+    public QName getTrust13() {
+        return TRUST_13;
+    }
+}

Propchange: webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SP12Constants.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SP13Constants.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SP13Constants.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SP13Constants.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SP13Constants.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,799 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.swssf.policy.secpolicy;
+
+import javax.xml.namespace.QName;
+
+/**
+ * class lent from apache cxf
+ */
+public final class SP13Constants extends SPConstants {
+
+    public static final SP13Constants INSTANCE = new SP13Constants();
+
+    public final static String SP_NS = "http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200802";
+
+    public final static String SP_PREFIX = "sp";
+
+    //all attributes are unqualified!!
+    public static final QName INCLUDE_TOKEN = new QName(SPConstants.ATTR_INCLUDE_TOKEN);
+
+    public final static String INCLUDE_NEVER = SP12Constants.SP_NS +
+            SPConstants.INCLUDE_TOKEN_NEVER_SUFFIX;
+
+    public final static String INCLUDE_ONCE = SP12Constants.SP_NS +
+            SPConstants.INCLUDE_TOKEN_ONCE_SUFFIX;
+
+    public final static String INCLUDE_ALWAYS_TO_RECIPIENT = SP12Constants.SP_NS
+            + SPConstants.INCLUDE_TOEKN_ALWAYS_TO_RECIPIENT_SUFFIX;
+
+    public final static String INCLUDE_ALWAYS_TO_INITIATOR = SP12Constants.SP_NS
+            + SPConstants.INCLUDE_TOEKN_ALWAYS_TO_INITIATOR_SUFFIX;
+
+    public final static String INCLUDE_ALWAYS = SP12Constants.SP_NS
+            + SPConstants.INCLUDE_TOEKN_ALWAYS_SUFFIX;
+
+    public static final QName TRUST_10 = new QName(SP13Constants.SP_NS, SPConstants.TRUST_10,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName TRUST_13 = new QName(SP13Constants.SP_NS, SPConstants.TRUST_13,
+            SP13Constants.SP_PREFIX);
+
+    public final static QName REQUIRE_CLIENT_CERTIFICATE = new QName(SP13Constants.SP_NS, "RequireClientCertificate", SP13Constants.SP_PREFIX);
+
+    public final static QName HTTP_BASIC_AUTHENTICATION = new QName(SP13Constants.SP_NS, "HttpBasicAuthentication", SP13Constants.SP_PREFIX);
+
+    public final static QName HTTP_DIGEST_AUTHENTICATION = new QName(SP13Constants.SP_NS, "HttpDigestAuthentication", SP13Constants.SP_PREFIX);
+
+    // /////////////////////////////////////////////////////////////////////
+
+    public static final QName ATTR_XPATH_VERSION = new QName(SP_NS, SPConstants.XPATH_VERSION, SP13Constants.SP_PREFIX);
+
+    ////////////////////////////////////////////////////////////////////////
+
+
+    public static final QName TRANSPORT_BINDING = new QName(SP_NS,
+            SPConstants.TRANSPORT_BINDING, SP13Constants.SP_PREFIX);
+
+    public static final QName ALGORITHM_SUITE = new QName(SP_NS,
+            SPConstants.ALGO_SUITE, SP13Constants.SP_PREFIX);
+
+    public static final QName LAYOUT = new QName(SP_NS, SPConstants.LAYOUT, SP_PREFIX);
+
+
+    public static final QName STRICT = new QName(SP13Constants.SP_NS, SPConstants.LAYOUT_STRICT,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName LAX = new QName(SP13Constants.SP_NS, SPConstants.LAYOUT_LAX,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName LAXTSFIRST = new QName(SP13Constants.SP_NS,
+            SPConstants.LAYOUT_LAX_TIMESTAMP_FIRST, SP13Constants.SP_PREFIX);
+
+    public static final QName LAXTSLAST = new QName(SP13Constants.SP_NS,
+            SPConstants.LAYOUT_LAX_TIMESTAMP_LAST, SP13Constants.SP_PREFIX);
+
+    // ////////////////
+
+    public static final QName INCLUDE_TIMESTAMP = new QName(SP13Constants.SP_NS,
+            SPConstants.INCLUDE_TIMESTAMP, SP13Constants.SP_PREFIX);
+
+    public static final QName ENCRYPT_BEFORE_SIGNING = new QName(SP13Constants.SP_NS,
+            SPConstants.ENCRYPT_BEFORE_SIGNING, SP13Constants.SP_PREFIX);
+
+    public static final QName SIGN_BEFORE_ENCRYPTING = new QName(SP13Constants.SP_NS,
+            SPConstants.SIGN_BEFORE_ENCRYPTING, SP13Constants.SP_PREFIX);
+
+    public static final QName ONLY_SIGN_ENTIRE_HEADERS_AND_BODY = new QName(SP13Constants.SP_NS,
+            SPConstants.ONLY_SIGN_ENTIRE_HEADERS_AND_BODY, SP13Constants.SP_PREFIX);
+
+    public static final QName TRANSPORT_TOKEN = new QName(SP_NS,
+            SPConstants.TRANSPORT_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName HTTPS_TOKEN = new QName(SP13Constants.SP_NS,
+            SPConstants.HTTPS_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName SECURITY_CONTEXT_TOKEN = new QName(
+            SP13Constants.SP_NS, SPConstants.SECURITY_CONTEXT_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName SECURE_CONVERSATION_TOKEN = new QName(
+            SP13Constants.SP_NS, SPConstants.SECURE_CONVERSATION_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName SIGNATURE_TOKEN = new QName(SP13Constants.SP_NS,
+            SPConstants.SIGNATURE_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName SIGNED_PARTS = new QName(SP13Constants.SP_NS,
+            SPConstants.SIGNED_PARTS, SP13Constants.SP_PREFIX);
+
+    public static final QName ENCRYPTED_PARTS = new QName(SP13Constants.SP_NS,
+            SPConstants.ENCRYPTED_PARTS, SP13Constants.SP_PREFIX);
+
+    public static final QName SIGNED_ELEMENTS = new QName(SP13Constants.SP_NS,
+            SPConstants.SIGNED_ELEMENTS, SP13Constants.SP_PREFIX);
+
+    public static final QName ENCRYPTED_ELEMENTS = new QName(SP13Constants.SP_NS,
+            SPConstants.ENCRYPTED_ELEMENTS, SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRED_ELEMENTS = new QName(SP13Constants.SP_NS,
+            SPConstants.REQUIRED_ELEMENTS, SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRED_PARTS = new QName(SP13Constants.SP_NS,
+            SPConstants.REQUIRED_PARTS, SP13Constants.SP_PREFIX);
+
+    public static final QName CONTENT_ENCRYPTED_ELEMENTS = new QName(SP13Constants.SP_NS,
+            SPConstants.CONTENT_ENCRYPTED_ELEMENTS, SP13Constants.SP_PREFIX);
+
+    public static final QName USERNAME_TOKEN = new QName(SP13Constants.SP_NS,
+            SPConstants.USERNAME_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName SAML_TOKEN = new QName(SP13Constants.SP_NS,
+            SPConstants.SAML_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName KEYVALUE_TOKEN = new QName(SP13Constants.SP_NS,
+            SPConstants.KEYVALUE_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName WSS_USERNAME_TOKEN10 = new QName(SP13Constants.SP_NS,
+            SPConstants.USERNAME_TOKEN10, SP13Constants.SP_PREFIX);
+
+    public static final QName WSS_USERNAME_TOKEN11 = new QName(SP13Constants.SP_NS,
+            SPConstants.USERNAME_TOKEN11, SP13Constants.SP_PREFIX);
+
+    public static final QName ENCRYPTION_TOKEN = new QName(SP13Constants.SP_NS,
+            SPConstants.ENCRYPTION_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName X509_TOKEN = new QName(SP13Constants.SP_NS,
+            SPConstants.X509_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_V1_TOKEN_10 = new QName(SP13Constants.SP_NS,
+            SPConstants.WSS_X509_V1_TOKEN10, SP13Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_V3_TOKEN_10 = new QName(SP13Constants.SP_NS,
+            SPConstants.WSS_X509_V3_TOKEN10, SP13Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_PKCS7_TOKEN_10 = new QName(
+            SP13Constants.SP_NS, SPConstants.WSS_X509_PKCS7_TOKEN10, SP13Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_PKI_PATH_V1_TOKEN_10 = new QName(
+            SP13Constants.SP_NS, SPConstants.WSS_X509_PKI_PATH_V1_TOKEN10, SP13Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_V1_TOKEN_11 = new QName(SP13Constants.SP_NS,
+            SPConstants.WSS_X509_V1_TOKEN11, SP13Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_V3_TOKEN_11 = new QName(SP13Constants.SP_NS,
+            SPConstants.WSS_X509_V3_TOKEN11, SP13Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_PKCS7_TOKEN_11 = new QName(
+            SP13Constants.SP_NS, SPConstants.WSS_X509_PKCS7_TOKEN11, SP13Constants.SP_PREFIX);
+
+    public static final QName WSS_X509_PKI_PATH_V1_TOKEN_11 = new QName(
+            SP13Constants.SP_NS, SPConstants.WSS_X509_PKI_PATH_V1_TOKEN11, SP13Constants.SP_PREFIX);
+
+    public static final QName ISSUED_TOKEN = new QName(SP13Constants.SP_NS,
+            SPConstants.ISSUED_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName SUPPORTING_TOKENS = new QName(SP13Constants.SP_NS,
+            SPConstants.SUPPORTING_TOKENS, SP13Constants.SP_PREFIX);
+
+    public static final QName SIGNED_SUPPORTING_TOKENS = new QName(
+            SP13Constants.SP_NS, SPConstants.SIGNED_SUPPORTING_TOKENS, SP13Constants.SP_PREFIX);
+
+    public static final QName ENDORSING_SUPPORTING_TOKENS = new QName(
+            SP13Constants.SP_NS, SPConstants.ENDORSING_SUPPORTING_TOKENS, SP13Constants.SP_PREFIX);
+
+    public static final QName SIGNED_ENDORSING_SUPPORTING_TOKENS = new QName(
+            SP13Constants.SP_NS, SPConstants.SIGNED_ENDORSING_SUPPORTING_TOKENS,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName ENCRYPTED_SUPPORTING_TOKENS = new QName(SP13Constants.SP_NS,
+            SPConstants.ENCRYPTED_SUPPORTING_TOKENS, SP13Constants.SP_PREFIX);
+
+    public static final QName SIGNED_ENCRYPTED_SUPPORTING_TOKENS = new QName(
+            SP13Constants.SP_NS, SPConstants.SIGNED_ENCRYPTED_SUPPORTING_TOKENS, SP13Constants.SP_PREFIX);
+
+    public static final QName ENDORSING_ENCRYPTED_SUPPORTING_TOKENS = new QName(
+            SP13Constants.SP_NS, SPConstants.ENDORSING_ENCRYPTED_SUPPORTING_TOKENS, SP13Constants.SP_PREFIX);
+
+    public static final QName SIGNED_ENDORSING_ENCRYPTED_SUPPORTING_TOKENS = new QName(
+            SP13Constants.SP_NS, SPConstants.SIGNED_ENDORSING_ENCRYPTED_SUPPORTING_TOKENS,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName PROTECTION_TOKEN = new QName(SP13Constants.SP_NS,
+            SPConstants.PROTECTION_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName ASYMMETRIC_BINDING = new QName(SP13Constants.SP_NS,
+            SPConstants.ASYMMETRIC_BINDING, SP13Constants.SP_PREFIX);
+
+    public static final QName SYMMETRIC_BINDING = new QName(SP13Constants.SP_NS,
+            SPConstants.SYMMETRIC_BINDING, SP13Constants.SP_PREFIX);
+
+    public static final QName INITIATOR_TOKEN = new QName(SP13Constants.SP_NS,
+            SPConstants.INITIATOR_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName RECIPIENT_TOKEN = new QName(SP13Constants.SP_NS,
+            SPConstants.RECIPIENT_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName ENCRYPT_SIGNATURE = new QName(SP13Constants.SP_NS,
+            SPConstants.ENCRYPT_SIGNATURE, SP13Constants.SP_PREFIX);
+
+    public static final QName PROTECT_TOKENS = new QName(SP13Constants.SP_NS,
+            SPConstants.PROTECT_TOKENS, SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_KEY_IDENTIFIRE_REFERENCE = new QName(
+            SP13Constants.SP_NS, SPConstants.REQUIRE_KEY_IDENTIFIRE_REFERENCE,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_ISSUER_SERIAL_REFERENCE = new QName(
+            SP13Constants.SP_NS, SPConstants.REQUIRE_ISSUER_SERIAL_REFERENCE,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_EMBEDDED_TOKEN_REFERENCE = new QName(
+            SP13Constants.SP_NS, SPConstants.REQUIRE_EMBEDDED_TOKEN_REFERENCE,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_THUMBPRINT_REFERENCE = new QName(
+            SP13Constants.SP_NS, SPConstants.REQUIRE_THUMBPRINT_REFERENCE, SP13Constants.SP_PREFIX);
+
+
+    public static final QName MUST_SUPPORT_REF_KEY_IDENTIFIER = new QName(
+            SP13Constants.SP_NS, SPConstants.MUST_SUPPORT_REF_KEY_IDENTIFIER, SP13Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_REF_ISSUER_SERIAL = new QName(
+            SP13Constants.SP_NS, SPConstants.MUST_SUPPORT_REF_ISSUER_SERIAL, SP13Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_REF_EXTERNAL_URI = new QName(
+            SP13Constants.SP_NS, SPConstants.MUST_SUPPORT_REF_EXTERNAL_URI, SP13Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_REF_EMBEDDED_TOKEN = new QName(
+            SP13Constants.SP_NS, SPConstants.MUST_SUPPORT_REF_EMBEDDED_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_REF_THUMBPRINT = new QName(
+            SP13Constants.SP_NS, SPConstants.MUST_SUPPORT_REF_THUMBPRINT, SP13Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_REF_ENCRYPTED_KEY = new QName(
+            SP13Constants.SP_NS, SPConstants.MUST_SUPPORT_REF_ENCRYPTED_KEY, SP13Constants.SP_PREFIX);
+
+    public static final QName WSS10 = new QName(SP13Constants.SP_NS, SPConstants.WSS10,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName WSS11 = new QName(SP13Constants.SP_NS, SPConstants.WSS11,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_SIGNATURE_CONFIRMATION = new QName(
+            SP13Constants.SP_NS, SPConstants.REQUIRE_SIGNATURE_CONFIRMATION,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_CLIENT_CHALLENGE = new QName(
+            SP13Constants.SP_NS, SPConstants.MUST_SUPPORT_CLIENT_CHALLENGE, SP13Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_SERVER_CHALLENGE = new QName(
+            SP13Constants.SP_NS, SPConstants.MUST_SUPPORT_SERVER_CHALLENGE, SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_CLIENT_ENTROPY = new QName(
+            SP13Constants.SP_NS, SPConstants.REQUIRE_CLIENT_ENTROPY, SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_SERVER_ENTROPY = new QName(
+            SP13Constants.SP_NS, SPConstants.REQUIRE_SERVER_ENTROPY, SP13Constants.SP_PREFIX);
+
+    public static final QName MUST_SUPPORT_ISSUED_TOKENS = new QName(
+            SP13Constants.SP_NS, SPConstants.MUST_SUPPORT_ISSUED_TOKENS, SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_REQUEST_SECURITY_TOKEN_COLLECTION = new QName(
+            SP13Constants.SP_NS, SPConstants.REQUIRE_REQUEST_SECURITY_TOKEN_COLLECTION, SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_APPLIES_TO = new QName(
+            SP13Constants.SP_NS, SPConstants.REQUIRE_APPLIES_TO, SP13Constants.SP_PREFIX);
+
+    public static final QName ISSUER = new QName(SP13Constants.SP_NS, SPConstants.ISSUER,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName ISSUER_NAME = new QName(SP13Constants.SP_NS, SPConstants.ISSUER_NAME,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_DERIVED_KEYS = new QName(SP13Constants.SP_NS,
+            SPConstants.REQUIRE_DERIVED_KEYS, SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_IMPLIED_DERIVED_KEYS = new QName(SP13Constants.SP_NS,
+            SPConstants.REQUIRE_IMPLIED_DERIVED_KEYS, SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_EXPLICIT_DERIVED_KEYS = new QName(SP13Constants.SP_NS,
+            SPConstants.REQUIRE_EXPLICIT_DERIVED_KEYS, SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_EXTERNAL_URI_REFERNCE = new QName(
+            SP13Constants.SP_NS, SPConstants.REQUIRE_EXTERNAL_URI_REFERNCE, SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_EXTERNAL_REFERNCE = new QName(
+            SP13Constants.SP_NS, SPConstants.REQUIRE_EXTERNAL_REFERNCE, SP13Constants.SP_PREFIX);
+
+    public static final QName REQUIRE_INTERNAL_REFERNCE = new QName(
+            SP13Constants.SP_NS, SPConstants.REQUIRE_INTERNAL_REFERNCE, SP13Constants.SP_PREFIX);
+
+    public static final QName REQUEST_SECURITY_TOKEN_TEMPLATE = new QName(
+            SP13Constants.SP_NS, SPConstants.REQUEST_SECURITY_TOKEN_TEMPLATE,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName SC10_SECURITY_CONTEXT_TOKEN = new QName(
+            SP13Constants.SP_NS, SPConstants.SC10_SECURITY_CONTEXT_TOKEN, SP13Constants.SP_PREFIX);
+
+    public static final QName BOOTSTRAP_POLICY = new QName(SP13Constants.SP_NS,
+            SPConstants.BOOTSTRAP_POLICY, SP13Constants.SP_PREFIX);
+
+    public final static QName XPATH = new QName(SP13Constants.SP_NS, SPConstants.XPATH_EXPR,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName NO_PASSWORD = new QName(SP13Constants.SP_NS, SPConstants.NO_PASSWORD,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName HASH_PASSWORD = new QName(SP13Constants.SP_NS, SPConstants.HASH_PASSWORD,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName CREATED = new QName(SP13Constants.SP_NS, SPConstants.CREATED,
+            SP13Constants.SP_PREFIX);
+
+    public static final QName NONCE = new QName(SP13Constants.SP_NS, SPConstants.NONCE,
+            SP13Constants.SP_PREFIX);
+
+    // /////////////////////////////////////////////////////////////////////////////////////////////
+
+    public static final QName HEADER = new QName(SP13Constants.SP_NS, SPConstants.HEADER);
+
+    public static final QName BODY = new QName(SP13Constants.SP_NS, SPConstants.BODY);
+
+    public static final QName ATTACHMENTS = new QName(SP13Constants.SP_NS, SPConstants.ATTACHMENTS);
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public IncludeTokenType getInclusionFromAttributeValue(String value) {
+
+        if (INCLUDE_ALWAYS.equals(value)) {
+            return IncludeTokenType.INCLUDE_TOKEN_ALWAYS;
+        } else if (INCLUDE_ALWAYS_TO_RECIPIENT.equals(value)) {
+            return IncludeTokenType.INCLUDE_TOKEN_ALWAYS_TO_RECIPIENT;
+        } else if (INCLUDE_ALWAYS_TO_INITIATOR.equals(value)) {
+            return IncludeTokenType.INCLUDE_TOKEN_ALWAYS_TO_INITIATOR;
+        } else if (INCLUDE_NEVER.equals(value)) {
+            return IncludeTokenType.INCLUDE_TOKEN_NEVER;
+        } else if (INCLUDE_ONCE.equals(value)) {
+            return IncludeTokenType.INCLUDE_TOKEN_ONCE;
+        }
+        return value == null || value.equals("") ? IncludeTokenType.INCLUDE_TOKEN_ALWAYS : null;
+    }
+
+    public String getAttributeValueFromInclusion(IncludeTokenType value) {
+
+        switch (value) {
+            case INCLUDE_TOKEN_ALWAYS:
+                return SP13Constants.INCLUDE_ALWAYS;
+            case INCLUDE_TOKEN_ALWAYS_TO_RECIPIENT:
+                return SP13Constants.INCLUDE_ALWAYS_TO_RECIPIENT;
+            case INCLUDE_TOKEN_ALWAYS_TO_INITIATOR:
+                return SP13Constants.INCLUDE_ALWAYS_TO_INITIATOR;
+            case INCLUDE_TOKEN_NEVER:
+                return SP13Constants.INCLUDE_NEVER;
+            case INCLUDE_TOKEN_ONCE:
+                return SP13Constants.INCLUDE_ONCE;
+            default:
+                return null;
+        }
+
+    }
+
+    public Version getVersion() {
+        return Version.SP_V13;
+    }
+
+    public String getNamespace() {
+        return SP_NS;
+    }
+
+    public QName getAttrXpathVersion() {
+        return ATTR_XPATH_VERSION;
+    }
+
+    public QName getXpath() {
+        return XPATH;
+    }
+
+    public QName getHeader() {
+        return HEADER;
+    }
+
+    public QName getBody() {
+        return BODY;
+    }
+
+    public QName getAttachments() {
+        return ATTACHMENTS;
+    }
+
+    public QName getIssuer() {
+        return ISSUER;
+    }
+
+    public QName getIssuerName() {
+        return ISSUER_NAME;
+    }
+
+    public QName getRequestSecurityTokenTemplate() {
+        return REQUEST_SECURITY_TOKEN_TEMPLATE;
+    }
+
+    public QName getRequireExternalRefernce() {
+        return REQUIRE_EXTERNAL_REFERNCE;
+    }
+
+    public QName getRequireInternalRefernce() {
+        return REQUIRE_INTERNAL_REFERNCE;
+    }
+
+    public QName getRequireClientCertificate() {
+        return REQUIRE_CLIENT_CERTIFICATE;
+    }
+
+    public QName getHttpBasicAuthentication() {
+        return HTTP_BASIC_AUTHENTICATION;
+    }
+
+    public QName getHttpDigestAuthentication() {
+        return HTTP_DIGEST_AUTHENTICATION;
+    }
+
+    public QName getRequireExternalUriRefernce() {
+        return REQUIRE_EXTERNAL_URI_REFERNCE;
+    }
+
+    public QName getRequireExplicitDerivedKeys() {
+        return REQUIRE_EXPLICIT_DERIVED_KEYS;
+    }
+
+    public QName getRequireImpliedDerivedKeys() {
+        return REQUIRE_IMPLIED_DERIVED_KEYS;
+    }
+
+    public QName getRequireDerivedKeys() {
+        return REQUIRE_DERIVED_KEYS;
+    }
+
+    public QName getRequireAppliesTo() {
+        return REQUIRE_APPLIES_TO;
+    }
+
+    public QName getRequireRequestSecurityTokenCollection() {
+        return REQUIRE_REQUEST_SECURITY_TOKEN_COLLECTION;
+    }
+
+    public QName getSc10SecurityContextToken() {
+        return SC10_SECURITY_CONTEXT_TOKEN;
+    }
+
+    public QName getBootstrapPolicy() {
+        return BOOTSTRAP_POLICY;
+    }
+
+    public QName getLax() {
+        return LAX;
+    }
+
+    public QName getStrict() {
+        return STRICT;
+    }
+
+    public QName getLaxtsfirst() {
+        return LAXTSFIRST;
+    }
+
+    public QName getLaxtslast() {
+        return LAXTSLAST;
+    }
+
+    public QName getWSS10() {
+        return WSS10;
+    }
+
+    public QName getWSS11() {
+        return WSS11;
+    }
+
+    public QName getAlgorithmSuite() {
+        return ALGORITHM_SUITE;
+    }
+
+    public QName getAsymmetricBinding() {
+        return ASYMMETRIC_BINDING;
+    }
+
+    public QName getEncryptionToken() {
+        return ENCRYPTION_TOKEN;
+    }
+
+    public QName getHttpsToken() {
+        return HTTPS_TOKEN;
+    }
+
+    public QName getInitiatorToken() {
+        return INITIATOR_TOKEN;
+    }
+
+    public QName getIssuedToken() {
+        return ISSUED_TOKEN;
+    }
+
+    public QName getLayout() {
+        return LAYOUT;
+    }
+
+    public QName getProtectionToken() {
+        return PROTECTION_TOKEN;
+    }
+
+    public QName getRecipientToken() {
+        return RECIPIENT_TOKEN;
+    }
+
+    public QName getRequiredElements() {
+        return REQUIRED_ELEMENTS;
+    }
+
+    public QName getSecureConversationToken() {
+        return SECURE_CONVERSATION_TOKEN;
+    }
+
+    public QName getSecurityContextToken() {
+        return SECURITY_CONTEXT_TOKEN;
+    }
+
+    public QName getSignatureToken() {
+        return SIGNATURE_TOKEN;
+    }
+
+    public QName getSignedElements() {
+        return SIGNED_ELEMENTS;
+    }
+
+    public QName getEncryptedElements() {
+        return ENCRYPTED_ELEMENTS;
+    }
+
+    public QName getSignedParts() {
+        return SIGNED_PARTS;
+    }
+
+    public QName getEncryptedParts() {
+        return ENCRYPTED_PARTS;
+    }
+
+    public QName getOnlySignEntireHeadersAndBody() {
+        return ONLY_SIGN_ENTIRE_HEADERS_AND_BODY;
+    }
+
+    public QName getSymmetricBinding() {
+        return SYMMETRIC_BINDING;
+    }
+
+    public QName getTransportBinding() {
+        return TRANSPORT_BINDING;
+    }
+
+    public QName getTransportToken() {
+        return TRANSPORT_TOKEN;
+    }
+
+    public QName getUserNameToken() {
+        return USERNAME_TOKEN;
+    }
+
+    public QName getKeyValueToken() {
+        return KEYVALUE_TOKEN;
+    }
+
+    public QName getX509Token() {
+        return X509_TOKEN;
+    }
+
+    public QName getSamlToken() {
+        return SAML_TOKEN;
+    }
+
+    public QName getSupportingTokens() {
+        return SUPPORTING_TOKENS;
+    }
+
+    public QName getSignedSupportingTokens() {
+        return SIGNED_SUPPORTING_TOKENS;
+    }
+
+    public QName getEndorsingSupportingTokens() {
+        return ENDORSING_SUPPORTING_TOKENS;
+    }
+
+    public QName getSignedEndorsingSupportingTokens() {
+        return SIGNED_ENDORSING_SUPPORTING_TOKENS;
+    }
+
+    public QName getEncryptedSupportingTokens() {
+        return ENCRYPTED_SUPPORTING_TOKENS;
+    }
+
+    public QName getSignedEncryptedSupportingTokens() {
+        return SIGNED_ENCRYPTED_SUPPORTING_TOKENS;
+    }
+
+    public QName getEndorsingEncryptedSupportingTokens() {
+        return ENDORSING_ENCRYPTED_SUPPORTING_TOKENS;
+    }
+
+    public QName getSignedEndorsingEncryptedSupportingTokens() {
+        return SIGNED_ENDORSING_ENCRYPTED_SUPPORTING_TOKENS;
+    }
+
+    public QName getIncludeToken() {
+        return INCLUDE_TOKEN;
+    }
+
+    public QName getRequiredDerivedKeys() {
+        return REQUIRE_DERIVED_KEYS;
+    }
+
+    public QName getIncludeTimestamp() {
+        return INCLUDE_TIMESTAMP;
+    }
+
+    public QName getMustSupportClientChallenge() {
+        return MUST_SUPPORT_CLIENT_CHALLENGE;
+    }
+
+    public QName getMustSupportServerChallenge() {
+        return MUST_SUPPORT_SERVER_CHALLENGE;
+    }
+
+    public QName getRequireClientEntropy() {
+        return REQUIRE_CLIENT_ENTROPY;
+    }
+
+    public QName getRequireServerEntropy() {
+        return REQUIRE_SERVER_ENTROPY;
+    }
+
+    public QName getMustSupportIssuedTokens() {
+        return MUST_SUPPORT_ISSUED_TOKENS;
+    }
+
+    public QName getWssUsernameToken10() {
+        return WSS_USERNAME_TOKEN10;
+    }
+
+    public QName getWssUsernameToken11() {
+        return WSS_USERNAME_TOKEN11;
+    }
+
+    public QName getNoPassword() {
+        return NO_PASSWORD;
+    }
+
+    public QName getHashPassword() {
+        return HASH_PASSWORD;
+    }
+
+    public QName getCreated() {
+        return CREATED;
+    }
+
+    public QName getNonce() {
+        return NONCE;
+    }
+
+    public QName getMustSupportRefKeyIdentifier() {
+        return MUST_SUPPORT_REF_KEY_IDENTIFIER;
+    }
+
+    public QName getMustSupportRefIssuerSerial() {
+        return MUST_SUPPORT_REF_ISSUER_SERIAL;
+    }
+
+    public QName getMustSupportRefExternalUri() {
+        return MUST_SUPPORT_REF_EXTERNAL_URI;
+    }
+
+    public QName getMustSupportRefEmbeddedToken() {
+        return MUST_SUPPORT_REF_EMBEDDED_TOKEN;
+    }
+
+    public QName getMustSupportRefThumbprint() {
+        return MUST_SUPPORT_REF_THUMBPRINT;
+    }
+
+    public QName getMustSupportRefEncryptedKey() {
+        return MUST_SUPPORT_REF_ENCRYPTED_KEY;
+    }
+
+    public QName getRequireSignatureConfirmation() {
+        return REQUIRE_SIGNATURE_CONFIRMATION;
+    }
+
+    public QName getWssX509V1Token10() {
+        return WSS_X509_V1_TOKEN_10;
+    }
+
+    public QName getWssX509V3Token10() {
+        return WSS_X509_V3_TOKEN_10;
+    }
+
+    public QName getWssX509Pkcs7Token10() {
+        return WSS_X509_PKCS7_TOKEN_10;
+    }
+
+    public QName getWssX509PkiPathV1Token10() {
+        return WSS_X509_PKI_PATH_V1_TOKEN_10;
+    }
+
+    public QName getWssX509V1Token11() {
+        return WSS_X509_V1_TOKEN_11;
+    }
+
+    public QName getWssX509V3Token11() {
+        return WSS_X509_V3_TOKEN_11;
+    }
+
+    public QName getWssX509Pkcs7Token11() {
+        return WSS_X509_PKCS7_TOKEN_11;
+    }
+
+    public QName getWssX509PkiPathV1Token11() {
+        return WSS_X509_PKI_PATH_V1_TOKEN_11;
+    }
+
+    public QName getRequireKeyIdentifireReference() {
+        return REQUIRE_KEY_IDENTIFIRE_REFERENCE;
+    }
+
+    public QName getRequireIssuerSerialReference() {
+        return REQUIRE_ISSUER_SERIAL_REFERENCE;
+    }
+
+    public QName getRequireEmbeddedTokenReference() {
+        return REQUIRE_EMBEDDED_TOKEN_REFERENCE;
+    }
+
+    public QName getRequireThumbprintReference() {
+        return REQUIRE_THUMBPRINT_REFERENCE;
+    }
+
+    public QName getEncryptBeforeSigning() {
+        return ENCRYPT_BEFORE_SIGNING;
+    }
+
+    public QName getSignBeforeEncrypting() {
+        return SIGN_BEFORE_ENCRYPTING;
+    }
+
+    public QName getEncryptSignature() {
+        return ENCRYPT_SIGNATURE;
+    }
+
+    public QName getProtectTokens() {
+        return PROTECT_TOKENS;
+    }
+
+    public QName getTrust10() {
+        return TRUST_10;
+    }
+
+    public QName getTrust13() {
+        return TRUST_13;
+    }
+}

Propchange: webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SP13Constants.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SPConstants.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SPConstants.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SPConstants.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SPConstants.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,661 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.swssf.policy.secpolicy;
+
+import javax.xml.namespace.QName;
+
+/**
+ * class lent from apache cxf
+ */
+public abstract class SPConstants {
+
+    public static final String P_NS = "http://schemas.xmlsoap.org/ws/2004/09/policy";
+
+    public static final String P_PREFIX = "wsp";
+
+    public static final QName POLICY = new QName(P_NS, "Policy", P_PREFIX);
+
+    public static final QName EMPTY = new QName("");
+
+    public enum Version {
+        SP_V11,
+        SP_V12,
+        SP_V13,
+    }
+
+    public enum Layout {
+        Lax,
+        Strict,
+        LaxTimestampFirst,
+        LaxTimestampLast
+    }
+
+    public enum ProtectionOrder {
+        EncryptBeforeSigning,
+        SignBeforeEncrypting
+    }
+
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public final static String LAYOUT = "Layout";
+
+    /**
+     * Security Header Layout : Strict
+     */
+    public final static String LAYOUT_STRICT = "Strict";
+
+    /**
+     * Security Header Layout : Lax
+     */
+    public final static String LAYOUT_LAX = "Lax";
+
+    /**
+     * Security Header Layout : LaxTimestampFirst
+     */
+    public final static String LAYOUT_LAX_TIMESTAMP_FIRST = "LaxTimestampFirst";
+
+    /**
+     * Security Header Layout : LaxTimestampLast
+     */
+    public final static String LAYOUT_LAX_TIMESTAMP_LAST = "LaxTimestampLast";
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    /**
+     * Protection Order : EncryptBeforeSigning
+     */
+    public final static String ENCRYPT_BEFORE_SIGNING = "EncryptBeforeSigning";
+
+    /**
+     * Protection Order : SignBeforeEncrypting
+     */
+    public final static String SIGN_BEFORE_ENCRYPTING = "SignBeforeEncrypting";
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public final static String ENCRYPT_SIGNATURE = "EncryptSignature";
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public final static String PROTECT_TOKENS = "ProtectTokens";
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public final static String ONLY_SIGN_ENTIRE_HEADERS_AND_BODY = "OnlySignEntireHeadersAndBody";
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public final static String INCLUDE_TIMESTAMP = "IncludeTimestamp";
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public final static String SIGNED_PARTS = "SignedParts";
+
+    public final static String ENCRYPTED_PARTS = "EncryptedParts";
+
+    public final static String SIGNED_ELEMENTS = "SignedElements";
+
+    public final static String ENCRYPTED_ELEMENTS = "EncryptedElements";
+
+    public final static String REQUIRED_ELEMENTS = "RequiredElements";
+
+    public final static String CONTENT_ENCRYPTED_ELEMENTS = "ContentEncryptedElements";
+
+    public final static String REQUIRED_PARTS = "RequiredParts";
+
+    public final static String XPATH_VERSION = "XPathVersion";
+
+    public final static String XPATH_EXPR = "XPath";
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    // X509 Token types 
+
+    public final static String X509_TOKEN = "X509Token";
+
+    public final static String WSS_X509_V1_TOKEN10 = "WssX509V1Token10";
+
+    public final static String WSS_X509_V3_TOKEN10 = "WssX509V3Token10";
+
+    public final static String WSS_X509_PKCS7_TOKEN10 = "WssX509Pkcs7Token10";
+
+    public final static String WSS_X509_PKI_PATH_V1_TOKEN10 = "WssX509PkiPathV1Token10";
+
+    public final static String WSS_X509_V1_TOKEN11 = "WssX509V1Token11";
+
+    public final static String WSS_X509_V3_TOKEN11 = "WssX509V3Token11";
+
+    public final static String WSS_X509_PKCS7_TOKEN11 = "WssX509Pkcs7Token11";
+
+    public final static String WSS_X509_PKI_PATH_V1_TOKEN11 = "WssX509PkiPathV1Token11";
+
+
+    public final static String USERNAME_TOKEN = "UsernameToken";
+
+    public final static String USERNAME_TOKEN10 = "WssUsernameToken10";
+
+    public final static String USERNAME_TOKEN11 = "WssUsernameToken11";
+
+    public static final String SAML_TOKEN = "SamlToken";
+
+    public static final String SAML_11_TOKEN_10 = "WssSamlV11Token10";
+
+    public static final String SAML_11_TOKEN_11 = "WssSamlV11Token11";
+
+    public static final String SAML_20_TOKEN_11 = "WssSamlV20Token11";
+
+
+    public static final String KEYVALUE_TOKEN = "KeyValueToken";
+
+
+    public final static String TRANSPORT_TOKEN = "TransportToken";
+
+    public final static String HTTPS_TOKEN = "HttpsToken";
+
+    public final static String REQUIRE_CLIENT_CERTIFICATE = "RequireClientCertificate";
+
+    public final static String HTTP_BASIC_AUTHENTICATION = "HttpBasicAuthentication";
+
+    public final static String HTTP_DIGEST_AUTHENTICATION = "HttpDigestAuthentication";
+
+    public final static String SECURITY_CONTEXT_TOKEN = "SecurityContextToken";
+
+    public final static String SECURE_CONVERSATION_TOKEN = "SecureConversationToken";
+
+    public final static String ISSUED_TOKEN = "IssuedToken";
+
+
+    public final static String SIGNATURE_TOKEN = "SignatureToken";
+
+    public final static String ENCRYPTION_TOKEN = "EncryptionToken";
+
+    public final static String PROTECTION_TOKEN = "ProtectionToken";
+
+    public final static String INITIATOR_TOKEN = "InitiatorToken";
+
+    public final static String RECIPIENT_TOKEN = "RecipientToken";
+
+
+    public final static String SUPPORTING_TOKENS = "SupportingTokens";
+
+    public final static String SIGNED_SUPPORTING_TOKENS = "SignedSupportingTokens";
+
+    public final static String ENDORSING_SUPPORTING_TOKENS = "EndorsingSupportingTokens";
+
+    public final static String SIGNED_ENDORSING_SUPPORTING_TOKENS = "SignedEndorsingSupportingTokens";
+
+    public final static String ENCRYPTED_SUPPORTING_TOKENS = "EncryptedSupportingTokens";
+
+    public final static String SIGNED_ENCRYPTED_SUPPORTING_TOKENS = "SignedEncryptedSupportingTokens";
+
+    public final static String ENDORSING_ENCRYPTED_SUPPORTING_TOKENS = "EndorsingEncryptedSupportingTokens";
+
+    public final static String SIGNED_ENDORSING_ENCRYPTED_SUPPORTING_TOKENS = "SignedEndorsingEncryptedSupportingTokens";
+
+    public enum SupportingTokenType {
+        SUPPORTING,
+        ENDORSING,
+        SIGNED,
+        SIGNED_ENDORSING,
+        SIGNED_ENCRYPTED,
+        ENCRYPTED,
+        ENDORSING_ENCRYPTED,
+        SIGNED_ENDORSING_ENCRYPTED,
+    }
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+
+    public final static String ALGO_SUITE = "AlgorithmSuite";
+
+
+    // /
+    // /Algorithm Suites
+    // /
+    public final static String ALGO_SUITE_BASIC256 = "Basic256";
+
+    public final static String ALGO_SUITE_BASIC192 = "Basic192";
+
+    public final static String ALGO_SUITE_BASIC128 = "Basic128";
+
+    public final static String ALGO_SUITE_TRIPLE_DES = "TripleDes";
+
+    public final static String ALGO_SUITE_BASIC256_RSA15 = "Basic256Rsa15";
+
+    public final static String ALGO_SUITE_BASIC192_RSA15 = "Basic192Rsa15";
+
+    public final static String ALGO_SUITE_BASIC128_RSA15 = "Basic128Rsa15";
+
+    public final static String ALGO_SUITE_TRIPLE_DES_RSA15 = "TripleDesRsa15";
+
+    public final static String ALGO_SUITE_BASIC256_SHA256 = "Basic256Sha256";
+
+    public final static String ALGO_SUITE_BASIC192_SHA256 = "Basic192Sha256";
+
+    public final static String ALGO_SUITE_BASIC128_SHA256 = "Basic128Sha256";
+
+    public final static String ALGO_SUITE_TRIPLE_DES_SHA256 = "TripleDesSha256";
+
+    public final static String ALGO_SUITE_BASIC256_SHA256_RSA15 = "Basic256Sha256Rsa15";
+
+    public final static String ALGO_SUITE_BASIC192_SHA256_RSA15 = "Basic192Sha256Rsa15";
+
+    public final static String ALGO_SUITE_BASIC128_SHA256_RSA15 = "Basic128Sha256Rsa15";
+
+    public final static String ALGO_SUITE_TRIPLE_DES_SHA256_RSA15 = "TripleDesSha256Rsa15";
+
+    // /
+    // /Algorithms
+    // /
+    public final static String HMAC_SHA1 = "http://www.w3.org/2000/09/xmldsig#hmac-sha1";
+
+    public final static String RSA_SHA1 = "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
+
+    public final static String SHA1 = "http://www.w3.org/2000/09/xmldsig#sha1";
+
+    public final static String SHA256 = "http://www.w3.org/2001/04/xmlenc#sha256";
+
+    public final static String SHA512 = "http://www.w3.org/2001/04/xmlenc#sha512";
+
+    public final static String AES128 = "http://www.w3.org/2001/04/xmlenc#aes128-cbc";
+
+    public final static String AES192 = "http://www.w3.org/2001/04/xmlenc#aes192-cbc";
+
+    public final static String AES256 = "http://www.w3.org/2001/04/xmlenc#aes256-cbc";
+
+    public final static String TRIPLE_DES = "http://www.w3.org/2001/04/xmlenc#tripledes-cbc";
+
+    public final static String KW_AES128 = "http://www.w3.org/2001/04/xmlenc#kw-aes128";
+
+    public final static String KW_AES192 = "http://www.w3.org/2001/04/xmlenc#kw-aes192";
+
+    public final static String KW_AES256 = "http://www.w3.org/2001/04/xmlenc#kw-aes256";
+
+    public final static String KW_TRIPLE_DES = "http://www.w3.org/2001/04/xmlenc#kw-tripledes";
+
+    public final static String KW_RSA_OAEP = "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p";
+
+    public final static String KW_RSA15 = "http://www.w3.org/2001/04/xmlenc#rsa-1_5";
+
+    public final static String P_SHA1 = "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1";
+
+    public final static String P_SHA1_L128 = "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1";
+
+    public final static String P_SHA1_L192 = "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1";
+
+    public final static String P_SHA1_L256 = "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1";
+
+    public final static String XPATH = "http://www.w3.org/TR/1999/REC-xpath-19991116";
+
+    public final static String XPATH20 = "http://www.w3.org/2002/06/xmldsig-filter2";
+
+    public final static String C14N = "http://www.w3.org/2001/10/xml-c14n#";
+
+    public final static String EX_C14N = "http://www.w3.org/2001/10/xml-exc-c14n#";
+
+    public final static String SNT = "http://www.w3.org/TR/soap12-n11n";
+
+    public final static String STRT10 = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#STR-Transform";
+
+    // /////////////////////////////////////////////////////////////////////////////////////////////
+
+    public static final String INCLUSIVE_C14N = "InclusiveC14N";
+
+    public static final String SOAP_NORMALIZATION_10 = "SoapNormalization10";
+
+    public static final String STR_TRANSFORM_10 = "STRTransform10";
+
+    public static final String XPATH10 = "XPath10";
+
+    public static final String XPATH_FILTER20 = "XPathFilter20";
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public final static String ATTR_INCLUDE_TOKEN = "IncludeToken";
+
+    public static final String INCLUDE_TOKEN_NEVER_SUFFIX = "/IncludeToken/Never";
+
+    public static final String INCLUDE_TOKEN_ONCE_SUFFIX = "/IncludeToken/Once";
+
+    public static final String INCLUDE_TOEKN_ALWAYS_TO_RECIPIENT_SUFFIX = "/IncludeToken/AlwaysToRecipient";
+
+    public static final String INCLUDE_TOEKN_ALWAYS_TO_INITIATOR_SUFFIX = "/IncludeToken/AlwaysToInitiator";
+
+    public static final String INCLUDE_TOEKN_ALWAYS_SUFFIX = "/IncludeToken/Always";
+
+    public enum IncludeTokenType {
+        INCLUDE_TOKEN_NEVER,
+        INCLUDE_TOKEN_ONCE,
+        INCLUDE_TOKEN_ALWAYS_TO_RECIPIENT,
+        INCLUDE_TOKEN_ALWAYS_TO_INITIATOR,
+        INCLUDE_TOKEN_ALWAYS
+    }
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public static final String TRANSPORT_BINDING = "TransportBinding";
+
+    public static final String ASYMMETRIC_BINDING = "AsymmetricBinding";
+
+    public static final String SYMMETRIC_BINDING = "SymmetricBinding";
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public static final String REQUIRE_KEY_IDENTIFIRE_REFERENCE = "RequireKeyIdentifierReference";
+
+    public static final String REQUIRE_ISSUER_SERIAL_REFERENCE = "RequireIssuerSerialReference";
+
+    public static final String REQUIRE_EMBEDDED_TOKEN_REFERENCE = "RequireEmbeddedTokenReference";
+
+    public static final String REQUIRE_THUMBPRINT_REFERENCE = "RequireThumbprintReference";
+
+    public static final String REQUIRE_SIGNATURE_CONFIRMATION = "RequireSignatureConfirmation";
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public static final String MUST_SUPPORT_REF_KEY_IDENTIFIER = "MustSupportRefKeyIdentifier";
+
+    public static final String MUST_SUPPORT_REF_ISSUER_SERIAL = "MustSupportRefIssuerSerial";
+
+    public static final String MUST_SUPPORT_REF_EXTERNAL_URI = "MustSupportRefExternalURI";
+
+    public static final String MUST_SUPPORT_REF_EMBEDDED_TOKEN = "MustSupportRefEmbeddedToken";
+
+    public static final String MUST_SUPPORT_REF_THUMBPRINT = "MustSupportRefThumbprint";
+
+    public static final String MUST_SUPPORT_REF_ENCRYPTED_KEY = "MustSupportRefEncryptedkey";
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public static final String WSS10 = "Wss10";
+
+    public static final String WSS11 = "Wss11";
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public static final String TRUST_10 = "Trust10";
+
+    public static final String TRUST_13 = "Trust13";
+
+    public static final String MUST_SUPPORT_CLIENT_CHALLENGE = "MustSupportClientChanllenge";
+
+    public static final String MUST_SUPPORT_SERVER_CHALLENGE = "MustSupportServerChanllenge";
+
+    public static final String REQUIRE_CLIENT_ENTROPY = "RequireClientEntropy";
+
+    public static final String REQUIRE_SERVER_ENTROPY = "RequireServerEntropy";
+
+    public static final String MUST_SUPPORT_ISSUED_TOKENS = "MustSupportIssuedTokens";
+
+    public static final String REQUIRE_REQUEST_SECURITY_TOKEN_COLLECTION = "RequireRequestSecurityTokenCollection";
+
+    public static final String REQUIRE_APPLIES_TO = "RequireAppliesTo";
+
+    public static final String ISSUER = "Issuer";
+
+    public static final String ISSUER_NAME = "IssuerName";
+
+    public static final String REQUIRE_DERIVED_KEYS = "RequireDerivedKeys";
+
+    public static final String REQUIRE_IMPLIED_DERIVED_KEYS = "RequireImpliedDerivedKeys";
+
+    public static final String REQUIRE_EXPLICIT_DERIVED_KEYS = "RequireExplicitDerivedKeys";
+
+    public static final String REQUIRE_EXTERNAL_URI_REFERNCE = "RequireExternalUriReference";
+
+    public static final String REQUIRE_EXTERNAL_REFERNCE = "RequireExternalReference";
+
+    public static final String REQUIRE_INTERNAL_REFERNCE = "RequireInternalReference";
+
+    public static final String REQUEST_SECURITY_TOKEN_TEMPLATE = "RequestSecurityTokenTemplate";
+
+    public static final String SC10_SECURITY_CONTEXT_TOKEN = "SC10SecurityContextToken";
+
+    public static final String BOOTSTRAP_POLICY = "BootstrapPolicy";
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public static final String HEADER = "Header";
+
+    public static final String BODY = "Body";
+
+    public static final String ATTACHMENTS = "Attachments";
+
+    public static final QName NAME = new QName("Name");
+
+    public static final QName NAMESPACE = new QName("Namespace");
+
+    ////////////////////////////////////////////////////////////////////////////////////////////////
+
+    public static final String NO_PASSWORD = "NoPassword";
+
+    public static final String HASH_PASSWORD = "HashPassword";
+
+    public static final String CREATED = "Created";
+
+    public static final String NONCE = "Nonce";
+
+    public abstract Version getVersion();
+
+    public abstract String getNamespace();
+
+    public abstract QName getAttrXpathVersion();
+
+    public abstract QName getXpath();
+
+    public abstract QName getHeader();
+
+    public abstract QName getBody();
+
+    public abstract QName getAttachments();
+
+    public abstract QName getIssuer();
+
+    public abstract QName getIssuerName();
+
+    public abstract QName getRequestSecurityTokenTemplate();
+
+    public abstract QName getRequireExternalRefernce();
+
+    public abstract QName getRequireInternalRefernce();
+
+    public abstract QName getLax();
+
+    public abstract QName getStrict();
+
+    public abstract QName getLaxtsfirst();
+
+    public abstract QName getLaxtslast();
+
+    public abstract QName getRequireExternalUriRefernce();
+
+    public abstract QName getRequireExplicitDerivedKeys();
+
+    public abstract QName getRequireImpliedDerivedKeys();
+
+    public abstract QName getRequireDerivedKeys();
+
+    public abstract QName getRequireAppliesTo();
+
+    public abstract QName getRequireRequestSecurityTokenCollection();
+
+    public abstract QName getSc10SecurityContextToken();
+
+    public abstract QName getBootstrapPolicy();
+
+    public abstract QName getRequireClientCertificate();
+
+    public abstract QName getHttpBasicAuthentication();
+
+    public abstract QName getHttpDigestAuthentication();
+
+    public abstract QName getWSS10();
+
+    public abstract QName getWSS11();
+
+    public abstract QName getAlgorithmSuite();
+
+    public abstract QName getAsymmetricBinding();
+
+    public abstract QName getEncryptionToken();
+
+    public abstract QName getHttpsToken();
+
+    public abstract QName getInitiatorToken();
+
+    public abstract QName getIssuedToken();
+
+    public abstract QName getIncludeToken();
+
+    public abstract QName getLayout();
+
+    public abstract QName getProtectionToken();
+
+    public abstract QName getRecipientToken();
+
+    public abstract QName getRequiredElements();
+
+    public abstract QName getSecureConversationToken();
+
+    public abstract QName getSecurityContextToken();
+
+    public abstract QName getSignatureToken();
+
+    public abstract QName getSignedElements();
+
+    public abstract QName getEncryptedElements();
+
+    public abstract QName getSignedParts();
+
+    public abstract QName getEncryptedParts();
+
+    public abstract QName getIncludeTimestamp();
+
+    public abstract QName getEncryptBeforeSigning();
+
+    public abstract QName getSignBeforeEncrypting();
+
+    public abstract QName getEncryptSignature();
+
+    public abstract QName getProtectTokens();
+
+    public abstract QName getOnlySignEntireHeadersAndBody();
+
+    public abstract QName getSymmetricBinding();
+
+    public abstract QName getTransportBinding();
+
+    public abstract QName getTransportToken();
+
+    public abstract QName getUserNameToken();
+
+    public abstract QName getX509Token();
+
+    public abstract QName getSamlToken();
+
+    public abstract QName getSupportingTokens();
+
+    public abstract QName getSignedSupportingTokens();
+
+    public abstract QName getEndorsingSupportingTokens();
+
+    public abstract QName getSignedEndorsingSupportingTokens();
+
+    public abstract QName getEncryptedSupportingTokens();
+
+    public abstract QName getSignedEncryptedSupportingTokens();
+
+    public abstract QName getEndorsingEncryptedSupportingTokens();
+
+    public abstract QName getSignedEndorsingEncryptedSupportingTokens();
+
+    //For X509 tokens
+
+    public abstract QName getRequiredDerivedKeys();
+
+    public abstract QName getMustSupportClientChallenge();
+
+    public abstract QName getMustSupportServerChallenge();
+
+    public abstract QName getRequireClientEntropy();
+
+    public abstract QName getRequireServerEntropy();
+
+    public abstract QName getMustSupportIssuedTokens();
+
+    public abstract QName getWssUsernameToken10();
+
+    public abstract QName getWssUsernameToken11();
+
+    public abstract QName getNoPassword();
+
+    public abstract QName getHashPassword();
+
+    public abstract QName getCreated();
+
+    public abstract QName getNonce();
+
+    public abstract QName getMustSupportRefKeyIdentifier();
+
+    public abstract QName getMustSupportRefIssuerSerial();
+
+    public abstract QName getMustSupportRefExternalUri();
+
+    public abstract QName getMustSupportRefEmbeddedToken();
+
+    public abstract QName getMustSupportRefThumbprint();
+
+    public abstract QName getMustSupportRefEncryptedKey();
+
+    public abstract QName getRequireSignatureConfirmation();
+
+    public abstract QName getWssX509V1Token10();
+
+    public abstract QName getWssX509V3Token10();
+
+    public abstract QName getWssX509Pkcs7Token10();
+
+    public abstract QName getWssX509PkiPathV1Token10();
+
+    public abstract QName getWssX509V1Token11();
+
+    public abstract QName getWssX509V3Token11();
+
+    public abstract QName getWssX509Pkcs7Token11();
+
+    public abstract QName getWssX509PkiPathV1Token11();
+
+    public abstract QName getRequireKeyIdentifireReference();
+
+    public abstract QName getRequireIssuerSerialReference();
+
+    public abstract QName getRequireEmbeddedTokenReference();
+
+    public abstract QName getRequireThumbprintReference();
+
+    public abstract QName getTrust10();
+
+    public abstract QName getTrust13();
+
+    public abstract IncludeTokenType getInclusionFromAttributeValue(String value);
+
+    public abstract String getAttributeValueFromInclusion(IncludeTokenType value);
+}

Propchange: webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/SPConstants.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/WSSPolicyException.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/WSSPolicyException.java?rev=1172285&view=auto
==============================================================================
--- webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/WSSPolicyException.java (added)
+++ webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/WSSPolicyException.java Sun Sep 18 13:51:23 2011
@@ -0,0 +1,39 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.swssf.policy.secpolicy;
+
+import org.swssf.ext.WSSecurityException;
+
+/**
+ * class lent from apache cxf
+ */
+public class WSSPolicyException extends WSSecurityException {
+
+    private static final long serialVersionUID = 5904800255533588133L;
+
+    public WSSPolicyException(String message, Throwable e) {
+        super(message, e);
+    }
+
+    public WSSPolicyException(String message) {
+        super(message);
+    }
+
+}

Propchange: webservices/wss4j/branches/swssf/streaming-ws-policy/src/main/java/org/swssf/policy/secpolicy/WSSPolicyException.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision



Mime
View raw message