Package org.ldaptive.sasl
Class SaslConfig
java.lang.Object
org.ldaptive.AbstractFreezable
org.ldaptive.AbstractConfig
org.ldaptive.sasl.SaslConfig
- All Implemented Interfaces:
Freezable
Contains basic configuration data for SASL authentication.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringsasl authorization id.private Mechanismsasl mechanism.private Booleanperform mutual authentication.sasl properties.private QualityOfProtection[]sasl quality of protection.private Stringsasl realm.private SecurityStrength[]sasl security strength.Fields inherited from class org.ldaptive.AbstractConfig
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SaslConfig.Builderbuilder()Creates a builder for this class.static SaslConfigcopy(SaslConfig config) Returns a sasl config initialized with the supplied config.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.voidSets the sasl authorization id.voidSets the sasl mechanism.voidSets whether mutual authentication should occur.voidsetProperties(Map<String, ?> props) Sets sasl properties.voidsetProperty(String name, Object value) Sets a sasl property.voidSets the sasl quality of protection.voidSets the sasl realm.voidSets the sasl security strength.toString()Methods inherited from class org.ldaptive.AbstractConfig
checkArrayContainsNull, checkStringInputMethods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, freeze, isFrozen
-
Field Details
-
properties
sasl properties. -
mechanism
sasl mechanism. -
authorizationId
sasl authorization id. -
mutualAuthentication
perform mutual authentication. -
qualityOfProtection
sasl quality of protection. -
securityStrength
sasl security strength. -
saslRealm
sasl realm.
-
-
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
-
copy
Returns a sasl config initialized with the supplied config.- Parameters:
config- sasl config to read properties from- Returns:
- sasl config
-
builder
Creates a builder for this class.- Returns:
- new builder
-