View Javadoc
1   /**
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements. See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership. The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License. You may obtain a copy of the License at
9    *
10   * http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied. See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.wss4j.policy;
20  
21  import javax.xml.namespace.QName;
22  
23  public class SP13Constants extends SP12Constants {
24  
25      private static SP13Constants sp13Constants;
26  
27      protected SP13Constants() {
28          super();
29      }
30  
31      public static synchronized SP13Constants getInstance() {
32          if (sp13Constants == null) {
33              sp13Constants = new SP13Constants();
34          }
35          return sp13Constants;
36      }
37  
38      public static final String SP_NS = "http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200802";
39      public static final String SP_PREFIX = "sp13";
40  
41      public static final QName CONTENT_SIGNATURE_TRANSFORM = new QName(
42              SP13Constants.SP_NS, SPConstants.CONTENT_SIGNATURE_TRANSFORM, SP13Constants.SP_PREFIX);
43  
44      public static final QName ATTACHMENT_COMPLETE_SIGNATURE_TRANSFORM = new QName(
45              SP13Constants.SP_NS, SPConstants.ATTACHMENT_COMPLETE_SIGNATURE_TRANSFORM, SP13Constants.SP_PREFIX);
46  
47      public static final QName XPATH2_EXPR = new QName(
48              SP13Constants.SP_NS, SPConstants.XPATH2_EXPR, SP13Constants.SP_PREFIX);
49  
50      public static final QName CREATED = new QName(
51              SP13Constants.SP_NS, SPConstants.CREATED, SP13Constants.SP_PREFIX);
52  
53      public static final QName NONCE = new QName(
54              SP13Constants.SP_NS, SPConstants.NONCE, SP13Constants.SP_PREFIX);
55  
56      public static final QName SCOPE_POLICY_15 = new QName(
57              SP13Constants.SP_NS, SPConstants.SCOPE_POLICY_15, SP13Constants.SP_PREFIX);
58  
59      public static final QName MUST_SUPPORT_INTERACTIVE_CHALLENGE = new QName(
60              SP13Constants.SP_NS, SPConstants.MUST_SUPPORT_INTERACTIVE_CHALLENGE, SP13Constants.SP_PREFIX);
61  
62      @Override
63      public QName getContentSignatureTransform() {
64          return CONTENT_SIGNATURE_TRANSFORM;
65      }
66  
67      @Override
68      public QName getAttachmentCompleteSignatureTransform() {
69          return ATTACHMENT_COMPLETE_SIGNATURE_TRANSFORM;
70      }
71  
72      @Override
73      public QName getXPath2Expression() {
74          return XPATH2_EXPR;
75      }
76  
77      @Override
78      public QName getCreated() {
79          return CREATED;
80      }
81  
82      @Override
83      public QName getNonce() {
84          return NONCE;
85      }
86  
87      @Override
88      public QName getScopePolicy15() {
89          return SCOPE_POLICY_15;
90      }
91  
92      @Override
93      public QName getMustSupportInteractiveChallenge() {
94          return MUST_SUPPORT_INTERACTIVE_CHALLENGE;
95      }
96  }