01: /*
02: * WSSAssertion.java
03: *
04: * Created on September 5, 2006, 12:03 PM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package com.sun.xml.wss.impl;
11:
12: import java.util.HashSet;
13: import java.util.Set;
14:
15: /**
16: *
17: * @author sk112103
18: */
19: public class WSSAssertion {
20:
21: Set<String> requiredPropSet;
22: String version = "1.0";
23:
24: /** Creates a new instance of WSSAssertion */
25: public WSSAssertion(Set<String> props, String version) {
26: requiredPropSet = props;
27: //fix for wsit issue# 510
28: if (requiredPropSet == null) {
29: requiredPropSet = new HashSet<String>();
30: }
31: this .version = version;
32: }
33:
34: public final static String MUSTSUPPORT_REF_THUMBPRINT = "MustSupportRefThumbprint";
35: public final static String MUSTSUPPORT_REF_ENCRYPTED_KEY = "MustSupportRefEncryptedKey";
36: public final static String REQUIRE_SIGNATURE_CONFIRMATION = "RequireSignatureConfirmation";
37: public static final String MUST_SUPPORT_CLIENT_CHALLENGE = "MustSupportClientChallenge";
38: public static final String MUST_SUPPORT_SERVER_CHALLENGE = "MustSupportServerChallenge";
39: public static final String REQUIRE_CLIENT_ENTROPY = "RequireClientEntropy";
40: public static final String REQUIRE_SERVER_ENTROPY = "RequireServerEntropy";
41: public static final String MUST_SUPPORT_ISSUED_TOKENS = "MustSupportIssuedTokens";
42: public static final String MUSTSUPPORT_REF_ISSUER_SERIAL = "MustSupportRefIssuerSerial";
43: public static final String REQUIRE_EXTERNAL_URI_REFERENCE = "RequireExternalUriReference";
44: public static final String REQUIRE_EMBEDDED_TOKEN_REF = "RequireEmbeddedTokenReference";
45: public static final String MUST_SUPPORT_REF_KEYIDENTIFIER = "MustSupportRefKeyIdentifier";
46:
47: /**
48: * List of WSS properties
49: * @return {@link java.util.Set}
50: */
51: public Set getRequiredProperties() {
52: return requiredPropSet;
53: }
54:
55: /**
56: * WSS version
57: * @return 1.0
58: */
59: public String getType() {
60: return version;
61: }
62:
63: }
|