1 19 20 package org.netbeans.modules.websvc.wsitmodelext.security.proprietary; 21 22 import javax.xml.namespace.QName ; 23 import java.util.HashSet ; 24 import java.util.Set ; 25 26 30 public enum ProprietaryTrustClientQName { 31 PRECONFIGUREDSTS(createTrustClientQName("PreconfiguredSTS")); 33 public static final String PROPRIETARY_TRUST_URI = 34 "http://schemas.sun.com/ws/2006/05/trust/client"; public static final String PROPRIETARY_TRUST_NS_PREFIX = "tc"; 37 public static QName createTrustClientQName(String localName){ 38 return new QName (PROPRIETARY_TRUST_URI, localName, PROPRIETARY_TRUST_NS_PREFIX); 39 } 40 41 ProprietaryTrustClientQName(QName name) { 42 qName = name; 43 } 44 45 public QName getQName(){ 46 return qName; 47 } 48 private static Set <QName > qnames = null; 49 public static Set <QName > getQNames() { 50 if (qnames == null) { 51 qnames = new HashSet <QName >(); 52 for (ProprietaryTrustClientQName wq : values()) { 53 qnames.add(wq.getQName()); 54 } 55 } 56 return qnames; 57 } 58 private final QName qName; 59 60 } 61 | Popular Tags |