KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > websvc > wsitmodelext > security > proprietary > ProprietarySecurityPolicyAttribute


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.websvc.wsitmodelext.security.proprietary;
21
22 import org.netbeans.modules.xml.xam.dom.Attribute;
23
24 /**
25  *
26  * @author Martin Grebac
27  */

28 public enum ProprietarySecurityPolicyAttribute implements Attribute {
29         VISIBILITY("visibility"), //NOI18N
30
DEFAULT("default"), //NOI18N
31
ENCRYPTISSUEDKEY("encryptIssuedKey"), //NOI18N
32
ENCRYPTISSUEDTOKEN("encryptIssuedToken"), //NOI18N
33
ENDPOINT("endpoint"), //NOI18N
34
METADATA("metadata"), //NOI18N
35
WSDLLOCATION("wsdlLocation"), //NOI18N
36
SERVICENAME("serviceName"), //NOI18N
37
PORTNAME("portName"), //NOI18N
38
NAMESPACE("namespace"), //NOI18N
39
TIMEOUT("timeout"), //NOI18N
40
REQUIRECANCELSCT("requireCancelSCT"), //NOI18N
41
RENEWEXPIREDSCT("renewExpiredSCT"), //NOI18N
42
LOCATION("location"), //NOI18N
43
ALIAS("alias"), //NOI18N
44
STSALIAS("stsalias"), //NOI18N
45
PEERALIAS("peeralias"), //NOI18N
46
TYPE("type"), //NOI18N
47
KEYPASS("keypass"), //NOI18N
48
STOREPASS("storepass"), //NOI18N
49
NAME("name"), //NOI18N
50
CLASSNAME("classname"); //NOI18N
51

52     private String JavaDoc name;
53     private Class JavaDoc type;
54     private Class JavaDoc subtype;
55     
56     /**
57      * Creates a new instance of ProprietarySecurityPolicyAttribute
58      */

59     ProprietarySecurityPolicyAttribute(String JavaDoc name) {
60         this(name, String JavaDoc.class);
61     }
62     ProprietarySecurityPolicyAttribute(String JavaDoc name, Class JavaDoc type) {
63         this(name, type, null);
64     }
65     ProprietarySecurityPolicyAttribute(String JavaDoc name, Class JavaDoc type, Class JavaDoc subtype) {
66         this.name = name;
67         this.type = type;
68         this.subtype = subtype;
69     }
70     
71     @Override JavaDoc
72     public String JavaDoc toString() { return name; }
73
74     public Class JavaDoc getType() {
75         return type;
76     }
77
78     public String JavaDoc getName() { return name; }
79
80     public Class JavaDoc getMemberType() { return subtype; }
81 }
82
Popular Tags