Class XSAuthenticationModule


  • public class XSAuthenticationModule
    extends java.lang.Object
    This class provides authentication functions to verify the user credentials against the Database.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean authenticate​(java.lang.String url, java.lang.String user, java.lang.String password)
      Authenticates the user against the Database.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XSAuthenticationModule

        public XSAuthenticationModule()
    • Method Detail

      • authenticate

        public static boolean authenticate​(java.lang.String url,
                                           java.lang.String user,
                                           java.lang.String password)
                                    throws java.sql.SQLException,
                                           XSException
        Authenticates the user against the Database.
        Parameters:
        url - database url
        user - user ID
        password - password
        Returns:
        true if success, false if fail
        Throws:
        java.sql.SQLException - when a JDBC exception is thrown
        XSException - a generic error is detected