KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > adaptor > ssl > SSLAdaptorServerSocketFactoryMBean


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 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 AdaptorServerSocketFactory
19 {
20    /**
21     * Sets the type of the keystore, by default is "JKS".
22     */

23    public void setKeyStoreType(String JavaDoc keyStoreType);
24
25    /**
26     * Sets the type of the truststore, by default is "JKS".
27     */

28    public void setTrustStoreType(String JavaDoc 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 JavaDoc 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 JavaDoc 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 JavaDoc 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 JavaDoc password);
53
54    /**
55     * Sets the key manager algorithm, by default is "SunX509".
56     */

57    public void setKeyManagerAlgorithm(String JavaDoc algorithm);
58
59    /**
60     * Sets the trust manager algorithm, by default is "SunX509".
61     */

62    public void setTrustManagerAlgorithm(String JavaDoc 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 JavaDoc password);
69
70    /**
71     * Sets the SSL protocol version, by default is "TLS".
72     */

73    public void setSSLProtocol(String JavaDoc protocol);
74 }
75
Popular Tags