Ignore:
Timestamp:
04/05/19 13:21:26 (5 years ago)
Author:
bln4
Message:

Updated VM property auth to expeditee.authentication.
Added two static functions to AuthenticationBrowser to help with the language used to determine if a user is authenticated (isAuthenticated and isAuthenticationRequired)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/auth/AuthenticatorBrowser.java

    r1282 r1287  
    9090        }
    9191       
     92        public static boolean isAuthenticationRequired() {
     93                return Boolean.getBoolean("expeditee.authentication");
     94        }
     95       
     96        public static boolean isAuthenticated() {
     97                return isAuthenticationRequired() && !UserSettings.UserName.get().equals(Browser.USER_NOBODY);
     98        }
     99       
    92100        private AuthenticatorBrowser() throws KeyStoreException, FileNotFoundException, IOException, NoSuchAlgorithmException, CertificateException, ClassNotFoundException, SQLException {
    93101                super("Authentication");
Note: See TracChangeset for help on using the changeset viewer.