@Test public void testWithEmptyAppIdProcessRequest() { AuthenticationRequestProcessing p = new AuthenticationRequestProcessing(); AuthenticationRequest req = getTestRequestWithEmptyApp(); AuthenticationResponse resp = p.processRequest(req); assertNotNull(resp); logger.info(gson.toJson(resp)); }
public AuthenticationResponse processRequest(AuthenticationRequest request) { AuthenticationResponse response = new AuthenticationResponse(); Gson gson = new Gson(); setAppId(request, response); response.header = new OperationHeader(); response.header.serverData = request.header.serverData; response.header.op = request.header.op; response.header.upv = request.header.upv; FinalChallengeParams fcParams = new FinalChallengeParams(); fcParams.appID = Constants.APP_ID; fcParams.facetID = Constants.FACET_ID; fcParams.challenge = request.challenge; response.fcParams = Base64.encodeBase64URLSafeString(gson.toJson( fcParams).getBytes()); setAssertions(response); return response; }
AuthenticationRequestProcessing { public AuthenticationResponse processRequest(AuthenticationRequest request) { AuthenticationResponse response = new AuthenticationResponse(); Gson gson = new Gson(); setAppId(request, response); response.header = new OperationHeader(); response.header.serverData = request.header.serverData; response.header.op = request.header.op; response.header.upv = request.header.upv; FinalChallengeParams fcParams = new FinalChallengeParams(); fcParams.appID = Constants.APP_ID; fcParams.facetID = Constants.FACET_ID; fcParams.challenge = request.challenge; response.fcParams = Base64.encodeBase64URLSafeString(gson.toJson( fcParams).getBytes()); setAssertions(response); return response; } }
AuthenticationRequestProcessing { public AuthenticationResponse processRequest(AuthenticationRequest request) { AuthenticationResponse response = new AuthenticationResponse(); Gson gson = new Gson(); setAppId(request, response); response.header = new OperationHeader(); response.header.serverData = request.header.serverData; response.header.op = request.header.op; response.header.upv = request.header.upv; FinalChallengeParams fcParams = new FinalChallengeParams(); fcParams.appID = Constants.APP_ID; fcParams.facetID = Constants.FACET_ID; fcParams.challenge = request.challenge; response.fcParams = Base64.encodeBase64URLSafeString(gson.toJson( fcParams).getBytes()); setAssertions(response); return response; }  }
AuthenticationRequestProcessing { public AuthenticationResponse processRequest(AuthenticationRequest request) { AuthenticationResponse response = new AuthenticationResponse(); Gson gson = new Gson(); setAppId(request, response); response.header = new OperationHeader(); response.header.serverData = request.header.serverData; response.header.op = request.header.op; response.header.upv = request.header.upv; FinalChallengeParams fcParams = new FinalChallengeParams(); fcParams.appID = Constants.APP_ID; fcParams.facetID = Constants.FACET_ID; fcParams.challenge = request.challenge; response.fcParams = Base64.encodeBase64URLSafeString(gson.toJson( fcParams).getBytes()); setAssertions(response); return response; }  AuthenticationResponse processRequest(AuthenticationRequest request); }
AuthenticationRequestProcessing { public AuthenticationResponse processRequest(AuthenticationRequest request) { AuthenticationResponse response = new AuthenticationResponse(); Gson gson = new Gson(); setAppId(request, response); response.header = new OperationHeader(); response.header.serverData = request.header.serverData; response.header.op = request.header.op; response.header.upv = request.header.upv; FinalChallengeParams fcParams = new FinalChallengeParams(); fcParams.appID = Constants.APP_ID; fcParams.facetID = Constants.FACET_ID; fcParams.challenge = request.challenge; response.fcParams = Base64.encodeBase64URLSafeString(gson.toJson( fcParams).getBytes()); setAssertions(response); return response; }  AuthenticationResponse processRequest(AuthenticationRequest request);  }