StringPrep.encode(name, encoded, StringPrep.PROFILE_SASL_STORED | StringPrep.MAP_SCRAM_LOGIN_CHARS); encoded.append(',').append('r').append('='); final byte[] nonce = ScramUtil.generateNonce(48, getRandom()); encoded.append(nonce);
throw saslScram.mechInvalidMessageReceived(); iterationCount = ScramUtil.parsePosInt(bi); if (iterationCount < minimumIterationCount) { throw saslScram.mechIterationCountIsTooLow(iterationCount, minimumIterationCount);
ScramUtil.xor(recoveredClientKey, recoveredClientProof); if(trace) saslScram.tracef("[S] Recovered client key: %s%n", ByteIterator.ofBytes(recoveredClientKey).hexEncode().drainToString()); if (! Arrays.equals(recoveredClientKey, clientKey)) {
final byte[] serverNonce = ScramUtil.generateNonce(28, getRandom()); b.append(serverNonce); b.append(',');
final byte[] clientProof = mac.doFinal(); if(trace) saslScram.tracef("[C] Client signature: %s%n", ByteIterator.ofBytes(clientProof).hexEncode().drainToString()); ScramUtil.xor(clientProof, clientKey); if(trace) saslScram.tracef("[C] Client proof: %s%n", ByteIterator.ofBytes(clientProof).hexEncode().drainToString()); int proofStart = encoded.length();
throw saslScram.mechInvalidMessageReceived(); iterationCount = ScramUtil.parsePosInt(bi); if (iterationCount < minimumIterationCount) { throw saslScram.mechIterationCountIsTooLow(iterationCount, minimumIterationCount);
StringPrep.encode(name, encoded, StringPrep.PROFILE_SASL_STORED | StringPrep.MAP_SCRAM_LOGIN_CHARS); encoded.append(',').append('r').append('='); final byte[] nonce = ScramUtil.generateNonce(48, getRandom()); encoded.append(nonce);
ScramUtil.xor(recoveredClientKey, recoveredClientProof); if(trace) saslScram.tracef("[S] Recovered client key: %s%n", ByteIterator.ofBytes(recoveredClientKey).hexEncode().drainToString()); if (! Arrays.equals(recoveredClientKey, clientKey)) {
throw saslScram.mechInvalidMessageReceived(); iterationCount = ScramUtil.parsePosInt(bi); if (iterationCount < minimumIterationCount) { throw saslScram.mechIterationCountIsTooLow(iterationCount, minimumIterationCount);
StringPrep.encode(name, encoded, StringPrep.PROFILE_SASL_STORED | StringPrep.MAP_SCRAM_LOGIN_CHARS); encoded.append(',').append('r').append('='); final byte[] nonce = ScramUtil.generateNonce(48, getRandom()); encoded.append(nonce);
ScramUtil.xor(recoveredClientKey, recoveredClientProof); if(trace) saslScram.tracef("[S] Recovered client key: %s%n", ByteIterator.ofBytes(recoveredClientKey).hexEncode().drainToString()); if (! Arrays.equals(recoveredClientKey, clientKey)) {
throw saslScram.mechInvalidMessageReceived(); iterationCount = ScramUtil.parsePosInt(bi); if (iterationCount < minimumIterationCount) { throw saslScram.mechIterationCountIsTooLow(iterationCount, minimumIterationCount);
StringPrep.encode(name, encoded, StringPrep.PROFILE_SASL_STORED | StringPrep.MAP_SCRAM_LOGIN_CHARS); encoded.append(',').append('r').append('='); final byte[] nonce = ScramUtil.generateNonce(48, getRandom()); encoded.append(nonce);
ScramUtil.xor(recoveredClientKey, recoveredClientProof); if(trace) saslScram.tracef("[S] Recovered client key: %s%n", ByteIterator.ofBytes(recoveredClientKey).hexEncode().drainToString()); if (! Arrays.equals(recoveredClientKey, clientKey)) {
final byte[] serverNonce = ScramUtil.generateNonce(28, getRandom()); b.append(serverNonce); b.append(',');
final byte[] clientProof = mac.doFinal(); if(trace) saslScram.tracef("[C] Client signature: %s%n", ByteIterator.ofBytes(clientProof).hexEncode().drainToString()); ScramUtil.xor(clientProof, clientKey); if(trace) saslScram.tracef("[C] Client proof: %s%n", ByteIterator.ofBytes(clientProof).hexEncode().drainToString()); int proofStart = encoded.length();
final byte[] serverNonce = ScramUtil.generateNonce(28, getRandom()); b.append(serverNonce); b.append(',');
final byte[] clientProof = mac.doFinal(); if(trace) saslScram.tracef("[C] Client signature: %s%n", ByteIterator.ofBytes(clientProof).hexEncode().drainToString()); ScramUtil.xor(clientProof, clientKey); if(trace) saslScram.tracef("[C] Client proof: %s%n", ByteIterator.ofBytes(clientProof).hexEncode().drainToString()); int proofStart = encoded.length();
final byte[] serverNonce = ScramUtil.generateNonce(28, getRandom()); b.append(serverNonce); b.append(',');
final byte[] clientProof = mac.doFinal(); if(trace) saslScram.tracef("[C] Client signature: %s%n", ByteIterator.ofBytes(clientProof).hexEncode().drainToString()); ScramUtil.xor(clientProof, clientKey); if(trace) saslScram.tracef("[C] Client proof: %s%n", ByteIterator.ofBytes(clientProof).hexEncode().drainToString()); int proofStart = encoded.length();