Class GssApiSaslClient

  • All Implemented Interfaces:
    SaslClient<GssApiBindRequest>

    public class GssApiSaslClient
    extends java.lang.Object
    implements SaslClient<GssApiBindRequest>
    GSSAPI SASL client that implements the JAAS details to perform an LDAP bind with a kerberos principal. If a specific JAAS name is set on the GssApiBindRequest that configuration will be used. Else if no JAAS configuration properties are supplied a configuration with the name 'ldaptive-gssapi' will be attempted. Otherwise the 'com.sun.security.auth.module.Krb5LoginModule' is instantiated and used with any options provided from GssApiBindRequest. This allows configuration to occur both from a JAAS login configuration file or by setting properties directly on the request.
    Author:
    Middleware Services
    • Constructor Detail

      • GssApiSaslClient

        public GssApiSaslClient()
    • Method Detail

      • bind

        public BindResponse bind​(TransportConnection conn,
                                 GssApiBindRequest request)
                          throws javax.security.auth.login.LoginException
        Performs a GSSAPI SASL bind.
        Specified by:
        bind in interface SaslClient<GssApiBindRequest>
        Parameters:
        conn - to perform the bind on
        request - SASL request to perform
        Returns:
        final result of the bind process
        Throws:
        javax.security.auth.login.LoginException - if an error occurs