Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
String myText = "abcd";
String myAlgorithm = "bcrypt";
String myHash = com.soffid.iam.crypt.Crypt.hash(myAlgorithm, myText);
boolean isVerified = com.soffid.iam.crypt.Crypt.verify(myAlgorithm, myText, myHash);
if (isVerified) {
	return myHash;
} else {
	return null;
}

 

CalendarConverter

CalendarConverter allows to covert Calendar into String.

To use this class:

Code Block
com.soffid.iam.json.CalendarConverter

 

The methods (non static):

Code Block
toString(Calendar instance) -> String
fromString(final String text) -> Calendar

 

One example:

Code Block
out.println(new com.soffid.iam.json.CalendarConverter()).toString(date));