01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package mx4j.tools.adaptor.ssl;
10:
11: import mx4j.tools.adaptor.AdaptorServerSocketFactory;
12:
13: /**
14: * Management interface for the SSL ServerSocket factory
15: *
16: * @version $Revision: 1.3 $
17: */
18: public interface SSLAdaptorServerSocketFactoryMBean extends
19: AdaptorServerSocketFactory {
20: /**
21: * Sets the type of the keystore, by default is "JKS".
22: */
23: public void setKeyStoreType(String keyStoreType);
24:
25: /**
26: * Sets the type of the truststore, by default is "JKS".
27: */
28: public void setTrustStoreType(String trustStoreType);
29:
30: /**
31: * Sets the name of the keystore; if the keystore is of type JKS, then this is a file name, that will be
32: * resolved by the ClassLoader of this class, via getResourceAsStream.
33: */
34: public void setKeyStoreName(String name);
35:
36: /**
37: * Sets the name of the truststore; if the truststore is of type JKS, then this is a file name, that will be
38: * resolved by the ClassLoader of this class, via getResourceAsStream.
39: */
40: public void setTrustStoreName(String name);
41:
42: /**
43: * Sets the password to access the keystore specified by {@link #setKeyStoreName}. <p>
44: * It correspond to the value of the -storepass option of keytool.
45: */
46: public void setKeyStorePassword(String password);
47:
48: /**
49: * Sets the password to access the truststore specified by {@link #setTrustStoreName}. <p>
50: * It correspond to the value of the -storepass option of keytool.
51: */
52: public void setTrustStorePassword(String password);
53:
54: /**
55: * Sets the key manager algorithm, by default is "SunX509".
56: */
57: public void setKeyManagerAlgorithm(String algorithm);
58:
59: /**
60: * Sets the trust manager algorithm, by default is "SunX509".
61: */
62: public void setTrustManagerAlgorithm(String algorithm);
63:
64: /**
65: * Sets the password to access the key present in the keystore. <p>
66: * It correspond to the value of the -keypass option of keytool; if not specified, the KeyStore password is taken.
67: */
68: public void setKeyManagerPassword(String password);
69:
70: /**
71: * Sets the SSL protocol version, by default is "TLS".
72: */
73: public void setSSLProtocol(String protocol);
74: }
|