jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1336762 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ContentSessionImpl.java
Date Thu, 10 May 2012 15:55:29 GMT
Author: angela
Date: Thu May 10 15:55:29 2012
New Revision: 1336762

URL: http://svn.apache.org/viewvc?rev=1336762&view=rev
Log:
 OAK-91 - Implement Authentication Support (WIP)
 
 - call LoginContext#logout in ContentSession#close

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ContentSessionImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ContentSessionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ContentSessionImpl.java?rev=1336762&r1=1336761&r2=1336762&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ContentSessionImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ContentSessionImpl.java
Thu May 10 15:55:29 2012
@@ -27,6 +27,7 @@ import org.slf4j.LoggerFactory;
 
 import javax.jcr.SimpleCredentials;
 import javax.security.auth.login.LoginContext;
+import javax.security.auth.login.LoginException;
 import java.io.IOException;
 import java.util.Set;
 
@@ -81,7 +82,11 @@ class ContentSessionImpl implements Cont
 
     @Override
     public void close() throws IOException {
-        // todo implement close
+        try {
+            loginContext.logout();
+        } catch (LoginException e) {
+            log.error("Error during logout.", e);
+        }
     }
 
     @Override



Mime
View raw message