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