Class ExternalServerSASLFactory
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.sasl.ExternalServerSASLFactory
-
- All Implemented Interfaces:
ServerSASLFactory
public class ExternalServerSASLFactory extends java.lang.Object implements ServerSASLFactory
-
-
Constructor Summary
Constructors Constructor Description ExternalServerSASLFactory()
-
Method Summary
All Methods Instance Methods Concrete 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
public java.lang.String getMechanism()
- Specified by:
getMechanismin interfaceServerSASLFactory- Returns:
- the name of the scheme to offer
-
create
public 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)
Description copied from interface:ServerSASLFactorycreates a newServerSASLfor the provided context- Specified by:
createin interfaceServerSASLFactory- Returns:
- a new instance of
ServerSASLthat implements the provided mechanism
-
getPrecedence
public int getPrecedence()
Description copied from interface:ServerSASLFactoryreturns the precedence of the given SASL mechanism, the default precedence is zero, where higher means better- Specified by:
getPrecedencein interfaceServerSASLFactory- Returns:
- the precedence of this mechanism
-
isDefaultPermitted
public boolean isDefaultPermitted()
- Specified by:
isDefaultPermittedin interfaceServerSASLFactory- Returns:
trueif this mechanism should be part of the servers default permitted protocols orfalseif it must be explicitly configured
-
-