}
};
- fileSystem = CurrentUser.doAs(pea);
+ fileSystem = CurrentUser.tryAs(pea);
}
return fileSystem.getPath(getCurrentHomePath() + "/" + FS_FILES);
} catch (URISyntaxException | PrivilegedActionException e) {
}
/** 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);
}