public final class FilterMechanismSaslClientFactory extends AbstractDelegatingSaslClientFactory
SaslClientFactory which filters available mechanisms (either inclusively or exclusively) from a delegate
SaslClientFactory.delegate| Constructor and Description |
|---|
FilterMechanismSaslClientFactory(SaslClientFactory delegate,
boolean include,
Collection<String> mechanisms)
Construct a new instance.
|
FilterMechanismSaslClientFactory(SaslClientFactory delegate,
boolean include,
String... mechanisms)
Construct a new instance.
|
FilterMechanismSaslClientFactory(SaslClientFactory delegate,
Predicate<String> predicate)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateHashCode()
Perform the calculation of the hash code of this factory.
|
SaslClient |
createSaslClient(String[] mechanisms,
String authorizationId,
String protocol,
String serverName,
Map<String,?> props,
CallbackHandler cbh) |
boolean |
equals(AbstractDelegatingSaslClientFactory other) |
boolean |
equals(FilterMechanismSaslClientFactory other) |
boolean |
equals(Object other) |
String[] |
getMechanismNames(Map<String,?> props) |
delegatesThrough, hashCode, toStringpublic FilterMechanismSaslClientFactory(SaslClientFactory delegate, Predicate<String> predicate)
delegate - the factory to delegate topredicate - the mechanism name predicatepublic FilterMechanismSaslClientFactory(SaslClientFactory delegate, boolean include, String... mechanisms)
delegate - the factory to delegate toinclude - true to only include the given mechanisms, false to exclude themmechanisms - the mechanisms to include or excludepublic FilterMechanismSaslClientFactory(SaslClientFactory delegate, boolean include, Collection<String> mechanisms)
delegate - the factory to delegate toinclude - true to only include the given mechanisms, false to exclude themmechanisms - the mechanisms to include or excludepublic SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
createSaslClient in interface SaslClientFactorycreateSaslClient in class AbstractDelegatingSaslClientFactorySaslExceptionpublic String[] getMechanismNames(Map<String,?> props)
getMechanismNames in interface SaslClientFactorygetMechanismNames in class AbstractDelegatingSaslClientFactorypublic boolean equals(Object other)
equals in class AbstractDelegatingSaslClientFactorypublic boolean equals(AbstractDelegatingSaslClientFactory other)
equals in class AbstractDelegatingSaslClientFactorypublic boolean equals(FilterMechanismSaslClientFactory other)
protected int calculateHashCode()
AbstractDelegatingSaslClientFactorycalculateHashCode in class AbstractDelegatingSaslClientFactoryCopyright © 2019 JBoss by Red Hat. All rights reserved.