Class SaLDAPAuthenticator


  • public final class SaLDAPAuthenticator
    extends java.lang.Object
    LDAP Authenification.
    Author:
    rbo
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.naming.directory.DirContext authenticate​(java.lang.String name, char[] password)
      Authenicates the given user against the LDAP server.
      static SaLDAPAuthenticator getInstance​(java.util.Properties props)
      Get the instance of this class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static SaLDAPAuthenticator getInstance​(java.util.Properties props)
        Get the instance of this class.
        Parameters:
        props - Server properties
        Returns:
        Authenticator
      • authenticate

        public javax.naming.directory.DirContext authenticate​(java.lang.String name,
                                                              char[] password)
                                                       throws SaSystemException
        Authenicates the given user against the LDAP server.
        Parameters:
        name - Username
        password - Password
        Returns:
        The context of this user
        Throws:
        SaSystemException - The SaRMICommandException