Class SCRAMServerSASL
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.sasl.scram.SCRAMServerSASL
-
- All Implemented Interfaces:
ServerSASL
public abstract class SCRAMServerSASL extends Object implements ServerSASL
-
-
Field Summary
Fields Modifier and Type Field Description protected SCRAMmechanismprotected ScramServerFunctionalityscram
-
Constructor Summary
Constructors Modifier Constructor Description SCRAMServerSASL(SCRAM mechanism)protectedSCRAMServerSASL(SCRAM mechanism, String nonce)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract UserDataaquireUserData(String userName)protected SubjectcreateSaslSubject(String userName, UserData userData)protected abstract voidfailed(Exception e)StringgetName()booleanisEnded()byte[]processSASL(byte[] bytes)SASLResultresult()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.protocol.amqp.sasl.ServerSASL
done
-
-
-
-
Field Detail
-
scram
protected final ScramServerFunctionality scram
-
mechanism
protected final SCRAM mechanism
-
-
Constructor Detail
-
SCRAMServerSASL
public SCRAMServerSASL(SCRAM mechanism) throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
SCRAMServerSASL
protected SCRAMServerSASL(SCRAM mechanism, String nonce) throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceServerSASL
-
processSASL
public byte[] processSASL(byte[] bytes)
- Specified by:
processSASLin interfaceServerSASL
-
aquireUserData
protected abstract UserData aquireUserData(String userName) throws LoginException
- Throws:
LoginException
-
failed
protected abstract void failed(Exception e)
-
result
public SASLResult result()
- Specified by:
resultin interfaceServerSASL
-
isEnded
public boolean isEnded()
-
-