]> source.dussan.org Git - archiva.git/commitdiff
use real type here to have more readable code
authorOlivier Lamy <olamy@apache.org>
Wed, 21 Nov 2012 23:34:11 +0000 (23:34 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 21 Nov 2012 23:34:11 +0000 (23:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1412360 13f79535-47bb-0310-9956-ffa450edef68

redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/AuthenticationResult.java

index 189eb1fd2115ba234caf6a01c2393ec12a0ef554..7f3dfeb3d66370806f8ac5d8126708018092cc53 100644 (file)
@@ -36,7 +36,7 @@ public class AuthenticationResult
     /**
      * FIXME olamy this Object is a pain !!!
      */
-    private Object principal;
+    private String principal;
 
     // TODO: why aren't these just thrown from the authenticate() method?
     private Exception exception;
@@ -50,14 +50,14 @@ public class AuthenticationResult
         this.exception = null;
     }
 
-    public AuthenticationResult( boolean authenticated, Object principal, Exception exception )
+    public AuthenticationResult( boolean authenticated, String principal, Exception exception )
     {
         isAuthenticated = authenticated;
         this.principal = principal;
         this.exception = exception;
     }
 
-    public AuthenticationResult( boolean authenticated, Object principal, Exception exception, Map<String,String> exceptionsMap )
+    public AuthenticationResult( boolean authenticated, String principal, Exception exception, Map<String,String> exceptionsMap )
     {
         isAuthenticated = authenticated;
         this.principal = principal;
@@ -70,7 +70,7 @@ public class AuthenticationResult
         return isAuthenticated;
     }
 
-    public Object getPrincipal()
+    public String getPrincipal()
     {
         return principal;
     }