Fixing Javadoc for Java 8 based builds

This commit is contained in:
Joakim Erdfelt 2015-11-30 11:28:16 -07:00
parent ee9c57e3ea
commit fe84c34bde
5 changed files with 27 additions and 62 deletions

View File

@ -77,17 +77,11 @@ public class DataSourceLoginService extends MappedLoginService
/** /**
* DBUser * DBUser
*
*
*/ */
public class DBUser extends KnownUser public class DBUser extends KnownUser
{ {
private int _key; private int _key;
/**
* @param name
* @param credential
*/
public DBUser(String name, Credential credential, int key) public DBUser(String name, Credential credential, int key)
{ {
super(name, credential); super(name, credential);
@ -364,7 +358,6 @@ public class DataSourceLoginService extends MappedLoginService
/** /**
* @see org.eclipse.jetty.security.MappedLoginService#loadUserInfo(java.lang.String) * @see org.eclipse.jetty.security.MappedLoginService#loadUserInfo(java.lang.String)
* @Override
*/ */
public KnownUser loadUserInfo (String username) public KnownUser loadUserInfo (String username)
{ {
@ -399,7 +392,6 @@ public class DataSourceLoginService extends MappedLoginService
/** /**
* @see org.eclipse.jetty.security.MappedLoginService#loadRoleInfo(org.eclipse.jetty.security.MappedLoginService.KnownUser) * @see org.eclipse.jetty.security.MappedLoginService#loadRoleInfo(org.eclipse.jetty.security.MappedLoginService.KnownUser)
* @Override
*/ */
public String[] loadRoleInfo (KnownUser user) public String[] loadRoleInfo (KnownUser user)
{ {
@ -436,10 +428,6 @@ public class DataSourceLoginService extends MappedLoginService
return null; return null;
} }
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
@Override @Override
public UserIdentity login(String username, Object credentials, ServletRequest request) public UserIdentity login(String username, Object credentials, ServletRequest request)
@ -507,8 +495,6 @@ public class DataSourceLoginService extends MappedLoginService
prepareTables(); prepareTables();
} }
private void prepareTables() private void prepareTables()
throws NamingException, SQLException throws NamingException, SQLException
{ {
@ -609,12 +595,10 @@ public class DataSourceLoginService extends MappedLoginService
} }
} }
private Connection getConnection () private Connection getConnection ()
throws NamingException, SQLException throws NamingException, SQLException
{ {
initDb(); initDb();
return _datasource.getConnection(); return _datasource.getConnection();
} }
} }

View File

@ -43,7 +43,8 @@ public interface Authenticator
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
/** /**
* Configure the Authenticator * Configure the Authenticator
* @param configuration *
* @param configuration the configuration
*/ */
void setConfiguration(AuthConfiguration configuration); void setConfiguration(AuthConfiguration configuration);
@ -64,13 +65,16 @@ public interface Authenticator
* where the http method of the original request causing authentication * where the http method of the original request causing authentication
* is not the same as the http method resulting from the redirect * is not the same as the http method resulting from the redirect
* after authentication. * after authentication.
* @param request *
* @param request the request to manipulate
*/ */
void prepareRequest(ServletRequest request); void prepareRequest(ServletRequest request);
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
/** Validate a request /**
* Validate a request
*
* @param request The request * @param request The request
* @param response The response * @param response The response
* @param mandatory True if authentication is mandatory. * @param mandatory True if authentication is mandatory.
@ -79,18 +83,20 @@ public interface Authenticator
* implement {@link org.eclipse.jetty.server.Authentication.ResponseSent}. If Authentication is not manditory, then a * implement {@link org.eclipse.jetty.server.Authentication.ResponseSent}. If Authentication is not manditory, then a
* {@link org.eclipse.jetty.server.Authentication.Deferred} may be returned. * {@link org.eclipse.jetty.server.Authentication.Deferred} may be returned.
* *
* @throws ServerAuthException * @throws ServerAuthException if unable to validate request
*/ */
Authentication validateRequest(ServletRequest request, ServletResponse response, boolean mandatory) throws ServerAuthException; Authentication validateRequest(ServletRequest request, ServletResponse response, boolean mandatory) throws ServerAuthException;
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
/** /**
* @param request * is response secure
* @param response *
* @param mandatory * @param request the request
* @param validatedUser * @param response the response
* @param mandatory if security is mandator
* @param validatedUser the user that was validated
* @return true if response is secure * @return true if response is secure
* @throws ServerAuthException * @throws ServerAuthException if unable to test response
*/ */
boolean secureResponse(ServletRequest request, ServletResponse response, boolean mandatory, User validatedUser) throws ServerAuthException; boolean secureResponse(ServletRequest request, ServletResponse response, boolean mandatory, User validatedUser) throws ServerAuthException;
@ -106,7 +112,8 @@ public interface Authenticator
String getAuthMethod(); String getAuthMethod();
String getRealmName(); String getRealmName();
/** Get a SecurityHandler init parameter /**
* Get a SecurityHandler init parameter
* @see SecurityHandler#getInitParameter(String) * @see SecurityHandler#getInitParameter(String)
* @param param parameter name * @param param parameter name
* @return Parameter value or null * @return Parameter value or null

View File

@ -29,15 +29,15 @@ public interface ConstraintAware
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
/** Set Constraint Mappings and roles. /** Set Constraint Mappings and roles.
* Can only be called during initialization. * Can only be called during initialization.
* @param constraintMappings * @param constraintMappings the mappings
* @param roles * @param roles the roles
*/ */
void setConstraintMappings(List<ConstraintMapping> constraintMappings, Set<String> roles); void setConstraintMappings(List<ConstraintMapping> constraintMappings, Set<String> roles);
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
/** Add a Constraint Mapping. /** Add a Constraint Mapping.
* May be called for running webapplication as an annotated servlet is instantiated. * May be called for running webapplication as an annotated servlet is instantiated.
* @param mapping * @param mapping the mapping
*/ */
void addConstraintMapping(ConstraintMapping mapping); void addConstraintMapping(ConstraintMapping mapping);
@ -45,7 +45,7 @@ public interface ConstraintAware
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
/** Add a Role definition. /** Add a Role definition.
* May be called on running webapplication as an annotated servlet is instantiated. * May be called on running webapplication as an annotated servlet is instantiated.
* @param role * @param role the role
*/ */
void addRole(String role); void addRole(String role);
@ -53,7 +53,7 @@ public interface ConstraintAware
* See Servlet Spec 31, sec 13.8.4, pg 145 * See Servlet Spec 31, sec 13.8.4, pg 145
* When true, requests with http methods not explicitly covered either by inclusion or omissions * When true, requests with http methods not explicitly covered either by inclusion or omissions
* in constraints, will have access denied. * in constraints, will have access denied.
* @param deny * @param deny true for denied method access
*/ */
void setDenyUncoveredHttpMethods(boolean deny); void setDenyUncoveredHttpMethods(boolean deny);

View File

@ -65,17 +65,11 @@ public class HashLoginService extends MappedLoginService implements UserListener
{ {
String[] _roles; String[] _roles;
/**
* @param name
* @param credential
*/
public HashKnownUser(String name, Credential credential) public HashKnownUser(String name, Credential credential)
{ {
super(name, credential); super(name, credential);
} }
public void setRoles (String[] roles) public void setRoles (String[] roles)
{ {
_roles = roles; _roles = roles;
@ -87,8 +81,6 @@ public class HashLoginService extends MappedLoginService implements UserListener
} }
} }
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
public HashLoginService() public HashLoginService()
{ {

View File

@ -41,24 +41,17 @@ import org.eclipse.jetty.util.security.Credential;
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
/** /**
* HashMapped User Realm with JDBC as data source. * HashMapped User Realm with JDBC as data source.
* The login() method checks the inherited Map for the user. If the user is not * The {@link #login(String, Object, ServletRequest)} method checks the inherited Map for the user. If the user is not
* found, it will fetch details from the database and populate the inherited * found, it will fetch details from the database and populate the inherited
* Map. It then calls the superclass login() method to perform the actual * Map. It then calls the superclass {@link #login(String, Object, ServletRequest)} method to perform the actual
* authentication. Periodically (controlled by configuration parameter), * authentication. Periodically (controlled by configuration parameter),
* internal hashes are cleared. Caching can be disabled by setting cache refresh * internal hashes are cleared. Caching can be disabled by setting cache refresh
* interval to zero. Uses one database connection that is initialized at * interval to zero. Uses one database connection that is initialized at
* startup. Reconnect on failures. authenticate() is 'synchronized'. * startup. Reconnect on failures.
* * <p>
* An example properties file for configuration is in * An example properties file for configuration is in
* $JETTY_HOME/etc/jdbcRealm.properties * <code>${jetty.home}/etc/jdbcRealm.properties</code>
*
* @version $Id: JDBCLoginService.java 4792 2009-03-18 21:55:52Z gregw $
*
*
*
*
*/ */
public class JDBCLoginService extends MappedLoginService public class JDBCLoginService extends MappedLoginService
{ {
private static final Logger LOG = Log.getLogger(JDBCLoginService.class); private static final Logger LOG = Log.getLogger(JDBCLoginService.class);
@ -80,17 +73,11 @@ public class JDBCLoginService extends MappedLoginService
/** /**
* JDBCKnownUser * JDBCKnownUser
*
*
*/ */
public class JDBCKnownUser extends KnownUser public class JDBCKnownUser extends KnownUser
{ {
int _userKey; int _userKey;
/**
* @param name
* @param credential
*/
public JDBCKnownUser(String name, Credential credential, int key) public JDBCKnownUser(String name, Credential credential, int key)
{ {
super(name, credential); super(name, credential);
@ -306,7 +293,6 @@ public class JDBCLoginService extends MappedLoginService
/** /**
* @see org.eclipse.jetty.security.MappedLoginService#loadUserInfo(java.lang.String) * @see org.eclipse.jetty.security.MappedLoginService#loadUserInfo(java.lang.String)
* @Override
*/ */
public KnownUser loadUserInfo (String username) public KnownUser loadUserInfo (String username)
{ {
@ -346,7 +332,6 @@ public class JDBCLoginService extends MappedLoginService
/** /**
* @see org.eclipse.jetty.security.MappedLoginService#loadRoleInfo(org.eclipse.jetty.security.MappedLoginService.KnownUser) * @see org.eclipse.jetty.security.MappedLoginService#loadRoleInfo(org.eclipse.jetty.security.MappedLoginService.KnownUser)
* @Override
*/ */
public String[] loadRoleInfo (KnownUser user) public String[] loadRoleInfo (KnownUser user)
{ {
@ -384,8 +369,6 @@ public class JDBCLoginService extends MappedLoginService
} }
/** /**
* Close an existing connection * Close an existing connection
*/ */
@ -398,5 +381,4 @@ public class JDBCLoginService extends MappedLoginService
} }
_con = null; _con = null;
} }
} }