From 12b9c7199beafaf97e8094927c57f940bf8a5090 Mon Sep 17 00:00:00 2001 From: "Ray J. Greenwell" Date: Wed, 20 Jun 2012 16:40:30 -0700 Subject: [PATCH] Make AuthException public. The Authenticator may delegate to another class that can't currently access this. --- .../presents/server/Authenticator.java | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/core/src/main/java/com/threerings/presents/server/Authenticator.java b/core/src/main/java/com/threerings/presents/server/Authenticator.java index caccdfb75..9f1cfc0f8 100644 --- a/core/src/main/java/com/threerings/presents/server/Authenticator.java +++ b/core/src/main/java/com/threerings/presents/server/Authenticator.java @@ -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); - } - } }