1 package jsdsi.ldap;
2
3 import java.security.cert.CertStoreParameters;
4
5 /***
6 * LDAP certificate store parameters. Parameters needed
7 * to performe certificate store operations
8 *
9 * @author Lu�s Pedro
10 * @version $Revision: 1.4 $ $Date: 2004/03/27 19:13:56 $
11 *
12 **/
13
14 public class LDAPCertStoreParameters extends LDAPParameters implements CertStoreParameters {
15
16 /***
17 * Creates a new instance of LDAPCertStoreParameters with a specified
18 * server name, port and base dn
19 *
20 * @param LDAPserver ldap server name
21 * @param LDAPport ldap server port
22 * @param LDAPbaseDN ldap server distinguish base name
23 */
24 public LDAPCertStoreParameters(String LDAPserver,
25 int LDAPport, String LDAPbaseDN) {
26 super(LDAPserver, LDAPport, LDAPbaseDN);
27 }
28
29 /***
30 * Creates a new instance of LDAPCertStoreParameters with the
31 * specified server name and base dn
32 *
33 * @param LDAPserver ldap server name
34 * @param LDAPbaseDN ldap server distinguish base name
35 */
36 public LDAPCertStoreParameters(String LDAPserver, String LDAPbaseDN) {
37 super(LDAPserver, LDAPbaseDN);
38 }
39
40 /***
41 * Creates a new instance of LDAPCertStoreParameters with the
42 * specified base dn
43 *
44 * @param LDAPbaseDN ldap server distinguish base name
45 */
46 public LDAPCertStoreParameters(String LDAPbaseDN) {
47 super(LDAPbaseDN);
48 }
49
50 /***
51 * Ldap server name
52 *
53 * @return ldap server name
54 */
55 public String getLDAPserver() {
56 return super.getLDAPserver();
57 }
58
59 /***
60 * Ldap server port
61 *
62 * @return ldap server port
63 */
64 public int getLDAPport() {
65 return super.getLDAPport();
66 }
67
68 /***
69 * Ldap base dn
70 *
71 * @return ldap distinguish base name
72 */
73 public String getLDAPbaseDN() {
74 return super.getLDAPbaseDN();
75 }
76
77 /***
78 * Copy of LDAPCertStoreParameters
79 *
80 * @return LDAPCertStoreParameters
81 */
82 public Object clone() {
83 return super.clone();
84 }
85
86 /***
87 * String representation of LDAPCertStoreParameters
88 *
89 * @return String representation of cert store parameters
90 */
91 public String toString() {
92 StringBuffer sb = new StringBuffer();
93 sb.append("LDAPCertStoreParameters: [\n");
94 sb.append(" serverName: " + super.getLDAPserver() + "\n");
95 sb.append(" port: " + super.getLDAPport() + "\n");
96 sb.append(" baseDN: " + super.getLDAPbaseDN() + " ]");
97 return sb.toString();
98 }
99 }
This page was automatically generated by Maven