Class RegistrationService
- java.lang.Object
-
- io.jans.as.server.service.fido.u2f.RequestService
-
- io.jans.as.server.service.fido.u2f.RegistrationService
-
@Named("u2fRegistrationService") public class RegistrationService extends RequestService
Provides operations with U2F registration requests- Version:
- August 9, 2017
- Author:
- Yuriy Movchan
-
-
Constructor Summary
Constructors Constructor Description RegistrationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.jans.as.model.fido.u2f.protocol.RegisterRequestMessage
builRegisterRequestMessage(java.lang.String appId, java.lang.String userInum)
DeviceRegistrationResult
finishRegistration(io.jans.as.model.fido.u2f.protocol.RegisterRequestMessage requestMessage, io.jans.as.model.fido.u2f.protocol.RegisterResponse response, java.lang.String userInum)
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)
java.lang.String
getDnForRegisterRequestMessage(java.lang.String jsId)
Build DN string for U2F register requestio.jans.as.model.fido.u2f.protocol.RegisterRequestMessage
getRegisterRequestMessage(java.lang.String jsId)
RegisterRequestMessageLdap
getRegisterRequestMessageByRequestId(java.lang.String requestId)
void
merge(RequestMessageLdap request)
void
removeRegisterRequestMessage(RequestMessageLdap registerRequestMessageLdap)
io.jans.as.model.fido.u2f.protocol.RegisterRequest
startRegistration(java.lang.String appId)
io.jans.as.model.fido.u2f.protocol.RegisterRequest
startRegistration(java.lang.String appId, byte[] challenge)
RequestMessageLdap
storeRegisterRequestMessage(io.jans.as.model.fido.u2f.protocol.RegisterRequestMessage requestMessage, java.lang.String userInum, java.lang.String sessionId)
-
Methods inherited from class io.jans.as.server.service.fido.u2f.RequestService
getExpiredRequestMessages, removeRequestMessage
-
-
-
-
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
-
merge
public void merge(RequestMessageLdap request)
-
-