Package org.wildfly.security.sasl
Class SaslMechanismSelector
java.lang.Object
org.wildfly.security.sasl.SaslMechanismSelector
A selection specification for SASL client or server mechanisms. The specification can be used to define the types,
behavior, and order of SASL mechanisms.
- Author:
- David M. Lloyd
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SaslMechanismSelectorstatic final SaslMechanismSelectorstatic final SaslMechanismSelector -
Method Summary
Modifier and TypeMethodDescriptionaddMatching(SaslMechanismPredicate predicate) addMechanism(String mechName) addMechanisms(String... mechNames) apply(Collection<String> mechNames, SSLSession sslSession) Get a list of mechanism names which are matched by this selector in the preferential order that the selector specifies.createMechanismSupplier(String[] mechNames) Create a supplier of mechanism names that provides the names of the mechanisms which are matched by this selector in the preferential order that the selector specifies.createMechanismSupplier(String[] mechNames, SSLSession sslSession) Create a supplier of mechanism names that provides the names of the mechanisms which are matched by this selector in the preferential order that the selector specifies.createMechanismSupplier(Collection<String> mechNames) Create a supplier of mechanism names that provides the names of the mechanisms which are matched by this selector in the preferential order that the selector specifies.createMechanismSupplier(Collection<String> mechNames, SSLSession sslSession) Create a supplier of mechanism names that provides the names of the mechanisms which are matched by this selector in the preferential order that the selector specifies.final booleanfinal booleanequals(SaslMechanismSelector selector) forbidMatching(SaslMechanismPredicate predicate) forbidMechanism(String mechName) forbidMechanisms(String... mechNames) static SaslMechanismSelectorfromString(String string) inthashCode()final StringtoString()
-
Field Details
-
NONE
-
ALL
-
DEFAULT
-
-
Method Details
-
createMechanismSupplier
Create a supplier of mechanism names that provides the names of the mechanisms which are matched by this selector in the preferential order that the selector specifies. When no preference between two mechanisms is specified, the original order is used.- Parameters:
mechNames- the mechanism names (must not benull)- Returns:
- the supplier of mechanisms (not
null)
-
createMechanismSupplier
Create a supplier of mechanism names that provides the names of the mechanisms which are matched by this selector in the preferential order that the selector specifies. When no preference between two mechanisms is specified, the original order is used.- Parameters:
mechNames- the mechanism names (must not benull)sslSession- the SSL session, if any is active, ornullif SSL is not active- Returns:
- the supplier of mechanisms (not
null)
-
createMechanismSupplier
Create a supplier of mechanism names that provides the names of the mechanisms which are matched by this selector in the preferential order that the selector specifies. When no preference between two mechanisms is specified, the original order is used.- Parameters:
mechNames- the mechanism names (must not benull)- Returns:
- the supplier of mechanisms (not
null)
-
createMechanismSupplier
public Supplier<String> createMechanismSupplier(Collection<String> mechNames, SSLSession sslSession) Create a supplier of mechanism names that provides the names of the mechanisms which are matched by this selector in the preferential order that the selector specifies. When no preference between two mechanisms is specified, the original order is used.- Parameters:
mechNames- the mechanism names (must not benull)sslSession- the SSL session, if any is active, ornullif SSL is not active- Returns:
- the supplier of mechanisms (not
null)
-
apply
Get a list of mechanism names which are matched by this selector in the preferential order that the selector specifies. When no preference between two mechanisms is specified, the original order is used.- Parameters:
mechNames- the mechanism names (must not benull)sslSession- the SSL session, if any is active, ornullif SSL is not active- Returns:
- the list of mechanisms (not
null)
-
addMechanism
-
addMechanisms
-
forbidMechanism
-
forbidMechanisms
-
addMatching
-
forbidMatching
-
addAllRemaining
-
toString
-
hashCode
public int hashCode() -
equals
-
equals
-
fromString
-