Package org.ldaptive.sasl
Class SaslConfig
- java.lang.Object
-
- org.ldaptive.AbstractConfig
-
- org.ldaptive.sasl.SaslConfig
-
public class SaslConfig extends AbstractConfig
Contains basic configuration data for SASL authentication.- Author:
- Middleware Services
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSaslConfig.Builder
-
Field Summary
-
Fields inherited from class org.ldaptive.AbstractConfig
logger
-
-
Constructor Summary
Constructors Constructor Description SaslConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SaslConfig.Builderbuilder()Creates a builder for this class.java.lang.StringgetAuthorizationId()Returns the sasl authorization id.MechanismgetMechanism()Returns the sasl mechanism.java.lang.BooleangetMutualAuthentication()Returns whether mutual authentication should occur.java.util.Map<java.lang.String,?>getProperties()Returns sasl properties.java.lang.ObjectgetProperty(java.lang.String name)Returns a sasl property.QualityOfProtection[]getQualityOfProtection()Returns the sasl quality of protection.java.lang.StringgetRealm()Returns the sasl realm.SecurityStrength[]getSecurityStrength()Returns the sasl security strength.voidsetAuthorizationId(java.lang.String id)Sets the sasl authorization id.voidsetMechanism(Mechanism m)Sets the sasl mechanism.voidsetMutualAuthentication(java.lang.Boolean b)Sets whether mutual authentication should occur.voidsetProperties(java.util.Map<java.lang.String,?> props)Sets sasl properties.voidsetProperty(java.lang.String name, java.lang.Object value)Sets a sasl property.voidsetQualityOfProtection(QualityOfProtection... qop)Sets the sasl quality of protection.voidsetRealm(java.lang.String realm)Sets the sasl realm.voidsetSecurityStrength(SecurityStrength... ss)Sets the sasl security strength.java.lang.StringtoString()-
Methods inherited from class org.ldaptive.AbstractConfig
checkArrayContainsNull, checkImmutable, checkStringInput, makeImmutable
-
-
-
-
Method Detail
-
getMechanism
public Mechanism getMechanism()
Returns the sasl mechanism.- Returns:
- mechanism
-
setMechanism
public void setMechanism(Mechanism m)
Sets the sasl mechanism.- Parameters:
m- mechanism
-
getAuthorizationId
public java.lang.String getAuthorizationId()
Returns the sasl authorization id.- Returns:
- authorization id
-
setAuthorizationId
public void setAuthorizationId(java.lang.String id)
Sets the sasl authorization id.- Parameters:
id- authorization id
-
getMutualAuthentication
public java.lang.Boolean getMutualAuthentication()
Returns whether mutual authentication should occur.- Returns:
- whether mutual authentication should occur
-
setMutualAuthentication
public void setMutualAuthentication(java.lang.Boolean b)
Sets whether mutual authentication should occur.- Parameters:
b- whether mutual authentication should occur
-
getQualityOfProtection
public QualityOfProtection[] getQualityOfProtection()
Returns the sasl quality of protection.- Returns:
- quality of protection
-
setQualityOfProtection
public void setQualityOfProtection(QualityOfProtection... qop)
Sets the sasl quality of protection.- Parameters:
qop- quality of protection
-
getSecurityStrength
public SecurityStrength[] getSecurityStrength()
Returns the sasl security strength.- Returns:
- security strength
-
setSecurityStrength
public void setSecurityStrength(SecurityStrength... ss)
Sets the sasl security strength.- Parameters:
ss- security strength
-
getRealm
public java.lang.String getRealm()
Returns the sasl realm.- Returns:
- realm
-
setRealm
public void setRealm(java.lang.String realm)
Sets the sasl realm.- Parameters:
realm- to set
-
getProperties
public java.util.Map<java.lang.String,?> getProperties()
Returns sasl properties.- Returns:
- properties
-
setProperties
public void setProperties(java.util.Map<java.lang.String,?> props)
Sets sasl properties.- Parameters:
props- to set
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
Returns a sasl property.- Parameters:
name- of the property- Returns:
- property
-
setProperty
public void setProperty(java.lang.String name, java.lang.Object value)Sets a sasl property.- Parameters:
name- of the propertyvalue- of the property
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static SaslConfig.Builder builder()
Creates a builder for this class.- Returns:
- new builder
-
-