Class RawRegistrationService
- java.lang.Object
-
- io.jans.as.server.service.fido.u2f.RawRegistrationService
-
@Named public class RawRegistrationService extends java.lang.Object
Provides operations with U2F RAW registration response- Author:
- Yuriy Movchan Date: 05/20/2015
-
-
Field Summary
Fields Modifier and Type Field Description static long
INITIAL_DEVICE_COUNTER_VALUE
static java.lang.String
REGISTER_CANCEL_TYPE
static java.lang.String
REGISTER_FINISH_TYPE
static byte
REGISTRATION_RESERVED_BYTE_VALUE
static byte
REGISTRATION_SIGNED_RESERVED_BYTE_VALUE
static java.lang.String[]
SUPPORTED_REGISTER_TYPES
-
Constructor Summary
Constructors Constructor Description RawRegistrationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkSignature(java.lang.String appId, io.jans.as.model.fido.u2f.protocol.ClientData clientData, io.jans.as.model.fido.u2f.message.RawRegisterResponse rawRegisterResponse)
DeviceRegistration
createDevice(java.lang.String userInum, io.jans.as.model.fido.u2f.message.RawRegisterResponse rawRegisterResponse)
io.jans.as.model.fido.u2f.message.RawRegisterResponse
parseRawRegisterResponse(java.lang.String rawDataBase64)
-
-
-
Field Detail
-
REGISTRATION_RESERVED_BYTE_VALUE
public static final byte REGISTRATION_RESERVED_BYTE_VALUE
- See Also:
- Constant Field Values
-
REGISTRATION_SIGNED_RESERVED_BYTE_VALUE
public static final byte REGISTRATION_SIGNED_RESERVED_BYTE_VALUE
- See Also:
- Constant Field Values
-
INITIAL_DEVICE_COUNTER_VALUE
public static final long INITIAL_DEVICE_COUNTER_VALUE
- See Also:
- Constant Field Values
-
REGISTER_FINISH_TYPE
public static final java.lang.String REGISTER_FINISH_TYPE
- See Also:
- Constant Field Values
-
REGISTER_CANCEL_TYPE
public static final java.lang.String REGISTER_CANCEL_TYPE
- See Also:
- Constant Field Values
-
SUPPORTED_REGISTER_TYPES
public static final java.lang.String[] SUPPORTED_REGISTER_TYPES
-
-
Method Detail
-
parseRawRegisterResponse
public io.jans.as.model.fido.u2f.message.RawRegisterResponse parseRawRegisterResponse(java.lang.String rawDataBase64) throws io.jans.as.model.fido.u2f.exception.BadInputException
- Throws:
io.jans.as.model.fido.u2f.exception.BadInputException
-
checkSignature
public void checkSignature(java.lang.String appId, io.jans.as.model.fido.u2f.protocol.ClientData clientData, io.jans.as.model.fido.u2f.message.RawRegisterResponse rawRegisterResponse) throws io.jans.as.model.fido.u2f.exception.BadInputException
- Throws:
io.jans.as.model.fido.u2f.exception.BadInputException
-
createDevice
public DeviceRegistration createDevice(java.lang.String userInum, io.jans.as.model.fido.u2f.message.RawRegisterResponse rawRegisterResponse) throws io.jans.as.model.fido.u2f.exception.BadInputException
- Throws:
io.jans.as.model.fido.u2f.exception.BadInputException
-
-