public class JSqrlServer
extends java.lang.Object
| Constructor and Description |
|---|
JSqrlServer(SqrlUserService userService,
SqrlAuthenticationService sqrlAuthenticationService,
SqrlConfig config,
SqrlNutService nutService) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
checkAuthenticationStatus(java.lang.String nut,
java.lang.String ipAddress)
This method should be used to check the authentication status of a nut.
|
java.lang.String |
createAuthenticationRequest(java.lang.String ipAddress,
java.lang.Boolean qr)
This method should be the method called when a user is requesting
a nut.
|
SqrlAuthResponse |
handleClientRequest(SqrlClientRequest request,
java.lang.String nut,
java.lang.String ipAddress) |
public JSqrlServer(SqrlUserService userService, SqrlAuthenticationService sqrlAuthenticationService, SqrlConfig config, SqrlNutService nutService)
public java.lang.String createAuthenticationRequest(java.lang.String ipAddress,
java.lang.Boolean qr)
ipAddress - The requesting IP Addressqr - If the user used the QR code or notpublic java.lang.Boolean checkAuthenticationStatus(java.lang.String nut,
java.lang.String ipAddress)
nut - The nut provided by the useripAddress - The requesting IP Addresspublic SqrlAuthResponse handleClientRequest(SqrlClientRequest request, java.lang.String nut, java.lang.String ipAddress)