View Javadoc

1   /*
2    * Copyright 2008 Members of the EGEE Collaboration.
3    * Copyright 2008 University Corporation for Advanced Internet Development, Inc.
4    *
5    * Licensed under the Apache License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    *
9    *     http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.opensaml.ws.wstrust;
18  
19  import javax.xml.namespace.QName;
20  
21  /**
22   * The WS-Trust 1.3 constants.
23   * 
24   * @see "WS-Trust 1.3 Specification"
25   * 
26   */
27  public final class WSTrustConstants {
28  
29      //
30      // WS-Trust
31      //
32      
33      /** WS-Trust version. */
34      public static final String WST_VERSION= "1.3";
35  
36      /** WS-Trust namespace prefix. */
37      public static final String WST_PREFIX= "wst";
38  
39      /** WS-Trust 1.3 namespace. */
40      public static final String WST_NS= "http://docs.oasis-open.org/ws-sx/ws-trust/200512";
41  
42      //
43      // WS-Addressing
44      //
45      
46      //* WS-Addressing RequestSecurityToken (RST) action URIs.
47      
48      /** WS-Addressing RequestSecurityToken (RST) action URI 'Issue'. */
49      public static final String WSA_ACTION_RST_ISSUE= WST_NS + "/RST" + "/Issue";
50  
51      /** WS-Addressing RequestSecurityToken (RST) action URI 'Cancel'. */
52      public static final String WSA_ACTION_RST_CANCEL= WST_NS + "/RST" + "/Cancel";
53  
54      /** WS-Addressing RequestSecurityToken (RST) action URI 'STSCancel'. */
55      public static final String WSA_ACTION_RST_STSCANCEL= WST_NS + "/RST" + "/STSCancel";
56  
57      /** WS-Addressing RequestSecurityToken (RST) action URI 'Validate'. */
58      public static final String WSA_ACTION_RST_VALIDATE= WST_NS + "/RST" + "/Validate";
59  
60      /** WS-Addressing RequestSecurityToken (RST) action URI 'Renew'. */
61      public static final String WSA_ACTION_RST_RENEW= WST_NS + "/RST" + "/Renew";
62      
63      /** WS-Addressing RequestSecurityToken (RST) action URI 'KET'. */
64      public static final String WSA_ACTION_RST_KET= WST_NS + "/RST" + "/KET";
65      
66  
67      // WS-Addressing RequestSecurityTokenResponse (RSTR) action URIs.
68      
69      /** WS-Addressing RequestSecurityTokenResponse (RSTR) action URI 'Issue'. */
70      public static final String WSA_ACTION_RSTR_ISSUE= WST_NS + "/RSTR" + "/Issue";
71  
72      /** WS-Addressing RequestSecurityTokenResponse (RSTR) action URI 'Cancel'. */
73      public static final String WSA_ACTION_RSTR_CANCEL= WST_NS + "/RSTR" + "/Cancel";
74      
75      /** WS-Addressing RequestSecurityTokenResponse (RSTR) action URI 'CancelFinal'. */
76      public static final String WSA_ACTION_RSTR_CANCEL_FINAL= WST_NS + "/RSTR" + "/CancelFinal";
77  
78      /** WS-Addressing RequestSecurityTokenResponse (RSTR) action URI 'Validate'. */
79      public static final String WSA_ACTION_RSTR_VALIDATE= WST_NS + "/RSTR" + "/Validate";
80  
81      /** WS-Addressing RequestSecurityTokenResponse (RSTR) action URI 'ValidateFinal'. */
82      public static final String WSA_ACTION_RSTR_VALIDATE_FINAL= WST_NS + "/RSTR" + "/ValidateFinal";
83  
84      /** WS-Addressing RequestSecurityTokenResponse (RSTR) action URI 'Renew'. */
85      public static final String WSA_ACTION_RSTR_RENEW= WST_NS + "/RSTR" + "/Renew";
86      
87      /** WS-Addressing RequestSecurityTokenResponse (RSTR) action URI 'RenewFinal'. */
88      public static final String WSA_ACTION_RSTR_RENEW_FINAL= WST_NS + "/RSTR" + "/RenewFinal";
89      
90      /** WS-Addressing RequestSecurityTokenResponse (RSTR) action URI 'KET'. */
91      public static final String WSA_ACTION_RSTR_KET= WST_NS + "/RSTR" + "/KET";
92      
93      /** WS-Addressing RequestSecurityTokenResponse (RSTR) action URI 'KETFinal'. */
94      public static final String WSA_ACTION_RSTR_KET_FINAL= WST_NS + "/RSTR" + "/KETFinal";
95      
96  
97      // WS-Addressing RequestSecurityTokenResponseCollection (RSTRC) action URIs.
98      
99      /** WS-Addressing RequestSecurityTokenResponseCollection (RSTRC) action URI 'Issue'. */
100     public static final String WSA_ACTION_RSTRC_ISSUE_FINAL= WST_NS + "/RSTRC" + "/IssueFinal";
101     
102     
103     // SOAP fault codes.
104     
105     /** WS-Trust SOAP fault code: "wst:InvalidRequest". */
106     public static final QName SOAP_FAULT_INVALID_REQUEST =
107         new QName(WST_NS, "InvalidRequest", WST_PREFIX);
108     
109     /** WS-Trust SOAP fault code: "wst:FailedAuthentication". */
110     public static final QName SOAP_FAULT_FAILED_AUTHENTICATION = 
111         new QName(WST_NS, "FailedAuthentication", WST_PREFIX);
112     
113     /** WS-Trust SOAP fault code: "wst:RequestFailed". */
114     public static final QName SOAP_FAULT_REQUEST_FAILED = 
115         new QName(WST_NS, "RequestFailed", WST_PREFIX);
116     
117     /** WS-Trust SOAP fault code: "wst:InvalidSecurityToken". */
118     public static final QName SOAP_FAULT_INVALID_SECURITY_TOKEN = 
119         new QName(WST_NS, "InvalidSecurityToken", WST_PREFIX);
120     
121     /** WS-Trust SOAP fault code: "wst:AuthenticationBadElements". */
122     public static final QName SOAP_FAULT_AUTHENTICATION_BAD_ELEMENTS =
123         new QName(WST_NS, "AuthenticationBadElements", WST_PREFIX);
124     
125     /** WS-Trust SOAP fault code: "wst:BadRequest". */
126     public static final QName SOAP_FAULT_BAD_REQUEST =
127         new QName(WST_NS, "BadRequest", WST_PREFIX);
128     
129     /** WS-Trust SOAP fault code: "wst:ExpiredData". */
130     public static final QName SOAP_FAULT_EXPIRED_DATA = 
131         new QName(WST_NS, "ExpiredData", WST_PREFIX);
132     
133     /** WS-Trust SOAP fault code: "wst:InvalidTimeRange". */
134     public static final QName SOAP_FAULT_INVALID_TIME_RANGE =
135         new QName(WST_NS, "InvalidTimeRange", WST_PREFIX);
136     
137     /** WS-Trust SOAP fault code: "wst:InvalidScope". */
138     public static final QName SOAP_FAULT_INVALID_SCOPE =
139         new QName(WST_NS, "InvalidScope", WST_PREFIX);
140     
141     /** WS-Trust SOAP fault code: "wst:RenewNeeded". */
142     public static final QName SOAP_FAULT_RENEW_NEEDED =
143         new QName(WST_NS, "RenewNeeded", WST_PREFIX);
144     
145     /** WS-Trust SOAP fault code: "wst:UnableToRenew". */
146     public static final QName SOAP_FAULT_UNABLE_TO_RENEW =
147         new QName(WST_NS, "UnableToRenew", WST_PREFIX);
148     
149     /** Constructor. Private to prevent instantiation. */
150     private WSTrustConstants() { }
151 
152 }