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, toString
public 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 SaslClientFactory
createSaslClient
in class AbstractDelegatingSaslClientFactory
SaslException
public String[] getMechanismNames(Map<String,?> props)
getMechanismNames
in interface SaslClientFactory
getMechanismNames
in class AbstractDelegatingSaslClientFactory
public boolean equals(Object other)
equals
in class AbstractDelegatingSaslClientFactory
public boolean equals(AbstractDelegatingSaslClientFactory other)
equals
in class AbstractDelegatingSaslClientFactory
public boolean equals(FilterMechanismSaslClientFactory other)
protected int calculateHashCode()
AbstractDelegatingSaslClientFactory
calculateHashCode
in class AbstractDelegatingSaslClientFactory
Copyright © 2021 JBoss by Red Hat. All rights reserved.