From: Dave H. <hel...@us...> - 2012-08-26 02:27:31
|
Update of /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/util In directory vz-cvs-3.sog:/tmp/cvs-serv28266/src/org/sblim/cimclient/internal/util Modified Files: Tag: Experimental WBEMConfiguration.java WBEMConfigurationDefaults.java Log Message: 3536399 - Add client/listener peer authentication properties Index: WBEMConfiguration.java =================================================================== RCS file: /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/util/WBEMConfiguration.java,v retrieving revision 1.17.2.31 retrieving revision 1.17.2.32 diff -u -d -r1.17.2.31 -r1.17.2.32 --- WBEMConfiguration.java 6 Jun 2012 14:43:13 -0000 1.17.2.31 +++ WBEMConfiguration.java 26 Aug 2012 02:27:28 -0000 1.17.2.32 @@ -41,6 +41,7 @@ * 3492224 2012-02-23 blaschke-oss Need two different timeouts for Socket connections * 3521157 2012-05-10 blaschke-oss JSR48 1.0.0: PROP_ENABLE_*_LOGGING is Level, not 0/1 * 3524050 2012-06-06 blaschke-oss Improve WWW-Authenticate in HTTPClient.java + * 3536399 2012-08-25 hellerda Add client/listener peer authentication properties */ package org.sblim.cimclient.internal.util; @@ -674,6 +675,30 @@ } /** + * Returns whether the client will attempt to authenticate the CIMOM + * + * @return <code>true</code> if the client will attempt to authenticate the + * CIMOM by verifying the server certificate <code>false</code> + * otherwise + */ + public boolean getSslClientPeerVerification() { + return Boolean.valueOf( + getProperty(WBEMConfigurationProperties.SSL_CLIENT_PEER_VERIFICATION, + WBEMConfigurationDefaults.SSL_CLIENT_PEER_VERIFICATION)).booleanValue(); + } + + /** + * Returns how the listener will handle to authentication of the indication + * sender endpoint. + * + * @return The listener peer verification mode + */ + public String getSslListenerPeerVerification() { + return getProperty(WBEMConfigurationProperties.SSL_LISTENER_PEER_VERIFICATION, + WBEMConfigurationDefaults.SSL_LISTENER_PEER_VERIFICATION); + } + + /** * Returns the number of retries the client will attempt when the connection * was refused. * Index: WBEMConfigurationDefaults.java =================================================================== RCS file: /cvsroot/sblim/jsr48-client/src/org/sblim/cimclient/internal/util/WBEMConfigurationDefaults.java,v retrieving revision 1.11.2.20 retrieving revision 1.11.2.21 diff -u -d -r1.11.2.20 -r1.11.2.21 --- WBEMConfigurationDefaults.java 10 May 2012 23:23:42 -0000 1.11.2.20 +++ WBEMConfigurationDefaults.java 26 Aug 2012 02:27:28 -0000 1.11.2.21 @@ -35,6 +35,7 @@ * 3492214 2012-02-23 blaschke-oss Add a SenderIPAddress property indications * 3492224 2012-02-23 blaschke-oss Need two different timeouts for Socket connections * 3521157 2012-05-10 blaschke-oss JSR48 1.0.0: PROP_ENABLE_*_LOGGING is Level, not 0/1 + * 3536399 2012-08-25 hellerda Add client/listener peer authentication properties */ package org.sblim.cimclient.internal.util; @@ -280,4 +281,14 @@ */ public static final String SSL_DEF_PROTOCOL = "SSL"; + /** + * SSL_CLIENT_PEER_VERIFICATION + */ + public static final String SSL_CLIENT_PEER_VERIFICATION = "false"; + + /** + * SSL_LISTENER_PEER_VERIFICATION + */ + public static final String SSL_LISTENER_PEER_VERIFICATION = "ignore"; + } |