jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1375077 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/token/TokenProviderImpl.java
Date Mon, 20 Aug 2012 15:53:26 GMT
Author: angela
Date: Mon Aug 20 15:53:26 2012
New Revision: 1375077

URL: http://svn.apache.org/viewvc?rev=1375077&view=rev
Log:
 OAK-91 - Implement Authentication Support (WIP)
 
 minor exception clean up

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/token/TokenProviderImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/token/TokenProviderImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/token/TokenProviderImpl.java?rev=1375077&r1=1375076&r2=1375077&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/token/TokenProviderImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/token/TokenProviderImpl.java
Mon Aug 20 15:53:26 2012
@@ -29,7 +29,6 @@ import java.util.HashMap;
 import java.util.Map;
 import javax.jcr.Credentials;
 import javax.jcr.PropertyType;
-import javax.jcr.RepositoryException;
 import javax.jcr.SimpleCredentials;
 
 import org.apache.jackrabbit.JcrConstants;
@@ -150,8 +149,6 @@ public class TokenProviderImpl implement
                 log.debug("Failed to create login token ", e.getMessage());
             } catch (CommitFailedException e) {
                 log.debug("Failed to create login token ", e.getMessage());
-            } catch (RepositoryException e) {
-                log.debug("Failed to create login token ", e.getMessage());
             }
         }
 
@@ -244,7 +241,7 @@ public class TokenProviderImpl implement
         }
     }
 
-    private static Tree getUserTree(ContentSession contentSession, Root root, String userID)
throws RepositoryException {
+    private static Tree getUserTree(ContentSession contentSession, Root root, String userID)
{
         UserProvider userProvider = new UserProviderImpl(contentSession, root, null);
         return userProvider.getAuthorizable(userID);
     }



Mime
View raw message