public final class ServerNameSaslClientFactory extends AbstractDelegatingSaslClientFactory
SaslClientFactory
which sets the server name to a fixed value, disregarding the passed in value.delegate
Constructor and Description |
---|
ServerNameSaslClientFactory(SaslClientFactory delegate,
String serverName)
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(Object other) |
boolean |
equals(ServerNameSaslClientFactory other) |
delegatesThrough, getMechanismNames, hashCode, toString
public ServerNameSaslClientFactory(SaslClientFactory delegate, String serverName)
delegate
- the delegate client factoryserverName
- the server name to usepublic 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 boolean equals(Object other)
equals
in class AbstractDelegatingSaslClientFactory
public boolean equals(AbstractDelegatingSaslClientFactory other)
equals
in class AbstractDelegatingSaslClientFactory
public boolean equals(ServerNameSaslClientFactory other)
protected int calculateHashCode()
AbstractDelegatingSaslClientFactory
calculateHashCode
in class AbstractDelegatingSaslClientFactory
Copyright © 2020 JBoss by Red Hat. All rights reserved.