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 ProprietaryTrustServiceQName { 31 STSCONFIGURATION(createTrustServiceQName("STSConfiguration")), CONTRACT(createTrustServiceQName("Contract")), SERVICEPROVIDER(createTrustServiceQName("ServiceProvider")), SERVICEPROVIDERS(createTrustServiceQName("ServiceProviders")), CERTALIAS(createTrustServiceQName("CertAlias")), TOKENTYPE(createTrustServiceQName("TokenType")), KEYTYPE(createTrustServiceQName("KeyType")), ISSUER(createTrustServiceQName("Issuer")), LIFETIME(createTrustServiceQName("LifeTime")); 41 public static final String PROPRIETARY_TRUST_URI = 42 "http://schemas.sun.com/ws/2006/05/trust/server"; public static final String PROPRIETARY_TRUST_NS_PREFIX = "tc"; 45 public static QName createTrustServiceQName(String localName){ 46 return new QName (PROPRIETARY_TRUST_URI, localName, PROPRIETARY_TRUST_NS_PREFIX); 47 } 48 49 ProprietaryTrustServiceQName(QName name) { 50 qName = name; 51 } 52 53 public QName getQName(){ 54 return qName; 55 } 56 private static Set <QName > qnames = null; 57 public static Set <QName > getQNames() { 58 if (qnames == null) { 59 qnames = new HashSet <QName >(); 60 for (ProprietaryTrustServiceQName wq : values()) { 61 qnames.add(wq.getQName()); 62 } 63 } 64 return qnames; 65 } 66 private final QName qName; 67 68 } 69 | Popular Tags |