Class AuthenticationManager


  • public class AuthenticationManager
    extends java.lang.Object
    • Constructor Detail

      • AuthenticationManager

        public AuthenticationManager​(ch.exense.commons.app.Configuration configuration,
                                     ch.commons.auth.Authenticator authenticator,
                                     UserAccessor userAccessor)
    • Method Detail

      • useAuthentication

        public boolean useAuthentication()
      • getAuthenticatorName

        public java.lang.String getAuthenticatorName()
      • authenticate

        public boolean authenticate​(Session session,
                                    ch.commons.auth.Credentials credentials)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setUserToSession

        protected void setUserToSession​(Session session,
                                        java.lang.String username)
      • logoutSession

        protected void logoutSession​(Session session)
      • authenticateDefaultUserIfAuthenticationIsDisabled

        public void authenticateDefaultUserIfAuthenticationIsDisabled​(Session session)
      • defaultAdminUser

        public static User defaultAdminUser()
      • resetPwd

        public java.lang.String resetPwd​(User user)
      • encryptPwd

        public java.lang.String encryptPwd​(java.lang.String pwd)