Package org.gluu.oxauth.service.fido.u2f
Class RawRegistrationService
java.lang.Object
org.gluu.oxauth.service.fido.u2f.RawRegistrationService
Provides operations with U2F RAW registration response
- Author:
- Yuriy Movchan Date: 05/20/2015
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkSignature
(String appId, ClientData clientData, RawRegisterResponse rawRegisterResponse) createDevice
(String userInum, RawRegisterResponse rawRegisterResponse) parseDer
(InputStream is) parseRawRegisterResponse
(String rawDataBase64)
-
Field Details
-
REGISTRATION_RESERVED_BYTE_VALUE
public static final byte REGISTRATION_RESERVED_BYTE_VALUE- See Also:
-
REGISTRATION_SIGNED_RESERVED_BYTE_VALUE
public static final byte REGISTRATION_SIGNED_RESERVED_BYTE_VALUE- See Also:
-
INITIAL_DEVICE_COUNTER_VALUE
public static final long INITIAL_DEVICE_COUNTER_VALUE- See Also:
-
REGISTER_FINISH_TYPE
- See Also:
-
REGISTER_CANCEL_TYPE
- See Also:
-
SUPPORTED_REGISTER_TYPES
-
-
Constructor Details
-
RawRegistrationService
public RawRegistrationService()
-
-
Method Details
-
parseRawRegisterResponse
- Throws:
BadInputException
-
parseDer
public X509Certificate parseDer(InputStream is) throws CertificateException, NoSuchProviderException -
checkSignature
public void checkSignature(String appId, ClientData clientData, RawRegisterResponse rawRegisterResponse) throws BadInputException - Throws:
BadInputException
-
createDevice
public DeviceRegistration createDevice(String userInum, RawRegisterResponse rawRegisterResponse) throws BadInputException - Throws:
BadInputException
-