Class LDAPAccessAuthenticationServiceDescriptor

  • All Implemented Interfaces:
    com.jscape.util.db.IntVersioned, java.io.Serializable

    public class LDAPAccessAuthenticationServiceDescriptor
    extends AuthenticationServiceDescriptor
    LDAP access authentication service descriptor. The service described by this descriptor takes responsibility for authenticating incoming requests against LDAP system.
    Author:
    Alex Usun
    See Also:
    Serialized Form
    • Constructor Detail

      • LDAPAccessAuthenticationServiceDescriptor

        public LDAPAccessAuthenticationServiceDescriptor​(java.lang.String host,
                                                         int port,
                                                         long connectionTimeoutMillis,
                                                         java.lang.String userDNPattern,
                                                         java.lang.String accountTemplate,
                                                         com.jscape.inet.mft.subsystems.authentication.UsernameConversionType usernameConversionType,
                                                         boolean useSsl,
                                                         boolean emptyPasswordAllowed,
                                                         com.jscape.inet.mft.LdapFailoverServerParameters[] failoverServers)
        Creates a new descriptor instance.
        Parameters:
        host - LDAP server host/IP
        port - LDAP server port
        connectionTimeoutMillis - connection timeout millis
        userDNPattern - access pattern
        accountTemplate - account template name
        useSsl - SSL connection usage flag
        emptyPasswordAllowed - empty password allowed
        failoverServers - failover server parameters
      • LDAPAccessAuthenticationServiceDescriptor

        public LDAPAccessAuthenticationServiceDescriptor()
        This constructor is used by serialization sub-system and is not intended to use directly in client code.
    • Method Detail

      • getHost

        public java.lang.String getHost()
        Returns LDAP server host/IP.
        Returns:
        LDAP server host/IP
      • setHost

        public void setHost​(java.lang.String value)
        Sets LDAP server host/IP
        Parameters:
        value - LDAP server host/IP
      • getPort

        public int getPort()
        Returns LDAP server port.
        Returns:
        LDAP server port
      • setPort

        public void setPort​(int value)
        Sets LDAP server port.
        Parameters:
        value - LDAP server port
      • getConnectionTimeoutMillis

        public long getConnectionTimeoutMillis()
        Returns connection timeout millis.
        Returns:
        connection timeout millis
      • setConnectionTimeoutMillis

        public void setConnectionTimeoutMillis​(long value)
        Sets connection timeout millis.
        Parameters:
        value - connection timeout millis
      • getUserDNPattern

        public java.lang.String getUserDNPattern()
        Returns server access pattern.
        Returns:
        server access pattern
      • setUserDNPattern

        public void setUserDNPattern​(java.lang.String value)
        Sets server access pattern.
        Parameters:
        value - server access pattern
      • getAccountTemplate

        public java.lang.String getAccountTemplate()
        Returns the account template name.
        Returns:
        the account template name
      • setAccountTemplate

        public void setAccountTemplate​(java.lang.String value)
        Sets the account template name.
        Parameters:
        value - the account template name
      • getUsernameConversionType

        public com.jscape.inet.mft.subsystems.authentication.UsernameConversionType getUsernameConversionType()
      • setUsernameConversionType

        public void setUsernameConversionType​(com.jscape.inet.mft.subsystems.authentication.UsernameConversionType value)
      • getUseSsl

        public boolean getUseSsl()
        Returns SSL usage flag.
        Returns:
        true if SSL conection should be used false otherwise
      • setUseSsl

        public void setUseSsl​(boolean value)
        Sets SSL usage flag.
        Parameters:
        value - if true SSL connection will be used
      • getEmptyPasswordAllowed

        public boolean getEmptyPasswordAllowed()
        Returns empty password allowed flag.
        Returns:
        true if empty password is allowed; false otherwise
      • setEmptyPasswordAllowed

        public void setEmptyPasswordAllowed​(boolean value)
        Sets empty password allowed flag.
        Parameters:
        value - if true the empty password will be allowed due authentication
      • getFailoverServers

        public com.jscape.inet.mft.LdapFailoverServerParameters[] getFailoverServers()
        Returns failover servers parameters.
        Returns:
        failover servers parameters
      • setFailoverServers

        public void setFailoverServers​(com.jscape.inet.mft.LdapFailoverServerParameters[] value)
        Sets failover servers parameters.
        Parameters:
        value - failover server parameters
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object