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.stax.securityToken;
20  
21  import org.apache.xml.security.stax.securityToken.SecurityTokenConstants;
22  
23  public class WSSecurityTokenConstants extends SecurityTokenConstants {
24  
25      public static final TokenUsage TOKENUSAGE_MAIN_SIGNATURE = new TokenUsage("MainSignature");
26      public static final TokenUsage TOKENUSAGE_MAIN_ENCRYPTION = new TokenUsage("MainEncryption");
27      public static final TokenUsage TOKENUSAGE_SUPPORTING_TOKENS = new TokenUsage("SupportingTokens");
28      public static final TokenUsage TOKENUSAGE_SIGNED_SUPPORTING_TOKENS = new TokenUsage("SignedSupportingTokens");
29      public static final TokenUsage TOKENUSAGE_ENDORSING_SUPPORTING_TOKENS =
30          new TokenUsage("EndorsingSupportingTokens");
31      public static final TokenUsage TOKENUSAGE_SIGNED_ENDORSING_SUPPORTING_TOKENS =
32          new TokenUsage("SignedEndorsingSupportingTokens");
33      public static final TokenUsage TOKENUSAGE_SIGNED_ENCRYPTED_SUPPORTING_TOKENS =
34          new TokenUsage("SignedEncryptedSupportingTokens");
35      public static final TokenUsage TOKENUSAGE_ENCRYPTED_SUPPORTING_TOKENS =
36          new TokenUsage("EncryptedSupportingTokens");
37      public static final TokenUsage TOKENUSAGE_ENDORSING_ENCRYPTED_SUPPORTING_TOKENS =
38          new TokenUsage("EndorsingEncryptedSupportingTokens");
39      public static final TokenUsage TOKENUSAGE_SIGNED_ENDORSING_ENCRYPTED_SUPPORTING_TOKENS =
40          new TokenUsage("SignedEndorsingEncryptedSupportingTokens");
41  
42      public static final KeyIdentifier KEYIDENTIFIER_SECURITY_TOKEN_DIRECT_REFERENCE =
43          new KeyIdentifier("SecurityTokenDirectReference");
44      public static final KeyIdentifier KEYIDENTIFIER_THUMBPRINT_IDENTIFIER =
45          new KeyIdentifier("ThumbprintIdentifier");
46      public static final KeyIdentifier KEYIDENTIFIER_ENCRYPTED_KEY_SHA1_IDENTIFIER =
47          new KeyIdentifier("EncryptedKeySha1Identifier");
48      public static final KeyIdentifier KEYIDENTIFIER_KERBEROS_SHA1_IDENTIFIER =
49          new KeyIdentifier("KerberosSha1Identifier");
50      public static final KeyIdentifier KEYIDENTIFIER_EMBEDDED_KEY_IDENTIFIER_REF =
51          new KeyIdentifier("EmbeddedKeyIdentifierRef");
52      public static final KeyIdentifier KEYIDENTIFIER_USERNAME_TOKEN_REFERENCE =
53          new KeyIdentifier("UsernameTokenReference");
54      public static final KeyIdentifier KEYIDENTIFIER_EXTERNAL_REFERENCE =
55          new KeyIdentifier("ExternalReference");
56  
57      public static final TokenType USERNAME_TOKEN = new TokenType("UsernameToken");
58      public static final TokenType SECURITY_CONTEXT_TOKEN = new TokenType("SecurityContextToken");
59      public static final TokenType SAML_10_TOKEN = new TokenType("Saml10Token");
60      public static final TokenType SAML_11_TOKEN = new TokenType("Saml11Token");
61      public static final TokenType SAML_20_TOKEN = new TokenType("Saml20Token");
62      public static final TokenType ISSUED_TOKEN = new TokenType("IssuedToken");
63      public static final TokenType SECURE_CONVERSATION_TOKEN = new TokenType("SecureConversationToken");
64      public static final TokenType HTTPS_TOKEN = new TokenType("HttpsToken");
65      public static final TokenType KERBEROS_TOKEN = new TokenType("KerberosToken");
66      public static final TokenType SPNEGO_CONTEXT_TOKEN = new TokenType("SpnegoContextToken");
67      public static final TokenType REL_TOKEN = new TokenType("RelToken");
68  }