Class SaslMessage


  • public class SaslMessage
    extends Object
    SASL mechanism message.

    See https://tools.ietf.org/html/rfc4616

    • Method Detail

      • getAuthzid

        public String getAuthzid()
      • getAuthcid

        public String getAuthcid()
      • getPasswd

        public String getPasswd()
      • parse

        public static SaslMessage parse​(String message)
        Parses a SASL mechanism message.

        message = [authzid] UTF8NUL authcid UTF8NUL passwd authcid = 1*SAFE ; MUST accept up to 255 octets authzid = 1*SAFE ; MUST accept up to 255 octets passwd = 1*SAFE ; MUST accept up to 255 octets UTF8NUL = %x00 ; UTF-8 encoded NUL character

        SAFE = UTF1 / UTF2 / UTF3 / UTF4 ;; any UTF-8 encoded Unicode character except NUL

        Parameters:
        message - the SASL message