1 19 20 package org.netbeans.modules.websvc.wsitmodelext.security.proprietary.service; 21 22 import javax.xml.namespace.QName ; 23 import java.util.HashSet ; 24 import java.util.Set ; 25 26 30 public enum ProprietarySecurityPolicyServiceQName { 31 KEYSTORE(createSecurityPolicyQName("KeyStore")), TRUSTSTORE(createSecurityPolicyQName("TrustStore")), CALLBACKHANDLERCONFIGURATION(createSecurityPolicyQName("CallbackHandlerConfiguration")), CALLBACKHANDLER(createSecurityPolicyQName("CallbackHandler")), VALIDATORCONFIGURATION(createSecurityPolicyQName("ValidatorConfiguration")), VALIDATOR(createSecurityPolicyQName("Validator")), TIMESTAMP(createSecurityPolicyQName("Timestamp")); 39 public static final String PROPRIETARY_SERVICE_SECPOLICY_UTILITY = 40 "http://schemas.sun.com/2006/03/wss/server"; public static final String PROPRIETARY_SECPOLICY_UTILITY_NS_PREFIX = "sc"; 43 public static QName createSecurityPolicyQName(String localName){ 44 return new QName (PROPRIETARY_SERVICE_SECPOLICY_UTILITY, localName, PROPRIETARY_SECPOLICY_UTILITY_NS_PREFIX); 45 } 46 47 ProprietarySecurityPolicyServiceQName(QName name) { 48 qName = name; 49 } 50 51 public QName getQName(){ 52 return qName; 53 } 54 private static Set <QName > qnames = null; 55 public static Set <QName > getQNames() { 56 if (qnames == null) { 57 qnames = new HashSet <QName >(); 58 for (ProprietarySecurityPolicyServiceQName wq : values()) { 59 qnames.add(wq.getQName()); 60 } 61 } 62 return qnames; 63 } 64 private final QName qName; 65 66 } 67 | Popular Tags |