[JAVA-2759] Implement SASLPrep Created: 29/Jan/18  Updated: 28/Oct/23  Resolved: 12/Apr/18

Status: Closed
Project: Java Driver
Component/s: Security
Affects Version/s: None
Fix Version/s: 3.8.0

Type: New Feature Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-444 Implement SASLPrep Closed
Epic Link: Java MongoDB 4.0 Support

 Description   

RFC-4013 SASLPrep is a prerequisite for implementation of SCRAM-SHA-256.



 Comments   
Comment by Githook User [ 12/Apr/18 ]

Author:

{'email': 'ross.lawley@gmail.com', 'name': 'Ross Lawley', 'username': 'rozza'}

Message: SCRAM-SHA-256 support

Included a SaslPrep helper class.
Refactored the Hi() method, so to not rely on PBEKeySpec, thus
supporting Java 6+

JAVA-2771 JAVA-2759
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/8d8dd3bdc35b3875d5c73796cb98060e6cb35e72

Comment by Jeffrey Yemin [ 29/Jan/18 ]

SaslPrep states:

This profile specifies using Unicode normalization form KC, as described in Section 4 of StringPrep.

Looks like this will translate in Java to a call to:

java.text.Normalizer.normalize(str, Form.NFKC)

Generated at Thu Feb 08 08:58:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.