Class SCRAMServerSASL
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.sasl.scram.SCRAMServerSASL
-
- All Implemented Interfaces:
ServerSASL
public abstract class SCRAMServerSASL extends java.lang.Object implements ServerSASL
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.activemq.artemis.spi.core.security.scram.SCRAMmechanismprotected ScramServerFunctionalityscram
-
Constructor Summary
Constructors Modifier Constructor Description SCRAMServerSASL(org.apache.activemq.artemis.spi.core.security.scram.SCRAM mechanism)protectedSCRAMServerSASL(org.apache.activemq.artemis.spi.core.security.scram.SCRAM mechanism, java.lang.String nonce)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.apache.activemq.artemis.spi.core.security.scram.UserDataaquireUserData(java.lang.String userName)protected javax.security.auth.SubjectcreateSaslSubject(java.lang.String userName, org.apache.activemq.artemis.spi.core.security.scram.UserData userData)protected abstract voidfailed(java.lang.Exception e)java.lang.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 org.apache.activemq.artemis.spi.core.security.scram.SCRAM mechanism
-
-
Constructor Detail
-
SCRAMServerSASL
public SCRAMServerSASL(org.apache.activemq.artemis.spi.core.security.scram.SCRAM mechanism) throws java.security.NoSuchAlgorithmException- Throws:
java.security.NoSuchAlgorithmException
-
SCRAMServerSASL
protected SCRAMServerSASL(org.apache.activemq.artemis.spi.core.security.scram.SCRAM mechanism, java.lang.String nonce) throws java.security.NoSuchAlgorithmException- Throws:
java.security.NoSuchAlgorithmException
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceServerSASL
-
processSASL
public byte[] processSASL(byte[] bytes)
- Specified by:
processSASLin interfaceServerSASL
-
aquireUserData
protected abstract org.apache.activemq.artemis.spi.core.security.scram.UserData aquireUserData(java.lang.String userName) throws javax.security.auth.login.LoginException- Throws:
javax.security.auth.login.LoginException
-
failed
protected abstract void failed(java.lang.Exception e)
-
createSaslSubject
protected javax.security.auth.Subject createSaslSubject(java.lang.String userName, org.apache.activemq.artemis.spi.core.security.scram.UserData userData)
-
result
public SASLResult result()
- Specified by:
resultin interfaceServerSASL
-
isEnded
public boolean isEnded()
-
-