public final class Answers extends Object
| Modifier and Type | Method and Description |
|---|---|
static JsonValue |
hashAnswer(CryptoService cryptoService,
JsonValue answer)
Hashes the given answer.
|
static String |
normaliseAnswer(String answer)
Normalises the given answer.
|
public static JsonValue hashAnswer(CryptoService cryptoService, JsonValue answer) throws InternalServerErrorException
InternalServerErrorException if the provided answer is not a String or cannot be hashed.cryptoService - an instance of the CryptoService to perform the hashinganswer - the value to be hashed.InternalServerErrorException - if the provided answer is not a String or cannot be hashedCopyright © 2025 Open Identity Platform Community. All rights reserved.