Interface ServerSASLFactory
- All Known Implementing Classes:
AnonymousServerSASLFactory, ExternalServerSASLFactory, GSSAPIServerSASLFactory, PlainServerSASLFactory, SCRAMServerSASLFactory, SHA256SCRAMServerSASLFactory, SHA512SCRAMServerSASLFactory
public interface ServerSASLFactory
A
ServerSASLFactory is responsible for instantiating a given SASL mechanism-
Method Summary
Modifier and TypeMethodDescriptioncreate(org.apache.activemq.artemis.core.server.ActiveMQServer server, ProtocolManager<AmqpInterceptor, AMQPRoutingHandler> manager, Connection connection, RemotingConnection remotingConnection) creates a newServerSASLfor the provided contextReturns the name of the scheme to offer.intReturns the precedence of the given SASL mechanism, the default precedence is zero, where higher means better.booleanReturnstrueif this mechanism should be part of the servers default permitted protocols orfalseif it must be explicitly configured.
-
Method Details
-
getMechanism
String getMechanism()Returns the name of the scheme to offer.- Returns:
- the name of the scheme to offer
-
create
ServerSASL create(org.apache.activemq.artemis.core.server.ActiveMQServer server, ProtocolManager<AmqpInterceptor, AMQPRoutingHandler> manager, Connection connection, RemotingConnection remotingConnection) creates a newServerSASLfor the provided context- 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 the given SASL mechanism, the default precedence is zero, where higher means better
-
isDefaultPermitted
boolean isDefaultPermitted()Returnstrueif this mechanism should be part of the servers default permitted protocols orfalseif it must be explicitly configured.- Returns:
trueif this mechanism should be part of the servers default permitted protocols orfalseif it must be explicitly configured
-