Class RegistrationService


  • @Named("u2fRegistrationService")
    public class RegistrationService
    extends RequestService
    Provides operations with U2F registration requests
    Version:
    August 9, 2017
    Author:
    Yuriy Movchan
    • Constructor Detail

      • RegistrationService

        public RegistrationService()
    • Method Detail

      • builRegisterRequestMessage

        public io.jans.as.model.fido.u2f.protocol.RegisterRequestMessage builRegisterRequestMessage​(java.lang.String appId,
                                                                                                    java.lang.String userInum)
      • startRegistration

        public io.jans.as.model.fido.u2f.protocol.RegisterRequest startRegistration​(java.lang.String appId)
      • startRegistration

        public io.jans.as.model.fido.u2f.protocol.RegisterRequest startRegistration​(java.lang.String appId,
                                                                                    byte[] challenge)
      • finishRegistration

        public DeviceRegistrationResult finishRegistration​(io.jans.as.model.fido.u2f.protocol.RegisterRequestMessage requestMessage,
                                                           io.jans.as.model.fido.u2f.protocol.RegisterResponse response,
                                                           java.lang.String userInum)
                                                    throws io.jans.as.model.fido.u2f.exception.BadInputException
        Throws:
        io.jans.as.model.fido.u2f.exception.BadInputException
      • finishRegistration

        public DeviceRegistrationResult finishRegistration​(io.jans.as.model.fido.u2f.protocol.RegisterRequestMessage requestMessage,
                                                           io.jans.as.model.fido.u2f.protocol.RegisterResponse response,
                                                           java.lang.String userInum,
                                                           java.util.Set<java.lang.String> facets)
                                                    throws io.jans.as.model.fido.u2f.exception.BadInputException
        Throws:
        io.jans.as.model.fido.u2f.exception.BadInputException
      • storeRegisterRequestMessage

        public RequestMessageLdap storeRegisterRequestMessage​(io.jans.as.model.fido.u2f.protocol.RegisterRequestMessage requestMessage,
                                                              java.lang.String userInum,
                                                              java.lang.String sessionId)
      • getRegisterRequestMessage

        public io.jans.as.model.fido.u2f.protocol.RegisterRequestMessage getRegisterRequestMessage​(java.lang.String jsId)
      • getRegisterRequestMessageByRequestId

        public RegisterRequestMessageLdap getRegisterRequestMessageByRequestId​(java.lang.String requestId)
      • removeRegisterRequestMessage

        public void removeRegisterRequestMessage​(RequestMessageLdap registerRequestMessageLdap)
      • getDnForRegisterRequestMessage

        public java.lang.String getDnForRegisterRequestMessage​(java.lang.String jsId)
        Build DN string for U2F register request