GUACAMOLE-234: Clean up comments.

This commit is contained in:
Nick Couchman
2018-12-09 10:42:12 -05:00
committed by Virtually Nick
parent 5777d93fdc
commit 41e3b8ca56
6 changed files with 22 additions and 16 deletions

View File

@@ -58,12 +58,14 @@ public class LDAPConnectionService {
private ConfigurationService confService; private ConfigurationService confService;
/** /**
* Creates a new instance of LDAPConnection, configured as required to use * Creates a new instance of LdapNetworkConnection, configured as required
* whichever encryption method is requested within guacamole.properties. * to use whichever encryption method is requested within
* guacamole.properties.
* *
* @return * @return
* A new LDAPConnection instance which has already been configured to * A new LdapNetworkConnection instance which has already been
* use the encryption method requested within guacamole.properties. * configured to use the encryption method requested within
* guacamole.properties.
* *
* @throws GuacamoleException * @throws GuacamoleException
* If an error occurs while parsing guacamole.properties, or if the * If an error occurs while parsing guacamole.properties, or if the
@@ -91,7 +93,7 @@ public class LDAPConnectionService {
// LDAP + STARTTLS // LDAP + STARTTLS
case STARTTLS: case STARTTLS:
logger.debug("Connecting to LDAP server using STARTTLS."); logger.debug("Connecting to LDAP server using STARTTLS.");
return new LdapNetworkConnection(host, port, false); return new LdapNetworkConnection(host, port);
// The encryption method, though known, is not actually // The encryption method, though known, is not actually
// implemented. If encountered, this would be a bug. // implemented. If encountered, this would be a bug.
@@ -122,7 +124,7 @@ public class LDAPConnectionService {
public LdapConnection bindAs(Dn userDN, String password) public LdapConnection bindAs(Dn userDN, String password)
throws GuacamoleException { throws GuacamoleException {
// Obtain appropriately-configured LdapConnection instance // Obtain appropriately-configured LdapNetworkConnection instance
LdapNetworkConnection ldapConnection = createLDAPConnection(); LdapNetworkConnection ldapConnection = createLDAPConnection();
try { try {
@@ -171,7 +173,7 @@ public class LDAPConnectionService {
* The LDAP URL to follow. * The LDAP URL to follow.
* *
* @param ldapConfig * @param ldapConfig
* The connection config to use to retrieve username and * The connection configuration to use to retrieve username and
* password. * password.
* *
* @param hop * @param hop

View File

@@ -284,7 +284,8 @@ public class ConfigurationService {
} }
/** /**
* Returns the maximum number of referral hops to follow. * Returns the maximum number of referral hops to follow. By default
* a maximum of 5 hops is allowed.
* *
* @return * @return
* The maximum number of referral hops to follow * The maximum number of referral hops to follow
@@ -338,7 +339,8 @@ public class ConfigurationService {
} }
/** /**
* Returns names for custom LDAP user attributes. * Returns names for custom LDAP user attributes. By default no
* attributes will be returned.
* *
* @return * @return
* Custom LDAP user attributes as configured in guacamole.properties. * Custom LDAP user attributes as configured in guacamole.properties.

View File

@@ -26,8 +26,8 @@ import org.apache.guacamole.properties.GuacamoleProperty;
/** /**
* A GuacamoleProperty with a value of AliasDerefMode. The possible strings * A GuacamoleProperty with a value of AliasDerefMode. The possible strings
* "never", "searching", "finding", and "always" are mapped to their values as a * "never", "searching", "finding", and "always" are mapped to their values as
* AliasDerefMode object. Anything else results in a parse error. * an AliasDerefMode object. Anything else results in a parse error.
*/ */
public abstract class DereferenceAliasesProperty implements GuacamoleProperty<AliasDerefMode> { public abstract class DereferenceAliasesProperty implements GuacamoleProperty<AliasDerefMode> {

View File

@@ -27,7 +27,8 @@ import org.apache.guacamole.properties.GuacamoleProperty;
/** /**
* A GuacamoleProperty that converts a string to a Dn that can be used * A GuacamoleProperty that converts a string to a Dn that can be used
* in LDAP connections. * in LDAP connections. An exception is thrown if the provided DN is invalid
* and cannot be parsed.
*/ */
public abstract class LdapDnGuacamoleProperty implements GuacamoleProperty<Dn> { public abstract class LdapDnGuacamoleProperty implements GuacamoleProperty<Dn> {

View File

@@ -27,9 +27,10 @@ import org.apache.guacamole.GuacamoleServerException;
import org.apache.guacamole.properties.GuacamoleProperty; import org.apache.guacamole.properties.GuacamoleProperty;
/** /**
* A GuacamoleProperty with a value of AliasDerefMode. The possible strings * A GuacamoleProperty with a value of an ExprNode query filter. The string
* "never", "searching", "finding", and "always" are mapped to their values as a * provided is passed through the FilterParser returning the ExprNode object,
* AliasDerefMode object. Anything else results in a parse error. * or an exception is thrown if the filter is invalid and cannot be correctly
* parsed.
*/ */
public abstract class LdapFilterGuacamoleProperty implements GuacamoleProperty<ExprNode> { public abstract class LdapFilterGuacamoleProperty implements GuacamoleProperty<ExprNode> {

View File

@@ -102,7 +102,7 @@ public class LDAPUserContext extends AbstractUserContext {
/** /**
* Initializes this UserContext using the provided AuthenticatedUser and * Initializes this UserContext using the provided AuthenticatedUser and
* LDAPConnection. * LdapConnection.
* *
* @param user * @param user
* The AuthenticatedUser representing the user that authenticated. This * The AuthenticatedUser representing the user that authenticated. This