Interface ServerSASLFactory
-
- All Known Implementing Classes:
AnonymousServerSASLFactory,ExternalServerSASLFactory,GSSAPIServerSASLFactory,PlainServerSASLFactory,SCRAMServerSASLFactory,SHA256SCRAMServerSASLFactory,SHA512SCRAMServerSASLFactory
public interface ServerSASLFactoryAServerSASLFactoryis responsible for instantiating a given SASL mechanism
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerSASLcreate(org.apache.activemq.artemis.core.server.ActiveMQServer server, org.apache.activemq.artemis.spi.core.protocol.ProtocolManager<AmqpInterceptor,AMQPRoutingHandler> manager, org.apache.activemq.artemis.spi.core.remoting.Connection connection, org.apache.activemq.artemis.spi.core.protocol.RemotingConnection remotingConnection)creates a newServerSASLfor the provided contextjava.lang.StringgetMechanism()intgetPrecedence()returns the precedence of the given SASL mechanism, the default precedence is zero, where higher means betterbooleanisDefaultPermitted()
-
-
-
Method Detail
-
getMechanism
java.lang.String getMechanism()
- Returns:
- the name of the scheme to offer
-
create
ServerSASL create(org.apache.activemq.artemis.core.server.ActiveMQServer server, org.apache.activemq.artemis.spi.core.protocol.ProtocolManager<AmqpInterceptor,AMQPRoutingHandler> manager, org.apache.activemq.artemis.spi.core.remoting.Connection connection, org.apache.activemq.artemis.spi.core.protocol.RemotingConnection remotingConnection)
creates a newServerSASLfor the provided context- Parameters:
server-manager-connection-remotingConnection-- Returns:
- a new instance of
ServerSASLthat implements the provided mechanism
-
getPrecedence
int getPrecedence()
returns the precedence of the given SASL mechanism, the default precedence is zero, where higher means better- Returns:
- the precedence of this mechanism
-
isDefaultPermitted
boolean isDefaultPermitted()
- Returns:
trueif this mechanism should be part of the servers default permitted protocols orfalseif it must be explicitly configured
-
-