use of com.webauthn4j.appattest.converter.jackson.DeviceCheckCBORModule in project webauthn4j by webauthn4j.
the class DeviceCheckManager method createObjectConverter.
/**
* Create {@link ObjectConverter} instance with {@link DeviceCheckCBORModule}
*
* @return {@link ObjectConverter} instance with {@link DeviceCheckCBORModule}
*/
@NonNull
public static ObjectConverter createObjectConverter() {
ObjectMapper jsonMapper = new ObjectMapper();
ObjectMapper cborMapper = new ObjectMapper(new CBORFactory());
cborMapper.registerModule(new DeviceCheckCBORModule());
return new ObjectConverter(jsonMapper, cborMapper);
}
use of com.webauthn4j.appattest.converter.jackson.DeviceCheckCBORModule in project webauthn4j by webauthn4j.
the class DeviceCheckManager method createNonStrictDeviceCheckManager.
// ~ Factory methods
// ========================================================================================================
/**
* Creates {@link DeviceCheckManager} with non strict configuration
*
* @return configured {@link DeviceCheckManager}
*/
@NonNull
public static DeviceCheckManager createNonStrictDeviceCheckManager() {
ObjectMapper jsonMapper = new ObjectMapper();
ObjectMapper cborMapper = new ObjectMapper(new CBORFactory());
cborMapper.registerModule(new DeviceCheckCBORModule());
ObjectConverter objectConverter = new ObjectConverter(jsonMapper, cborMapper);
return createNonStrictDeviceCheckManager(objectConverter);
}
use of com.webauthn4j.appattest.converter.jackson.DeviceCheckCBORModule in project webauthn4j by webauthn4j.
the class DCAttestationDataTest method createObjectConverter.
private static ObjectConverter createObjectConverter() {
ObjectMapper jsonMapper = new ObjectMapper();
ObjectMapper cborMapper = new ObjectMapper(new CBORFactory());
cborMapper.registerModule(new DeviceCheckCBORModule());
return new ObjectConverter(jsonMapper, cborMapper);
}
use of com.webauthn4j.appattest.converter.jackson.DeviceCheckCBORModule in project webauthn4j by webauthn4j.
the class DCRegistrationObjectTest method createObjectConverter.
private static ObjectConverter createObjectConverter() {
ObjectMapper jsonMapper = new ObjectMapper();
ObjectMapper cborMapper = new ObjectMapper(new CBORFactory());
cborMapper.registerModule(new DeviceCheckCBORModule());
return new ObjectConverter(jsonMapper, cborMapper);
}
use of com.webauthn4j.appattest.converter.jackson.DeviceCheckCBORModule in project webauthn4j by webauthn4j.
the class AppleAppAttestAttestationStatementValidatorTest method createObjectConverter.
private ObjectConverter createObjectConverter() {
ObjectMapper jsonMapper = new ObjectMapper();
ObjectMapper cborMapper = new ObjectMapper(new CBORFactory());
cborMapper.registerModule(new DeviceCheckCBORModule());
return new ObjectConverter(jsonMapper, cborMapper);
}
Aggregations