@Test public void notNull() { AuthenticationRequest authReq= new AuthenticationRequestGeneration().createAuthenticationRequest(new NotaryImpl()); assertNotNull(authReq); logger.info(gson.toJson(authReq)); }
public AuthenticationRequest createAuthenticationRequest(Notary notary) { AuthenticationRequest authRequest = new AuthenticationRequest(); OperationHeader header = new OperationHeader(); authRequest.challenge = generateChallenge(); header.serverData = generateServerData(authRequest.challenge, notary); authRequest.header = header; authRequest.header.op = Operation.Auth; authRequest.header.appID = appId; authRequest.header.upv = new Version(1, 0); authRequest.policy = constructAuthenticationPolicy(); return authRequest; }
AuthenticationRequestGeneration { public AuthenticationRequest createAuthenticationRequest(Notary notary) { AuthenticationRequest authRequest = new AuthenticationRequest(); OperationHeader header = new OperationHeader(); authRequest.challenge = generateChallenge(); header.serverData = generateServerData(authRequest.challenge, notary); authRequest.header = header; authRequest.header.op = Operation.Auth; authRequest.header.appID = appId; authRequest.header.upv = new Version(1, 0); authRequest.policy = constructAuthenticationPolicy(); return authRequest; } }
AuthenticationRequestGeneration { public AuthenticationRequest createAuthenticationRequest(Notary notary) { AuthenticationRequest authRequest = new AuthenticationRequest(); OperationHeader header = new OperationHeader(); authRequest.challenge = generateChallenge(); header.serverData = generateServerData(authRequest.challenge, notary); authRequest.header = header; authRequest.header.op = Operation.Auth; authRequest.header.appID = appId; authRequest.header.upv = new Version(1, 0); authRequest.policy = constructAuthenticationPolicy(); return authRequest; } AuthenticationRequestGeneration();  AuthenticationRequestGeneration(String appId);  AuthenticationRequestGeneration(String appId, String[] acceptedAaids); }
AuthenticationRequestGeneration { public AuthenticationRequest createAuthenticationRequest(Notary notary) { AuthenticationRequest authRequest = new AuthenticationRequest(); OperationHeader header = new OperationHeader(); authRequest.challenge = generateChallenge(); header.serverData = generateServerData(authRequest.challenge, notary); authRequest.header = header; authRequest.header.op = Operation.Auth; authRequest.header.appID = appId; authRequest.header.upv = new Version(1, 0); authRequest.policy = constructAuthenticationPolicy(); return authRequest; } AuthenticationRequestGeneration();  AuthenticationRequestGeneration(String appId);  AuthenticationRequestGeneration(String appId, String[] acceptedAaids); AuthenticationRequest createAuthenticationRequest(Notary notary); Policy constructAuthenticationPolicy(); }
AuthenticationRequestGeneration { public AuthenticationRequest createAuthenticationRequest(Notary notary) { AuthenticationRequest authRequest = new AuthenticationRequest(); OperationHeader header = new OperationHeader(); authRequest.challenge = generateChallenge(); header.serverData = generateServerData(authRequest.challenge, notary); authRequest.header = header; authRequest.header.op = Operation.Auth; authRequest.header.appID = appId; authRequest.header.upv = new Version(1, 0); authRequest.policy = constructAuthenticationPolicy(); return authRequest; } AuthenticationRequestGeneration();  AuthenticationRequestGeneration(String appId);  AuthenticationRequestGeneration(String appId, String[] acceptedAaids); AuthenticationRequest createAuthenticationRequest(Notary notary); Policy constructAuthenticationPolicy();  }