Class LdapAuthInfo

java.lang.Object
com.netscape.cmscore.ldapconn.LdapAuthInfo

public class LdapAuthInfo extends Object
class for reading ldap authentication info from config store
  • Field Details

  • Constructor Details

    • LdapAuthInfo

      public LdapAuthInfo()
      must call init(config) after this constructor.
  • Method Details

    • getPasswordFromStore

      public String getPasswordFromStore(String prompt)
    • init

      public void init(LDAPAuthenticationConfig config) throws EBaseException
      initialize this class from the config store.
      Throws:
      EBaseException
    • init

      public void init(LDAPAuthenticationConfig config, String host, int port, boolean secure) throws EBaseException
      initialize this class from the config store, and verify the password.
      Parameters:
      host - The host that the directory server is running on. This will be used to verify the password by attempting to connect. If it is null, the password will not be verified.
      port - The port that the directory server is running on.
      Throws:
      EBaseException
    • getBindDN

      public String getBindDN() throws EBaseException
      Throws:
      EBaseException
    • getBindPassword

      public String getBindPassword() throws EBaseException
      Throws:
      EBaseException
    • getClientCertNickname

      public String getClientCertNickname() throws EBaseException
      Throws:
      EBaseException
    • reset

      public void reset()
    • getAuthType

      public int getAuthType()
      get authentication type.
      Returns:
      one of:
      LdapAuthInfo.LDAP_AUTHTYPE_BASICAUTH or LdapAuthInfo.LDAP_AUTHTYPE_SSLCLIENTAUTH
    • getPasswordStore

      public PasswordStore getPasswordStore()
    • setPasswordStore

      public void setPasswordStore(PasswordStore passwordStore)
    • addPassword

      public void addPassword(String prompt, String pw)
      Add password to private password data structure.
      Parameters:
      prompt - Password prompt.
      pw - Password itself.
    • removePassword

      public void removePassword(String prompt)
      Remove password from private password data structure.
      Parameters:
      prompt - Identify password to remove with prompt.