Class RawRegistrationService
- java.lang.Object
-
- io.jans.as.server.service.fido.u2f.RawRegistrationService
-
@Named public class RawRegistrationService extends java.lang.ObjectProvides operations with U2F RAW registration response- Author:
- Yuriy Movchan Date: 05/20/2015
-
-
Field Summary
Fields Modifier and Type Field Description static longINITIAL_DEVICE_COUNTER_VALUEstatic java.lang.StringREGISTER_CANCEL_TYPEstatic java.lang.StringREGISTER_FINISH_TYPEstatic byteREGISTRATION_RESERVED_BYTE_VALUEstatic byteREGISTRATION_SIGNED_RESERVED_BYTE_VALUEstatic 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 voidcheckSignature(java.lang.String appId, io.jans.as.model.fido.u2f.protocol.ClientData clientData, io.jans.as.model.fido.u2f.message.RawRegisterResponse rawRegisterResponse)DeviceRegistrationcreateDevice(java.lang.String userInum, io.jans.as.model.fido.u2f.message.RawRegisterResponse rawRegisterResponse)io.jans.as.model.fido.u2f.message.RawRegisterResponseparseRawRegisterResponse(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
-
-