1 19 20 21 package org.netbeans.modules.websvc.wsitmodelext.security.algosuite; 22 23 import javax.xml.namespace.QName ; 24 import java.util.HashSet ; 25 import java.util.Set ; 26 27 31 public enum AlgorithmSuiteQName { 32 ALGORITHMSUITE(createSecurityPolicyQName("AlgorithmSuite")), BASIC256(createSecurityPolicyQName("Basic256")), BASIC192(createSecurityPolicyQName("Basic192")), BASIC128(createSecurityPolicyQName("Basic128")), TRIPLEDES(createSecurityPolicyQName("TripleDes")), BASIC256RSA15(createSecurityPolicyQName("Basic256Rsa15")), BASIC192RSA15(createSecurityPolicyQName("Basic192Rsa15")), BASIC128RSA15(createSecurityPolicyQName("Basic128Rsa15")), TRIPLEDESRSA15(createSecurityPolicyQName("TripleDesRsa15")), BASIC256SHA256(createSecurityPolicyQName("Basic256Sha256")), BASIC192SHA256(createSecurityPolicyQName("Basic192Sha256")), BASIC128SHA256(createSecurityPolicyQName("Basic128Sha256")), TRIPLEDESSHA256(createSecurityPolicyQName("TripleDesSha256")), BASIC256SHA256RSA15(createSecurityPolicyQName("Basic256Sha256Rsa15")), BASIC192SHA256RSA15(createSecurityPolicyQName("Basic192Sha256Rsa15")), BASIC128SHA256RSA15(createSecurityPolicyQName("Basic128Sha256Rsa15")), TRIPLEDESSHA256RSA15(createSecurityPolicyQName("TripleDesSha256Rsa15")), INCLUSIVEC14N(createSecurityPolicyQName("InclusiveC14N")), SOAPNORMALIZATION10(createSecurityPolicyQName("SOAPNormalization10")), STRTRANSFORM10(createSecurityPolicyQName("STRTransform10")), XPATH10(createSecurityPolicyQName("XPath10")), XPATHFILTER20(createSecurityPolicyQName("XPathFilter20")); 55 public static final String SECPOLICY_UTILITY = 56 "http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"; public static final String SECPOLICY_UTILITY_NS_PREFIX = "sp"; 59 public static QName createSecurityPolicyQName(String localName){ 60 return new QName (SECPOLICY_UTILITY, localName, SECPOLICY_UTILITY_NS_PREFIX); 61 } 62 63 AlgorithmSuiteQName(QName name) { 64 qName = name; 65 } 66 67 public QName getQName(){ 68 return qName; 69 } 70 private static Set <QName > qnames = null; 71 public static Set <QName > getQNames() { 72 if (qnames == null) { 73 qnames = new HashSet <QName >(); 74 for (AlgorithmSuiteQName wq : values()) { 75 qnames.add(wq.getQName()); 76 } 77 } 78 return qnames; 79 } 80 private final QName qName; 81 82 } 83 | Popular Tags |