Class DigestSaslClient

    • Field Detail

      • realms

        private String[] realms
      • clientQops

        private String[] clientQops
      • stale

        private boolean stale
      • maxbuf

        private int maxbuf
      • cipher_opts

        private String cipher_opts
      • digest_urp

        private byte[] digest_urp
      • hasInitialResponse

        private final boolean hasInitialResponse
      • demandedCiphers

        private final String[] demandedCiphers
    • Method Detail

      • createResponse

        private byte[] createResponse​(HashMap<String,​byte[]> parsedChallenge)
                               throws SaslException
        Method creates client response to the server challenge: digest-response = 1#( username | realm | nonce | cnonce | nonce-count | qop | digest-uri | response | maxbuf | charset | cipher | authzid | auth-param ) username = "username" "=" <"> username-value <"> username-value = qdstr-val cnonce = "cnonce" "=" <"> cnonce-value <"> cnonce-value = qdstr-val nonce-count = "nc" "=" nc-value nc-value = 8LHEX qop = "qop" "=" qop-value digest-uri = "digest-uri" "=" <"> digest-uri-value <"> digest-uri-value = serv-type "/" host [ "/" serv-name ] serv-type = 1*ALPHA host = 1*( ALPHA | DIGIT | "-" | "." ) serv-name = host response = "response" "=" response-value response-value = 32LHEX LHEX = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" cipher = "cipher" "=" cipher-value authzid = "authzid" "=" <"> authzid-value <"> authzid-value = qdstr-val
        Parameters:
        parsedChallenge -
        Returns:
        Throws:
        SaslException
      • getNonceCount

        private int getNonceCount()
        For now it returns always 1
        Returns: