001/* 002 * CDDL HEADER START 003 * 004 * The contents of this file are subject to the terms of the 005 * Common Development and Distribution License, Version 1.0 only 006 * (the "License"). You may not use this file except in compliance 007 * with the License. 008 * 009 * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt 010 * or http://forgerock.org/license/CDDLv1.0.html. 011 * See the License for the specific language governing permissions 012 * and limitations under the License. 013 * 014 * When distributing Covered Code, include this CDDL HEADER in each 015 * file and include the License file at legal-notices/CDDLv1_0.txt. 016 * If applicable, add the following below this CDDL HEADER, with the 017 * fields enclosed by brackets "[]" replaced with your own identifying 018 * information: 019 * Portions Copyright [yyyy] [name of copyright owner] 020 * 021 * CDDL HEADER END 022 * 023 * 024 * Copyright 2008 Sun Microsystems, Inc. 025 */ 026package org.opends.server.admin.std.client; 027 028 029 030import java.net.InetAddress; 031import java.util.Collection; 032import java.util.SortedSet; 033import org.opends.server.admin.ConfigurationClient; 034import org.opends.server.admin.ManagedObjectDefinition; 035import org.opends.server.admin.PropertyException; 036import org.opends.server.admin.std.server.AdministrationConnectorCfg; 037 038 039 040/** 041 * A client-side interface for reading and modifying Administration 042 * Connector settings. 043 * <p> 044 * The Administration Connector is used to interact with 045 * administration tools using LDAP. 046 */ 047public interface AdministrationConnectorCfgClient extends ConfigurationClient { 048 049 /** 050 * Get the configuration definition associated with this Administration Connector. 051 * 052 * @return Returns the configuration definition associated with this Administration Connector. 053 */ 054 ManagedObjectDefinition<? extends AdministrationConnectorCfgClient, ? extends AdministrationConnectorCfg> definition(); 055 056 057 058 /** 059 * Gets the "key-manager-provider" property. 060 * <p> 061 * Specifies the name of the key manager that is used with the 062 * Administration Connector . 063 * 064 * @return Returns the value of the "key-manager-provider" property. 065 */ 066 String getKeyManagerProvider(); 067 068 069 070 /** 071 * Sets the "key-manager-provider" property. 072 * <p> 073 * Specifies the name of the key manager that is used with the 074 * Administration Connector . 075 * 076 * @param value The value of the "key-manager-provider" property. 077 * @throws PropertyException 078 * If the new value is invalid. 079 */ 080 void setKeyManagerProvider(String value) throws PropertyException; 081 082 083 084 /** 085 * Gets the "listen-address" property. 086 * <p> 087 * Specifies the address or set of addresses on which this 088 * Administration Connector should listen for connections from LDAP 089 * clients. 090 * <p> 091 * Multiple addresses may be provided as separate values for this 092 * attribute. If no values are provided, then the Administration 093 * Connector listens on all interfaces. 094 * 095 * @return Returns the values of the "listen-address" property. 096 */ 097 SortedSet<InetAddress> getListenAddress(); 098 099 100 101 /** 102 * Sets the "listen-address" property. 103 * <p> 104 * Specifies the address or set of addresses on which this 105 * Administration Connector should listen for connections from LDAP 106 * clients. 107 * <p> 108 * Multiple addresses may be provided as separate values for this 109 * attribute. If no values are provided, then the Administration 110 * Connector listens on all interfaces. 111 * 112 * @param values The values of the "listen-address" property. 113 * @throws PropertyException 114 * If one or more of the new values are invalid. 115 */ 116 void setListenAddress(Collection<InetAddress> values) throws PropertyException; 117 118 119 120 /** 121 * Gets the "listen-port" property. 122 * <p> 123 * Specifies the port number on which the Administration Connector 124 * will listen for connections from clients. 125 * <p> 126 * Only a single port number may be provided. 127 * 128 * @return Returns the value of the "listen-port" property. 129 */ 130 Integer getListenPort(); 131 132 133 134 /** 135 * Sets the "listen-port" property. 136 * <p> 137 * Specifies the port number on which the Administration Connector 138 * will listen for connections from clients. 139 * <p> 140 * Only a single port number may be provided. 141 * 142 * @param value The value of the "listen-port" property. 143 * @throws PropertyException 144 * If the new value is invalid. 145 */ 146 void setListenPort(int value) throws PropertyException; 147 148 149 150 /** 151 * Gets the "ssl-cert-nickname" property. 152 * <p> 153 * Specifies the nicknames (also called the aliases) of the 154 * certificates that the Administration Connector should use when 155 * performing SSL communication. The property can be used multiple 156 * times (referencing different nicknames) when an RSA, a DSA, and an 157 * ECC based server certificate is used in parallel. 158 * 159 * @return Returns the values of the "ssl-cert-nickname" property. 160 */ 161 SortedSet<String> getSSLCertNickname(); 162 163 164 165 /** 166 * Sets the "ssl-cert-nickname" property. 167 * <p> 168 * Specifies the nicknames (also called the aliases) of the 169 * certificates that the Administration Connector should use when 170 * performing SSL communication. The property can be used multiple 171 * times (referencing different nicknames) when an RSA, a DSA, and an 172 * ECC based server certificate is used in parallel. 173 * 174 * @param values The values of the "ssl-cert-nickname" property. 175 * @throws PropertyException 176 * If one or more of the new values are invalid. 177 */ 178 void setSSLCertNickname(Collection<String> values) throws PropertyException; 179 180 181 182 /** 183 * Gets the "ssl-cipher-suite" property. 184 * <p> 185 * Specifies the names of the SSL cipher suites that are allowed for 186 * use in SSL communication. 187 * 188 * @return Returns the values of the "ssl-cipher-suite" property. 189 */ 190 SortedSet<String> getSSLCipherSuite(); 191 192 193 194 /** 195 * Sets the "ssl-cipher-suite" property. 196 * <p> 197 * Specifies the names of the SSL cipher suites that are allowed for 198 * use in SSL communication. 199 * 200 * @param values The values of the "ssl-cipher-suite" property. 201 * @throws PropertyException 202 * If one or more of the new values are invalid. 203 */ 204 void setSSLCipherSuite(Collection<String> values) throws PropertyException; 205 206 207 208 /** 209 * Gets the "ssl-protocol" property. 210 * <p> 211 * Specifies the names of the SSL protocols that are allowed for use 212 * in SSL or StartTLS communication. 213 * 214 * @return Returns the values of the "ssl-protocol" property. 215 */ 216 SortedSet<String> getSSLProtocol(); 217 218 219 220 /** 221 * Sets the "ssl-protocol" property. 222 * <p> 223 * Specifies the names of the SSL protocols that are allowed for use 224 * in SSL or StartTLS communication. 225 * 226 * @param values The values of the "ssl-protocol" property. 227 * @throws PropertyException 228 * If one or more of the new values are invalid. 229 */ 230 void setSSLProtocol(Collection<String> values) throws PropertyException; 231 232 233 234 /** 235 * Gets the "trust-manager-provider" property. 236 * <p> 237 * Specifies the name of the trust manager that is used with the 238 * Administration Connector . 239 * 240 * @return Returns the value of the "trust-manager-provider" property. 241 */ 242 String getTrustManagerProvider(); 243 244 245 246 /** 247 * Sets the "trust-manager-provider" property. 248 * <p> 249 * Specifies the name of the trust manager that is used with the 250 * Administration Connector . 251 * 252 * @param value The value of the "trust-manager-provider" property. 253 * @throws PropertyException 254 * If the new value is invalid. 255 */ 256 void setTrustManagerProvider(String value) throws PropertyException; 257 258}