01: package org.objectweb.celtix.systest.securebasic;
02:
03: import org.objectweb.celtix.bus.configuration.security.SSLClientPolicy;
04: import org.objectweb.celtix.bus.configuration.security.SSLServerPolicy;
05:
06: public class SetAllDataSecurityDataProvider {
07:
08: public static final long serialVersionUID = 1L;
09:
10: private static final String BACK_TO_SRC_DIR = "../../../../../../../src/test/java/org/objectweb/celtix/systest/securebasic/";
11:
12: public SetAllDataSecurityDataProvider() {
13:
14: }
15:
16: public void configure(SSLServerPolicy sslPolicyParam) {
17: sslPolicyParam.setKeystore(getClass().getResource(".")
18: .getPath()
19: + BACK_TO_SRC_DIR + ".clientkeystore");
20: sslPolicyParam.setKeystoreType("JKS");
21: sslPolicyParam.setKeystorePassword("clientpass");
22: sslPolicyParam.setKeyPassword("clientpass");
23: sslPolicyParam.setWantClientAuthentication(Boolean.TRUE);
24: sslPolicyParam.setRequireClientAuthentication(Boolean.TRUE);
25: sslPolicyParam.setTrustStore(getClass().getResource(".")
26: .getPath()
27: + BACK_TO_SRC_DIR + "truststore");
28: }
29:
30: public void configure(SSLClientPolicy sslPolicyParam) {
31: sslPolicyParam.setKeystore(getClass().getResource(".")
32: .getPath()
33: + BACK_TO_SRC_DIR + ".clientkeystore");
34: sslPolicyParam.setKeystoreType("JKS");
35: sslPolicyParam.setKeystorePassword("clientpass");
36: sslPolicyParam.setKeyPassword("clientpass");
37: sslPolicyParam.setTrustStore(getClass().getResource(".")
38: .getPath()
39: + BACK_TO_SRC_DIR + "truststore");
40: }
41:
42: }
|