public abstract class AbstractSaslFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.lang.String[] |
EMPTY |
private java.lang.String[] |
names |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSaslFactory(java.lang.String name)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getMechanismNames(java.util.Map<java.lang.String,?> props)
Get the mechanism names matching the given properties.
|
protected boolean |
getPropertyValue(java.lang.String property,
java.util.Map<java.lang.String,?> props,
boolean defaultValue)
Get a boolean property value from the properties map.
|
protected boolean |
isActiveSusceptible()
Determine whether the mechanism is susceptible to active attack.
|
protected boolean |
isAnonymous()
Determine whether the algorithm is anonymous.
|
protected boolean |
isDictionarySusceptible()
Determine whether the mechanism is susceptible to dictionary (passive) attacks.
|
protected boolean |
isForwardSecrecy()
Determine whether forward secrecy is implemented.
|
protected boolean |
isIncluded(java.lang.String... names)
Determine whether our mechanism name is among those given.
|
protected boolean |
isPassCredentials()
Determine whether the mechanism passes client credentials.
|
protected boolean |
isPlainText()
Determine whether the algorithm employs plain text.
|
protected boolean |
matches(java.util.Map<java.lang.String,?> props)
Determine whether the properties match this mechanism.
|
static final java.lang.String[] EMPTY
private final java.lang.String[] names
protected AbstractSaslFactory(java.lang.String name)
name - the mechanism namepublic java.lang.String[] getMechanismNames(java.util.Map<java.lang.String,?> props)
props - the propertiesprotected boolean matches(java.util.Map<java.lang.String,?> props)
props - the propertiestrue if there is a match, false otherwiseprotected boolean isPassCredentials()
true if it does (default is false)protected boolean isDictionarySusceptible()
true if it is (default is true)protected boolean isActiveSusceptible()
true if it is (default is true)protected boolean isForwardSecrecy()
true if it is (default is false)protected boolean isPlainText()
true if it does so (default is true)protected boolean isAnonymous()
true if it is (default is true)protected boolean getPropertyValue(java.lang.String property,
java.util.Map<java.lang.String,?> props,
boolean defaultValue)
property - the property nameprops - the properties mapdefaultValue - the default valueprotected boolean isIncluded(java.lang.String... names)
names - the namestrue if the names include our mechanism