Class RawRegistrationService


  • @Named
    public class RawRegistrationService
    extends java.lang.Object
    Provides operations with U2F RAW registration response
    Author:
    Yuriy Movchan Date: 05/20/2015
    • 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
    • Constructor Detail

      • RawRegistrationService

        public RawRegistrationService()
    • 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