Package org.gluu.oxauth.service.fido.u2f
Class RawRegistrationService
- java.lang.Object
-
- org.gluu.oxauth.service.fido.u2f.RawRegistrationService
-
@ApplicationScoped 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, ClientData clientData, RawRegisterResponse rawRegisterResponse)
DeviceRegistration
createDevice(java.lang.String userInum, RawRegisterResponse rawRegisterResponse)
java.security.cert.X509Certificate
parseDer(java.io.InputStream is)
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 RawRegisterResponse parseRawRegisterResponse(java.lang.String rawDataBase64) throws BadInputException
- Throws:
BadInputException
-
parseDer
public java.security.cert.X509Certificate parseDer(java.io.InputStream is) throws java.security.cert.CertificateException, java.security.NoSuchProviderException
- Throws:
java.security.cert.CertificateException
java.security.NoSuchProviderException
-
checkSignature
public void checkSignature(java.lang.String appId, ClientData clientData, RawRegisterResponse rawRegisterResponse) throws BadInputException
- Throws:
BadInputException
-
createDevice
public DeviceRegistration createDevice(java.lang.String userInum, RawRegisterResponse rawRegisterResponse) throws BadInputException
- Throws:
BadInputException
-
-