Class SCRAMServerSASLFactory
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.sasl.scram.SCRAMServerSASLFactory
- All Implemented Interfaces:
ServerSASLFactory
- Direct Known Subclasses:
SHA256SCRAMServerSASLFactory, SHA512SCRAMServerSASLFactory
abstract class that implements the SASL-SCRAM authentication scheme, concrete implementations must supply the
SCRAM type to use and be register via SPI-
Constructor Summary
Constructors -
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.booleanReturnstrueif this mechanism should be part of the servers default permitted protocols orfalseif it must be explicitly configured.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ServerSASLFactory
getPrecedence
-
Constructor Details
-
SCRAMServerSASLFactory
-
-
Method Details
-
getMechanism
Description copied from interface:ServerSASLFactoryReturns the name of the scheme to offer.- Specified by:
getMechanismin interfaceServerSASLFactory- Returns:
- the name of the scheme to offer
-
isDefaultPermitted
public boolean isDefaultPermitted()Description copied from interface:ServerSASLFactoryReturnstrueif this mechanism should be part of the servers default permitted protocols orfalseif it must be explicitly configured.- Specified by:
isDefaultPermittedin interfaceServerSASLFactory- Returns:
trueif this mechanism should be part of the servers default permitted protocols orfalseif it must be explicitly configured
-
create
public ServerSASL create(org.apache.activemq.artemis.core.server.ActiveMQServer server, ProtocolManager<AmqpInterceptor, AMQPRoutingHandler> manager, Connection connection, 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
-