Package org.ldaptive.sasl
Class SaslConfig
java.lang.Object
org.ldaptive.AbstractConfig
org.ldaptive.sasl.SaslConfig
Contains basic configuration data for SASL authentication.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
sasl authorization id.private Mechanism
sasl mechanism.private Boolean
perform mutual authentication.sasl properties.private QualityOfProtection[]
sasl quality of protection.private String
sasl realm.private SecurityStrength[]
sasl security strength.Fields inherited from class org.ldaptive.AbstractConfig
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SaslConfig.Builder
builder()
Creates a builder for this class.Returns the sasl authorization id.Returns the sasl mechanism.Returns whether mutual authentication should occur.Returns sasl properties.getProperty
(String name) Returns a sasl property.Returns the sasl quality of protection.getRealm()
Returns the sasl realm.Returns the sasl security strength.void
Sets the sasl authorization id.void
Sets the sasl mechanism.void
Sets whether mutual authentication should occur.void
setProperties
(Map<String, ?> props) Sets sasl properties.void
setProperty
(String name, Object value) Sets a sasl property.void
Sets the sasl quality of protection.void
Sets the sasl realm.void
Sets the sasl security strength.toString()
Methods inherited from class org.ldaptive.AbstractConfig
checkArrayContainsNull, checkImmutable, checkStringInput, makeImmutable
-
Field Details
-
mechanism
sasl mechanism. -
authorizationId
sasl authorization id. -
mutualAuthentication
perform mutual authentication. -
qualityOfProtection
sasl quality of protection. -
securityStrength
sasl security strength. -
saslRealm
sasl realm. -
properties
sasl properties.
-
-
Constructor Details
-
SaslConfig
public SaslConfig()
-
-
Method Details
-
getMechanism
Returns the sasl mechanism.- Returns:
- mechanism
-
setMechanism
Sets the sasl mechanism.- Parameters:
m
- mechanism
-
getAuthorizationId
Returns the sasl authorization id.- Returns:
- authorization id
-
setAuthorizationId
Sets the sasl authorization id.- Parameters:
id
- authorization id
-
getMutualAuthentication
Returns whether mutual authentication should occur.- Returns:
- whether mutual authentication should occur
-
setMutualAuthentication
Sets whether mutual authentication should occur.- Parameters:
b
- whether mutual authentication should occur
-
getQualityOfProtection
Returns the sasl quality of protection.- Returns:
- quality of protection
-
setQualityOfProtection
Sets the sasl quality of protection.- Parameters:
qop
- quality of protection
-
getSecurityStrength
Returns the sasl security strength.- Returns:
- security strength
-
setSecurityStrength
Sets the sasl security strength.- Parameters:
ss
- security strength
-
getRealm
Returns the sasl realm.- Returns:
- realm
-
setRealm
Sets the sasl realm.- Parameters:
realm
- to set
-
getProperties
Returns sasl properties.- Returns:
- properties
-
setProperties
Sets sasl properties.- Parameters:
props
- to set
-
getProperty
Returns a sasl property.- Parameters:
name
- of the property- Returns:
- property
-
setProperty
Sets a sasl property.- Parameters:
name
- of the propertyvalue
- of the property
-
toString
-
builder
Creates a builder for this class.- Returns:
- new builder
-