Class SCRAMServerSASL

  • All Implemented Interfaces:
    ServerSASL

    public abstract class SCRAMServerSASL
    extends java.lang.Object
    implements ServerSASL
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        SCRAMServerSASL​(org.apache.activemq.artemis.spi.core.security.scram.SCRAM mechanism)  
      protected SCRAMServerSASL​(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.UserData aquireUserData​(java.lang.String userName)  
      protected javax.security.auth.Subject createSaslSubject​(java.lang.String userName, org.apache.activemq.artemis.spi.core.security.scram.UserData userData)  
      protected abstract void failed​(java.lang.Exception e)  
      java.lang.String getName()  
      boolean isEnded()  
      byte[] processSASL​(byte[] bytes)  
      SASLResult result()  
      • 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

      • 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:
        getName in interface ServerSASL
      • processSASL

        public byte[] processSASL​(byte[] bytes)
        Specified by:
        processSASL in interface ServerSASL
      • 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)
      • isEnded

        public boolean isEnded()