mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-30 16:43:22 +00:00 
			
		
		
		
	GUACAMOLE-224: Remove @author tags from codebase.
This commit is contained in:
		| @@ -29,8 +29,6 @@ import org.apache.guacamole.net.auth.UserContext; | ||||
|  * Service which authenticates users based on credentials and provides for | ||||
|  * the creation of corresponding, new UserContext objects for authenticated | ||||
|  * users. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface AuthenticationProviderService  { | ||||
|  | ||||
|   | ||||
| @@ -33,8 +33,6 @@ import org.apache.guacamole.net.auth.AuthenticatedUser; | ||||
|  * means for Guice to (effectively) apply dependency injection to an | ||||
|  * AuthenticationProvider, even though it is the AuthenticationProvider that | ||||
|  * serves as the entry point. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public abstract class InjectedAuthenticationProvider implements AuthenticationProvider { | ||||
|  | ||||
|   | ||||
| @@ -83,9 +83,6 @@ import org.mybatis.guice.datasource.builtin.PooledDataSourceProvider; | ||||
|  * Guice module which configures the injections used by the JDBC authentication | ||||
|  * provider base. This module MUST be included in the Guice injector, or | ||||
|  * authentication providers based on JDBC will not function. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public class JDBCAuthenticationProviderModule extends MyBatisModule { | ||||
|  | ||||
|   | ||||
| @@ -39,8 +39,6 @@ import org.apache.guacamole.net.auth.credentials.GuacamoleInvalidCredentialsExce | ||||
|  * AuthenticationProviderService implementation which authenticates users with | ||||
|  * a username/password pair, producing new UserContext objects which are backed | ||||
|  * by an underlying, arbitrary database. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class JDBCAuthenticationProviderService implements AuthenticationProviderService  { | ||||
|  | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.apache.guacamole.auth.jdbc.security.PasswordPolicy; | ||||
| /** | ||||
|  * A JDBC-specific implementation of Environment that defines generic properties | ||||
|  * intended for use within JDBC based authentication providers. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public abstract class JDBCEnvironment extends LocalEnvironment { | ||||
|      | ||||
|   | ||||
| @@ -35,8 +35,6 @@ import org.apache.guacamole.GuacamoleException; | ||||
|  * classloader. Within the context of the JDBC extension, as long as each built | ||||
|  * extension only provides one subclass of this class, things should work | ||||
|  * properly, as each extension is given its own classloader by Guacamole. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public abstract class JDBCInjectorProvider { | ||||
|  | ||||
|   | ||||
| @@ -32,8 +32,6 @@ import org.apache.guacamole.net.auth.Directory; | ||||
| /** | ||||
|  * Implementation of a Directory which contains all currently-active | ||||
|  * connections. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ActiveConnectionDirectory extends RestrictedObject | ||||
|     implements Directory<ActiveConnection> { | ||||
|   | ||||
| @@ -40,8 +40,6 @@ import org.apache.guacamole.net.auth.permission.ObjectPermissionSet; | ||||
| /** | ||||
|  * Service which provides convenience methods for creating, retrieving, and | ||||
|  * manipulating active connections. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ActiveConnectionPermissionService | ||||
|     extends AbstractPermissionService<ObjectPermissionSet, ObjectPermission> | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.apache.guacamole.auth.jdbc.permission.ObjectPermissionSet; | ||||
| /** | ||||
|  * An implementation of ObjectPermissionSet which uses an injected service to | ||||
|  * query and manipulate the permissions associated with active connections. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ActiveConnectionPermissionSet extends ObjectPermissionSet { | ||||
|  | ||||
|   | ||||
| @@ -38,8 +38,6 @@ import org.apache.guacamole.net.auth.ActiveConnection; | ||||
| /** | ||||
|  * Service which provides convenience methods for creating, retrieving, and | ||||
|  * manipulating active connections. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ActiveConnectionService | ||||
|     implements DirectoryObjectService<TrackedActiveConnection, ActiveConnection> {  | ||||
|   | ||||
| @@ -34,8 +34,6 @@ import org.apache.guacamole.net.auth.credentials.UserCredentials; | ||||
| /** | ||||
|  * An implementation of the ActiveConnection object which has an associated | ||||
|  * ActiveConnectionRecord. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class TrackedActiveConnection extends RestrictedObject implements ActiveConnection { | ||||
|  | ||||
|   | ||||
| @@ -23,8 +23,6 @@ package org.apache.guacamole.auth.jdbc.base; | ||||
|  * Object representation of a Guacamole object which can be the child of another | ||||
|  * object, such as a connection or sharing profile, as represented in the | ||||
|  * database. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public abstract class ChildObjectModel extends ObjectModel { | ||||
|  | ||||
|   | ||||
| @@ -30,7 +30,6 @@ import org.apache.guacamole.GuacamoleException; | ||||
|  * within directories. This service will automatically enforce the permissions | ||||
|  * of the current user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <InternalType> | ||||
|  *     The specific internal implementation of the type of object this service | ||||
|  *     provides access to. | ||||
|   | ||||
| @@ -26,7 +26,6 @@ import org.apache.guacamole.auth.jdbc.connectiongroup.RootConnectionGroup; | ||||
|  * the Directory class. All such objects will need the same base set of queries | ||||
|  * to fulfill the needs of the Directory class. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <ModelType> | ||||
|  *     The type of model object that corresponds to this object. | ||||
|  */ | ||||
|   | ||||
| @@ -34,7 +34,6 @@ import org.apache.guacamole.net.auth.permission.ObjectPermissionSet; | ||||
|  * manipulating objects that can be children of other objects. This service will | ||||
|  * automatically enforce the permissions of the current user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <InternalType> | ||||
|  *     The specific internal implementation of the type of object this service | ||||
|  *     provides access to. | ||||
|   | ||||
| @@ -27,7 +27,6 @@ import org.apache.guacamole.net.auth.Identifiable; | ||||
|  * such objects will need the same base set of queries to fulfill the needs of | ||||
|  * the Directory class. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <ModelType> | ||||
|  *     The type of model object that corresponds to this object. | ||||
|  */ | ||||
|   | ||||
| @@ -29,7 +29,6 @@ import org.apache.ibatis.annotations.Param; | ||||
|  * the Directory class. All such objects will need the same base set of queries | ||||
|  * to fulfill the needs of the Directory class. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <ModelType> | ||||
|  *     The type of object contained within the directory whose objects are | ||||
|  *     mapped by this mapper. | ||||
| @@ -134,4 +133,4 @@ public interface ModeledDirectoryObjectMapper<ModelType> { | ||||
|      */ | ||||
|     int update(@Param("object") ModelType object); | ||||
|      | ||||
| } | ||||
| } | ||||
|   | ||||
| @@ -38,7 +38,6 @@ import org.apache.guacamole.net.auth.permission.ObjectPermissionSet; | ||||
|  * manipulating objects within directories. This service will automatically | ||||
|  * enforce the permissions of the current user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <InternalType> | ||||
|  *     The specific internal implementation of the type of object this service | ||||
|  *     provides access to. | ||||
|   | ||||
| @@ -26,7 +26,6 @@ import org.apache.guacamole.auth.jdbc.user.ModeledAuthenticatedUser; | ||||
|  * JDBC-driven authentication providers, all modeled objects are also | ||||
|  * restricted. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <ModelType> | ||||
|  *     The type of model object which corresponds to this object. | ||||
|  */ | ||||
|   | ||||
| @@ -22,8 +22,6 @@ package org.apache.guacamole.auth.jdbc.base; | ||||
| /** | ||||
|  * Object representation of a Guacamole object, such as a user or connection, | ||||
|  * as represented in the database. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public abstract class ObjectModel { | ||||
|  | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.guacamole.auth.jdbc.user.ModeledAuthenticatedUser; | ||||
| /** | ||||
|  * Common base class for objects that are associated with the users that | ||||
|  * obtain them. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public abstract class RestrictedObject { | ||||
|  | ||||
|   | ||||
| @@ -33,9 +33,6 @@ import org.mybatis.guice.transactional.Transactional; | ||||
| /** | ||||
|  * Implementation of the Connection Directory which is driven by an underlying, | ||||
|  * arbitrary database. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionDirectory extends RestrictedObject | ||||
|     implements Directory<Connection> { | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.apache.ibatis.annotations.Param; | ||||
|  | ||||
| /** | ||||
|  * Mapper for connection objects. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface ConnectionMapper extends ModeledDirectoryObjectMapper<ConnectionModel> { | ||||
|  | ||||
| @@ -86,4 +84,4 @@ public interface ConnectionMapper extends ModeledDirectoryObjectMapper<Connectio | ||||
|     ConnectionModel selectOneByName(@Param("parentIdentifier") String parentIdentifier, | ||||
|             @Param("name") String name); | ||||
|      | ||||
| } | ||||
| } | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.apache.guacamole.auth.jdbc.base.ChildObjectModel; | ||||
| /** | ||||
|  * Object representation of a Guacamole connection, as represented in the | ||||
|  * database. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionModel extends ChildObjectModel { | ||||
|  | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.ibatis.annotations.Param; | ||||
|  | ||||
| /** | ||||
|  * Mapper for connection parameter objects. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface ConnectionParameterMapper { | ||||
|  | ||||
|   | ||||
| @@ -21,8 +21,6 @@ package org.apache.guacamole.auth.jdbc.connection; | ||||
|  | ||||
| /** | ||||
|  * A single parameter name/value pair belonging to a connection. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionParameterModel { | ||||
|  | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.apache.guacamole.auth.jdbc.user.UserModel; | ||||
|  | ||||
| /** | ||||
|  * Mapper for connection record objects. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface ConnectionRecordMapper { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import java.util.Date; | ||||
|  * A single connection record representing a past usage of a particular | ||||
|  * connection. If the connection was being shared, the sharing profile used to | ||||
|  * join the connection is included in the record. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionRecordModel { | ||||
|  | ||||
|   | ||||
| @@ -28,8 +28,6 @@ import java.util.regex.Pattern; | ||||
|  * A search term for querying historical connection records. This will contain | ||||
|  * a the search term in string form and, if that string appears to be a date. a | ||||
|  * corresponding date range. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public class ConnectionRecordSearchTerm { | ||||
|      | ||||
|   | ||||
| @@ -33,8 +33,6 @@ import org.apache.guacamole.net.auth.ConnectionRecord; | ||||
|  * A JDBC implementation of ConnectionRecordSet. Calls to asCollection() will  | ||||
|  * query connection history records from the database. Which records are | ||||
|  * returned will be determined by the values passed in earlier. | ||||
|  *  | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public class ConnectionRecordSet extends RestrictedObject | ||||
|         implements org.apache.guacamole.net.auth.ConnectionRecordSet { | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.guacamole.net.auth.ConnectionRecordSet; | ||||
| /** | ||||
|  * A sort predicate which species the property to use when sorting connection | ||||
|  * records, along with the sort order. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public class ConnectionRecordSortPredicate { | ||||
|  | ||||
|   | ||||
| @@ -49,8 +49,6 @@ import org.apache.guacamole.protocol.GuacamoleClientInformation; | ||||
| /** | ||||
|  * Service which provides convenience methods for creating, retrieving, and | ||||
|  * manipulating connections. | ||||
|  * | ||||
|  * @author Michael Jumper, James Muehlner | ||||
|  */ | ||||
| public class ConnectionService extends ModeledChildDirectoryObjectService<ModeledConnection, Connection, ConnectionModel> { | ||||
|  | ||||
|   | ||||
| @@ -46,9 +46,6 @@ import org.slf4j.LoggerFactory; | ||||
| /** | ||||
|  * An implementation of the Connection object which is backed by a database | ||||
|  * model. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ModeledConnection extends ModeledChildDirectoryObject<ConnectionModel> | ||||
|     implements Connection { | ||||
|   | ||||
| @@ -25,9 +25,6 @@ import org.apache.guacamole.net.auth.ConnectionRecord; | ||||
|  | ||||
| /** | ||||
|  * A ConnectionRecord which is backed by a database model. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ModeledConnectionRecord implements ConnectionRecord { | ||||
|  | ||||
|   | ||||
| @@ -27,8 +27,6 @@ import org.apache.guacamole.protocol.GuacamoleConfiguration; | ||||
| /** | ||||
|  * Implementation of GuacamoleConfiguration which loads parameter values only | ||||
|  * if necessary, and only if allowed. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ModeledGuacamoleConfiguration extends GuacamoleConfiguration { | ||||
|  | ||||
|   | ||||
| @@ -33,9 +33,6 @@ import org.mybatis.guice.transactional.Transactional; | ||||
| /** | ||||
|  * Implementation of the ConnectionGroup Directory which is driven by an | ||||
|  * underlying, arbitrary database. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionGroupDirectory extends RestrictedObject | ||||
|     implements Directory<ConnectionGroup> { | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.apache.ibatis.annotations.Param; | ||||
|  | ||||
| /** | ||||
|  * Mapper for connection group objects. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface ConnectionGroupMapper extends ModeledDirectoryObjectMapper<ConnectionGroupModel> { | ||||
|  | ||||
| @@ -86,4 +84,4 @@ public interface ConnectionGroupMapper extends ModeledDirectoryObjectMapper<Conn | ||||
|     ConnectionGroupModel selectOneByName(@Param("parentIdentifier") String parentIdentifier, | ||||
|             @Param("name") String name); | ||||
|      | ||||
| } | ||||
| } | ||||
|   | ||||
| @@ -27,8 +27,6 @@ import org.apache.guacamole.net.auth.ConnectionGroup; | ||||
| /** | ||||
|  * Object representation of a Guacamole connection group, as represented in the | ||||
|  * database. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionGroupModel extends ChildObjectModel { | ||||
|  | ||||
|   | ||||
| @@ -43,8 +43,6 @@ import org.apache.guacamole.protocol.GuacamoleClientInformation; | ||||
| /** | ||||
|  * Service which provides convenience methods for creating, retrieving, and | ||||
|  * manipulating connection groups. | ||||
|  * | ||||
|  * @author Michael Jumper, James Muehlner | ||||
|  */ | ||||
| public class ConnectionGroupService extends ModeledChildDirectoryObjectService<ModeledConnectionGroup, | ||||
|         ConnectionGroup, ConnectionGroupModel> { | ||||
|   | ||||
| @@ -43,9 +43,6 @@ import org.slf4j.LoggerFactory; | ||||
| /** | ||||
|  * An implementation of the ConnectionGroup object which is backed by a | ||||
|  * database model. | ||||
|  * | ||||
|  * @author James Muehlner | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ModeledConnectionGroup extends ModeledChildDirectoryObject<ConnectionGroupModel> | ||||
|     implements ConnectionGroup { | ||||
|   | ||||
| @@ -34,8 +34,6 @@ import org.apache.guacamole.protocol.GuacamoleClientInformation; | ||||
| /** | ||||
|  * The root connection group, here represented as its own dedicated object as | ||||
|  * the database does not contain an actual root group. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class RootConnectionGroup extends RestrictedObject | ||||
|     implements ConnectionGroup { | ||||
|   | ||||
| @@ -31,7 +31,6 @@ import org.apache.guacamole.net.auth.permission.PermissionSet; | ||||
|  * Abstract PermissionService implementation which provides additional | ||||
|  * convenience methods for enforcing the permission model. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <PermissionSetType> | ||||
|  *     The type of permission sets this service provides access to. | ||||
|  * | ||||
|   | ||||
| @@ -21,7 +21,5 @@ package org.apache.guacamole.auth.jdbc.permission; | ||||
|  | ||||
| /** | ||||
|  * Mapper for connection group permissions. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface ConnectionGroupPermissionMapper extends ObjectPermissionMapper {} | ||||
|   | ||||
| @@ -29,8 +29,6 @@ import org.apache.guacamole.auth.jdbc.user.ModeledUser; | ||||
|  * Service which provides convenience methods for creating, retrieving, and | ||||
|  * deleting connection group permissions. This service will automatically | ||||
|  * enforce the permissions of the current user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionGroupPermissionService extends ModeledObjectPermissionService { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import com.google.inject.Inject; | ||||
|  * A database implementation of ObjectPermissionSet which uses an injected | ||||
|  * service to query and manipulate the connection group permissions associated | ||||
|  * with a particular user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionGroupPermissionSet extends ObjectPermissionSet { | ||||
|  | ||||
|   | ||||
| @@ -21,7 +21,5 @@ package org.apache.guacamole.auth.jdbc.permission; | ||||
|  | ||||
| /** | ||||
|  * Mapper for connection permissions. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface ConnectionPermissionMapper extends ObjectPermissionMapper {} | ||||
|   | ||||
| @@ -29,8 +29,6 @@ import org.apache.guacamole.auth.jdbc.user.ModeledUser; | ||||
|  * Service which provides convenience methods for creating, retrieving, and | ||||
|  * deleting connection permissions. This service will automatically enforce the | ||||
|  * permissions of the current user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionPermissionService extends ModeledObjectPermissionService { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import com.google.inject.Inject; | ||||
|  * A database implementation of ObjectPermissionSet which uses an injected | ||||
|  * service to query and manipulate the connection permissions associated with | ||||
|  * a particular user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionPermissionSet extends ObjectPermissionSet { | ||||
|  | ||||
|   | ||||
| @@ -33,8 +33,6 @@ import org.apache.guacamole.net.auth.permission.ObjectPermissionSet; | ||||
|  * Service which provides convenience methods for creating, retrieving, and | ||||
|  * deleting object permissions within a backend database model. This service | ||||
|  * will automatically enforce the permissions of the current user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public abstract class ModeledObjectPermissionService | ||||
|     extends ModeledPermissionService<ObjectPermissionSet, ObjectPermission, ObjectPermissionModel> | ||||
|   | ||||
| @@ -36,7 +36,6 @@ import org.apache.guacamole.net.auth.permission.PermissionSet; | ||||
|  * permission sets that contain these permissions. This service will | ||||
|  * automatically enforce the permissions of the current user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <PermissionSetType> | ||||
|  *     The type of permission sets this service provides access to. | ||||
|  * | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.apache.guacamole.net.auth.permission.ObjectPermission; | ||||
|  | ||||
| /** | ||||
|  * Mapper for object-related permissions. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface ObjectPermissionMapper extends PermissionMapper<ObjectPermissionModel> { | ||||
|  | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.guacamole.net.auth.permission.ObjectPermission; | ||||
| /** | ||||
|  * Object representation of an object-related Guacamole permission, as | ||||
|  * represented in the database. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ObjectPermissionModel extends PermissionModel<ObjectPermission.Type> { | ||||
|  | ||||
|   | ||||
| @@ -30,8 +30,6 @@ import org.apache.guacamole.net.auth.permission.ObjectPermissionSet; | ||||
|  * Service which provides convenience methods for creating, retrieving, and | ||||
|  * deleting object permissions. This service will automatically enforce the | ||||
|  * permissions of the current user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface ObjectPermissionService | ||||
|     extends PermissionService<ObjectPermissionSet, ObjectPermission> { | ||||
|   | ||||
| @@ -32,8 +32,6 @@ import org.apache.guacamole.net.auth.permission.ObjectPermission; | ||||
|  * A database implementation of ObjectPermissionSet which uses an injected | ||||
|  * service to query and manipulate the object-level permissions associated with | ||||
|  * a particular user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public abstract class ObjectPermissionSet extends RestrictedObject | ||||
|     implements org.apache.guacamole.net.auth.permission.ObjectPermissionSet { | ||||
|   | ||||
| @@ -26,7 +26,6 @@ import org.apache.ibatis.annotations.Param; | ||||
| /** | ||||
|  * Generic base for mappers which handle permissions. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <PermissionType> | ||||
|  *     The type of permission model object handled by this mapper. | ||||
|  */ | ||||
| @@ -67,4 +66,4 @@ public interface PermissionMapper<PermissionType> { | ||||
|      */ | ||||
|     int delete(@Param("permissions") Collection<PermissionType> permissions); | ||||
|  | ||||
| } | ||||
| } | ||||
|   | ||||
| @@ -23,7 +23,6 @@ package org.apache.guacamole.auth.jdbc.permission; | ||||
|  * Generic base permission model which grants a permission of a particular type | ||||
|  * to a specific user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <PermissionType> | ||||
|  *     The type of permissions allowed within this model. | ||||
|  */ | ||||
|   | ||||
| @@ -38,7 +38,6 @@ import org.apache.guacamole.net.auth.permission.PermissionSet; | ||||
|  * these permissions. This service will automatically enforce the permissions | ||||
|  * of the current user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <PermissionSetType> | ||||
|  *     The type of permission sets this service provides access to. | ||||
|  * | ||||
|   | ||||
| @@ -21,8 +21,6 @@ package org.apache.guacamole.auth.jdbc.permission; | ||||
|  | ||||
| /** | ||||
|  * Mapper for sharing profile permissions. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface SharingProfilePermissionMapper | ||||
|         extends ObjectPermissionMapper {} | ||||
|   | ||||
| @@ -29,8 +29,6 @@ import org.apache.guacamole.auth.jdbc.user.ModeledUser; | ||||
|  * Service which provides convenience methods for creating, retrieving, and | ||||
|  * deleting sharing profile permissions. This service will automatically enforce | ||||
|  * the permissions of the current user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharingProfilePermissionService extends ModeledObjectPermissionService { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import com.google.inject.Inject; | ||||
|  * A database implementation of ObjectPermissionSet which uses an injected | ||||
|  * service to query and manipulate the sharing profile permissions associated | ||||
|  * with a particular user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharingProfilePermissionSet extends ObjectPermissionSet { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import org.apache.guacamole.net.auth.permission.SystemPermission; | ||||
|  | ||||
| /** | ||||
|  * Mapper for system-level permissions. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface SystemPermissionMapper extends PermissionMapper<SystemPermissionModel> { | ||||
|  | ||||
| @@ -47,4 +45,4 @@ public interface SystemPermissionMapper extends PermissionMapper<SystemPermissio | ||||
|     SystemPermissionModel selectOne(@Param("user") UserModel user, | ||||
|             @Param("type") SystemPermission.Type type); | ||||
|  | ||||
| } | ||||
| } | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.guacamole.net.auth.permission.SystemPermission; | ||||
| /** | ||||
|  * Object representation of an system-level Guacamole permission, as | ||||
|  * represented in the database. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SystemPermissionModel extends PermissionModel<SystemPermission.Type> { | ||||
|  | ||||
|   | ||||
| @@ -33,8 +33,6 @@ import org.apache.guacamole.net.auth.permission.SystemPermission; | ||||
|  * Service which provides convenience methods for creating, retrieving, and | ||||
|  * deleting system permissions. This service will automatically enforce | ||||
|  * the permissions of the current user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SystemPermissionService | ||||
|     extends ModeledPermissionService<SystemPermissionSet, SystemPermission, SystemPermissionModel> { | ||||
|   | ||||
| @@ -32,8 +32,6 @@ import org.apache.guacamole.net.auth.permission.SystemPermission; | ||||
|  * A database implementation of SystemPermissionSet which uses an injected | ||||
|  * service to query and manipulate the system permissions associated with a | ||||
|  * particular user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SystemPermissionSet extends RestrictedObject | ||||
|     implements org.apache.guacamole.net.auth.permission.SystemPermissionSet { | ||||
|   | ||||
| @@ -21,7 +21,5 @@ package org.apache.guacamole.auth.jdbc.permission; | ||||
|  | ||||
| /** | ||||
|  * Mapper for user permissions. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface UserPermissionMapper extends ObjectPermissionMapper {} | ||||
|   | ||||
| @@ -29,8 +29,6 @@ import org.apache.guacamole.auth.jdbc.user.ModeledUser; | ||||
|  * Service which provides convenience methods for creating, retrieving, and | ||||
|  * deleting user permissions. This service will automatically enforce the | ||||
|  * permissions of the current user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class UserPermissionService extends ModeledObjectPermissionService { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import com.google.inject.Inject; | ||||
|  * A database implementation of ObjectPermissionSet which uses an injected | ||||
|  * service to query and manipulate the user permissions associated with a | ||||
|  * particular user. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class UserPermissionSet extends ObjectPermissionSet { | ||||
|  | ||||
|   | ||||
| @@ -22,8 +22,6 @@ package org.apache.guacamole.auth.jdbc.security; | ||||
| /** | ||||
|  * Thrown when an attempt is made to set a user's password to a string which | ||||
|  * contains their own username, in violation of the defined password policy. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class PasswordContainsUsernameException extends PasswordPolicyException { | ||||
|  | ||||
|   | ||||
| @@ -21,7 +21,6 @@ package org.apache.guacamole.auth.jdbc.security; | ||||
|  | ||||
| /** | ||||
|  * A service to perform password encryption and checking. | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public interface PasswordEncryptionService { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import org.apache.guacamole.language.TranslatableMessage; | ||||
| /** | ||||
|  * Thrown when an attempt is made to set a user's password to a string which is | ||||
|  * too short, in violation of the defined password policy. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class PasswordMinimumLengthException extends PasswordPolicyException { | ||||
|  | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.guacamole.GuacamoleException; | ||||
| /** | ||||
|  * A set of restrictions which define the level of complexity required for | ||||
|  * the passwords of Guacamole user accounts. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface PasswordPolicy { | ||||
|  | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.apache.guacamole.language.TranslatableMessage; | ||||
| /** | ||||
|  * Thrown when an attempt to change a user's password fails due to a violation | ||||
|  * of password complexity policies. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class PasswordPolicyException extends GuacamoleClientException | ||||
|     implements Translatable { | ||||
|   | ||||
| @@ -34,8 +34,6 @@ import org.apache.guacamole.auth.jdbc.user.PasswordRecordModel; | ||||
| /** | ||||
|  * Service which verifies compliance with the password policy configured via | ||||
|  * guacamole.properties. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class PasswordPolicyService { | ||||
|  | ||||
|   | ||||
| @@ -23,8 +23,6 @@ package org.apache.guacamole.auth.jdbc.security; | ||||
|  * Thrown when an attempt is made to set a user's password to a string which | ||||
|  * contains no numeric characters (digits), in violation of the defined password | ||||
|  * policy. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class PasswordRequiresDigitException extends PasswordPolicyException { | ||||
|  | ||||
|   | ||||
| @@ -23,8 +23,6 @@ package org.apache.guacamole.auth.jdbc.security; | ||||
|  * Thrown when an attempt is made to set a user's password to a string which | ||||
|  * does not contain both uppercase and lowercase characters, in violation of the | ||||
|  * defined password policy. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class PasswordRequiresMultipleCaseException extends PasswordPolicyException { | ||||
|  | ||||
|   | ||||
| @@ -23,8 +23,6 @@ package org.apache.guacamole.auth.jdbc.security; | ||||
|  * Thrown when an attempt is made to set a user's password to a string which | ||||
|  * contains no non-alphanumeric characters (symbols), in violation of the | ||||
|  * defined password policy. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class PasswordRequiresSymbolException extends PasswordPolicyException { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import org.apache.guacamole.language.TranslatableMessage; | ||||
| /** | ||||
|  * Thrown when an attempt is made to reuse a previous password, in violation of | ||||
|  * the defined password policy. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class PasswordReusedException extends PasswordPolicyException { | ||||
|  | ||||
|   | ||||
| @@ -26,8 +26,6 @@ import org.apache.guacamole.language.TranslatableMessage; | ||||
|  * Thrown when an attempt is made to set a user's password before sufficient | ||||
|  * time has elapsed since the password was last reset, in violation of the | ||||
|  * defined password policy. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class PasswordTooYoungException extends PasswordPolicyException { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,8 @@ import java.security.NoSuchAlgorithmException; | ||||
| import javax.xml.bind.DatatypeConverter; | ||||
|  | ||||
| /** | ||||
|  * Provides a SHA-256 based implementation of the password encryption functionality. | ||||
|  * @author James Muehlner | ||||
|  * Provides a SHA-256 based implementation of the password encryption | ||||
|  * functionality. | ||||
|  */ | ||||
| public class SHA256PasswordEncryptionService implements PasswordEncryptionService { | ||||
|  | ||||
|   | ||||
| @@ -21,7 +21,6 @@ package org.apache.guacamole.auth.jdbc.security; | ||||
|  | ||||
| /** | ||||
|  * A service to generate password salts. | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public interface SaltService { | ||||
|     /** | ||||
|   | ||||
| @@ -24,7 +24,6 @@ import java.security.SecureRandom; | ||||
|  | ||||
| /** | ||||
|  * Generates password salts via SecureRandom. | ||||
|  * @author James Muehlner | ||||
|  */ | ||||
| public class SecureRandomSaltService implements SaltService { | ||||
|  | ||||
|   | ||||
| @@ -38,8 +38,6 @@ import org.apache.guacamole.net.auth.credentials.UserCredentials; | ||||
|  | ||||
| /** | ||||
|  * Service which provides convenience methods for sharing active connections. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ConnectionSharingService { | ||||
|  | ||||
|   | ||||
| @@ -25,8 +25,6 @@ import org.apache.guacamole.auth.jdbc.sharing.connection.SharedConnectionDefinit | ||||
|  | ||||
| /** | ||||
|  * A HashMap-based implementation of the SharedConnectionMap. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class HashSharedConnectionMap implements SharedConnectionMap { | ||||
|  | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import java.security.SecureRandom; | ||||
| /** | ||||
|  * An implementation of the ShareKeyGenerator which uses SecureRandom to | ||||
|  * generate cryptographically-secure random sharing keys. | ||||
|  *  | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SecureRandomShareKeyGenerator extends SecureRandom | ||||
|         implements ShareKeyGenerator { | ||||
|   | ||||
| @@ -22,8 +22,6 @@ package org.apache.guacamole.auth.jdbc.sharing; | ||||
| /** | ||||
|  * Produces unique keys that can be safely used for the automatically-generated | ||||
|  * "sharing credentials" associated with a shared connection. | ||||
|  *  | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface ShareKeyGenerator { | ||||
|      | ||||
|   | ||||
| @@ -37,8 +37,6 @@ import org.apache.guacamole.net.auth.credentials.GuacamoleInvalidCredentialsExce | ||||
|  * creation of corresponding UserContexts. The created UserContext objects are | ||||
|  * restricted to the connections associated with those share keys via a common | ||||
|  * ConnectionSharingService. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharedAuthenticationProviderService implements AuthenticationProviderService { | ||||
|  | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.guacamole.auth.jdbc.sharing.connection.SharedConnectionDefinit | ||||
| /** | ||||
|  * Represents a mapping between share keys and the Guacamole connection being | ||||
|  * shared. | ||||
|  *  | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface SharedConnectionMap { | ||||
|  | ||||
|   | ||||
| @@ -31,7 +31,6 @@ import java.util.concurrent.atomic.AtomicBoolean; | ||||
|  * to register new objects after the SharedObjectManager has been invalidated | ||||
|  * will cause the provided object to be immediately cleaned up. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  * @param <T> | ||||
|  *     The type of object managed by this SharedObjectManager. | ||||
|  */ | ||||
|   | ||||
| @@ -37,8 +37,6 @@ import org.apache.guacamole.protocol.GuacamoleConfiguration; | ||||
| /** | ||||
|  * A Connection which joins an active connection, limited by restrictions | ||||
|  * defined by a sharing profile. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharedConnection implements Connection { | ||||
|  | ||||
|   | ||||
| @@ -32,8 +32,6 @@ import org.slf4j.LoggerFactory; | ||||
|  * active connection with a sharing profile. The sharing profile defines the | ||||
|  * access provided to users of the shared active connection through its | ||||
|  * connection parameters. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharedConnectionDefinition { | ||||
|  | ||||
|   | ||||
| @@ -38,8 +38,6 @@ import org.apache.guacamole.net.auth.Directory; | ||||
|  * A Directory implementation which exposes an explicitly-registered set of | ||||
|  * share keys as connections. Only explicitly-registered share keys are | ||||
|  * accessible a SharedConnectionDirectory. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharedConnectionDirectory implements Directory<Connection> { | ||||
|  | ||||
|   | ||||
| @@ -37,8 +37,6 @@ import org.apache.guacamole.protocol.GuacamoleClientInformation; | ||||
|  * is statically defined, and all Connections which are intended to be contained | ||||
|  * within an instance of SharedRootConnectionGroup MUST return that identifier | ||||
|  * via getParentIdentifier(). | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharedRootConnectionGroup implements ConnectionGroup { | ||||
|  | ||||
|   | ||||
| @@ -28,8 +28,6 @@ import org.apache.guacamole.net.auth.simple.SimpleObjectPermissionSet; | ||||
| /** | ||||
|  * An immutable ObjectPermissionSet which defines only READ permissions for a | ||||
|  * fixed set of identifiers. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharedObjectPermissionSet extends SimpleObjectPermissionSet { | ||||
|  | ||||
|   | ||||
| @@ -27,8 +27,6 @@ import org.apache.guacamole.net.auth.Credentials; | ||||
| /** | ||||
|  * Associates a user with the credentials they used to authenticate, including | ||||
|  * any provided share key. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharedAuthenticatedUser extends RemoteAuthenticatedUser { | ||||
|  | ||||
|   | ||||
| @@ -37,8 +37,6 @@ import org.apache.guacamole.net.auth.simple.SimpleSystemPermissionSet; | ||||
|  * An immutable implementation of User which defines READ permission for each of | ||||
|  * the objects accessible through the various directories of a given | ||||
|  * SharedUserContext. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharedUser implements User { | ||||
|  | ||||
|   | ||||
| @@ -45,8 +45,6 @@ import org.apache.guacamole.net.auth.simple.SimpleDirectory; | ||||
|  * themselves, the any SharedConnections associated with that user via share | ||||
|  * keys, and an internal root connection group containing only those | ||||
|  * connections. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharedUserContext implements UserContext { | ||||
|  | ||||
|   | ||||
| @@ -30,8 +30,6 @@ import org.apache.guacamole.net.auth.SharingProfile; | ||||
| /** | ||||
|  * An implementation of the SharingProfile object which is backed by a database | ||||
|  * model. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class ModeledSharingProfile | ||||
|         extends ModeledChildDirectoryObject<SharingProfileModel> | ||||
|   | ||||
| @@ -32,8 +32,6 @@ import org.mybatis.guice.transactional.Transactional; | ||||
| /** | ||||
|  * Implementation of the SharingProfile Directory which is driven by an | ||||
|  * underlying, arbitrary database. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharingProfileDirectory extends RestrictedObject | ||||
|     implements Directory<SharingProfile> { | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.ibatis.annotations.Param; | ||||
|  | ||||
| /** | ||||
|  * Mapper for sharing profile objects. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public interface SharingProfileMapper | ||||
|         extends ModeledDirectoryObjectMapper<SharingProfileModel> { | ||||
| @@ -49,4 +47,4 @@ public interface SharingProfileMapper | ||||
|             @Param("parentIdentifier") String parentIdentifier, | ||||
|             @Param("name") String name); | ||||
|      | ||||
| } | ||||
| } | ||||
|   | ||||
| @@ -24,8 +24,6 @@ import org.apache.guacamole.auth.jdbc.base.ChildObjectModel; | ||||
| /** | ||||
|  * Object representation of a Guacamole sharing profile, as represented in the | ||||
|  * database. | ||||
|  * | ||||
|  * @author Michael Jumper | ||||
|  */ | ||||
| public class SharingProfileModel extends ChildObjectModel { | ||||
|  | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user