Make AuthException public.

The Authenticator may delegate to another class that
can't currently access this.
This commit is contained in:
Ray J. Greenwell
2012-06-20 16:40:30 -07:00
parent 2114482e2d
commit 12b9c7199b
@@ -39,6 +39,17 @@ import static com.threerings.presents.Log.log;
*/
public abstract class Authenticator
{
/**
* An exception that can be thrown during {@link #processAuthentication}. The results of
* {@link #getMessage} string will be filled in as the auth failure code.
*/
public static class AuthException extends Exception
{
public AuthException (String code) {
super(code);
}
}
/**
* Called by the connection management code when an authenticating connection has received its
* authentication request from the client.
@@ -104,13 +115,4 @@ public abstract class Authenticator
*/
protected abstract void processAuthentication (AuthingConnection conn, AuthResponse rsp)
throws Exception;
/** An exception that can be thrown during {@link #processAuthentication}. The results of
* {@link #getMessage} string will be filled in as the auth failure code. */
protected static class AuthException extends Exception
{
public AuthException (String code) {
super(code);
}
}
}