]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.cms/src/org/argeo/cms/auth/CurrentUser.java
Improve pseudo CA
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / CurrentUser.java
index 33a226737bd5c8ac52c6ea3febfacd5b55340f0a..5b4ab174e59be0d57a2ce986e78d94fc643c7b7f 100644 (file)
@@ -65,15 +65,6 @@ public final class CurrentUser {
                return isAnonymous(currentSubject());
        }
 
-       /**
-        * Whether a user is currently authenticated. @deprecate User !isAnonymous()
-        * instead.
-        */
-       @Deprecated
-       public static boolean isRegistered() {
-               return !isAnonymous();
-       }
-
        /** Roles of the currently logged-in user */
        public final static Set<String> roles() {
                return roles(currentSubject());
@@ -91,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);
        }