|
From: Dave B. <bla...@us...> - 2012-03-14 11:33:43
|
Update of /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/wbem
In directory vz-cvs-3.sog:/tmp/cvs-serv5501/src/org/sblim/cimclient/internal/wbem
Modified Files:
WBEMClientCIMXML.java
Log Message:
3496355 - JSR48 1.0.0: add new WBEMClientConstants
Index: WBEMClientCIMXML.java
===================================================================
RCS file: /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/wbem/WBEMClientCIMXML.java,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- WBEMClientCIMXML.java 7 Nov 2011 12:05:49 -0000 1.66
+++ WBEMClientCIMXML.java 14 Mar 2012 11:33:40 -0000 1.67
@@ -1,5 +1,5 @@
/**
- * (C) Copyright IBM Corp. 2006, 2011
+ * (C) Copyright IBM Corp. 2006, 2012
*
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
@@ -56,6 +56,7 @@
* 3197423 2011-03-02 blaschke-oss Server authentication with PegasusLocalAuthInfo failing
* 3277928 2011-04-06 blaschke-oss CIM-XML tracing cannot be enabled in the field
* 3423064 2011-10-13 blaschke-oss Add UpdateExpiredPassword Header for Reqs from Java Client
+ * 3496355 2012-03-02 blaschke-oss JSR48 1.0.0: add new WBEMClientConstants
*/
package org.sblim.cimclient.internal.wbem;
@@ -371,6 +372,15 @@
.getDomainProperty(WBEMConfigurationProperties.HTTP_USE_CHUNKING);
if (SblimKey == null) return null;
return SblimKey.equals("true") ? "1" : "0";
+ } else if (pKey.equals(WBEMClientConstants.PROP_CLIENT_KEYSTORE)) {
+ return this.iConfiguration
+ .getDomainProperty(WBEMConfigurationProperties.KEYSTORE_PATH);
+ } else if (pKey.equals(WBEMClientConstants.PROP_CLIENT_KEYSTORE_PASSWORD)) {
+ return this.iConfiguration
+ .getDomainProperty(WBEMConfigurationProperties.KEYSTORE_PASSWORD);
+ } else if (pKey.equals(WBEMClientConstants.PROP_CLIENT_TRUSTSTORE)) {
+ return this.iConfiguration
+ .getDomainProperty(WBEMConfigurationProperties.TRUSTSTORE_PATH);
} else {
return null;
}
@@ -445,6 +455,15 @@
this.iConfiguration.setDomainProperty(
WBEMConfigurationProperties.HTTP_USE_CHUNKING, pValue.equals("0") ? "false"
: "true");
+ } else if (pKey.equals(WBEMClientConstants.PROP_CLIENT_KEYSTORE)) {
+ this.iConfiguration.setDomainProperty(WBEMConfigurationProperties.KEYSTORE_PATH,
+ pValue);
+ } else if (pKey.equals(WBEMClientConstants.PROP_CLIENT_KEYSTORE_PASSWORD)) {
+ this.iConfiguration.setDomainProperty(
+ WBEMConfigurationProperties.KEYSTORE_PASSWORD, pValue);
+ } else if (pKey.equals(WBEMClientConstants.PROP_CLIENT_TRUSTSTORE)) {
+ this.iConfiguration.setDomainProperty(WBEMConfigurationProperties.TRUSTSTORE_PATH,
+ pValue);
} else {
throw new IllegalArgumentException(pKey);
}
|