Package org.ldaptive.transport
Class GssApiSaslClient
- java.lang.Object
-
- org.ldaptive.transport.GssApiSaslClient
-
- All Implemented Interfaces:
SaslClient<GssApiBindRequest>
public class GssApiSaslClient extends 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 theGssApiBindRequest
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 fromGssApiBindRequest
. This allows configuration to occur both from a JAAS login configuration file or by setting properties directly on the request.
-
-
Constructor Summary
Constructors Constructor Description GssApiSaslClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BindResponse
bind(TransportConnection conn, GssApiBindRequest request)
Performs a GSSAPI SASL bind.
-
-
-
Field Detail
-
LOGGER
private static final Logger LOGGER
Logger for this class.
-
-
Method Detail
-
bind
public BindResponse bind(TransportConnection conn, GssApiBindRequest request) throws LoginException, SaslException
Performs a GSSAPI SASL bind.- Specified by:
bind
in interfaceSaslClient<GssApiBindRequest>
- Parameters:
conn
- to perform the bind onrequest
- SASL request to perform- Returns:
- final result of the bind process
- Throws:
LoginException
- if an error occursSaslException
- if an error occurs
-
-