Rename doAs with exception in tryAs
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / CurrentUser.java
index 3fef3033d6e04a32215cf4116baefa504577b81e..5b4ab174e59be0d57a2ce986e78d94fc643c7b7f 100644 (file)
@@ -82,7 +82,7 @@ public final class CurrentUser {
        }
 
        /** Executes as the current user */
-       public final static <T> T doAs(PrivilegedExceptionAction<T> action) throws PrivilegedActionException {
+       public final static <T> T tryAs(PrivilegedExceptionAction<T> action) throws PrivilegedActionException {
                return Subject.doAs(currentSubject(), action);
        }