use of com.webauthn4j.springframework.security.webauthn.sample.app.api.CollectedClientDataForm in project webauthn4j-spring-security by webauthn4j.
the class CollectedClientDataDeserializer method deserialize.
/**
* {@inheritDoc}
*/
@Override
public CollectedClientDataForm deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
String value = p.getValueAsString();
CollectedClientDataForm result = new CollectedClientDataForm();
result.setCollectedClientData(base64UrlStringToCollectedClientDataConverter.convert(value));
result.setClientDataBase64(value);
return result;
}
use of com.webauthn4j.springframework.security.webauthn.sample.app.api.CollectedClientDataForm in project webauthn4j-spring-security by webauthn4j.
the class CollectedClientDataFormFormatter method parse.
@Override
public CollectedClientDataForm parse(String text, Locale locale) throws ParseException {
CollectedClientData collectedClientData = base64UrlStringToCollectedClientDataConverter.convert(text);
CollectedClientDataForm collectedClientDataForm = new CollectedClientDataForm();
collectedClientDataForm.setCollectedClientData(collectedClientData);
collectedClientDataForm.setClientDataBase64(text);
return collectedClientDataForm;
}
Aggregations