Package com.frontend.models.response

Examples of com.frontend.models.response.DefaultResponse


        DHAgreementResponse serverDHResponse = initializeDHAgreement();

        DHAgreementModel localDHAgreementModel = dhAlgorithm.generateInitialNumbers(serverDHResponse.getP(), serverDHResponse.getG());
        FinalizeDHRequest finalizeDHRequest = new FinalizeDHRequest(serverDHResponse.getKeyExchangeSessionId(), localDHAgreementModel.getPublicA());

        DefaultResponse defaultResponse = finalizeDHAgreement(finalizeDHRequest);
    }
View Full Code Here


        try {
            byte[] secretKey = dhAlgorithm.generateSecret(dhAgreementModel.get_a(), finalizeDHRequest.getPublicB());
            secretKeys.put(finalizeDHRequest.getKeyExchangeSessionId(), secretKey);
            keyExchangeSessions.remove(finalizeDHRequest.getKeyExchangeSessionId());

            return new DefaultResponse();
        } catch (CreatingDHAgreementException e) {
            return new ErrorResponse(e.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of com.frontend.models.response.DefaultResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.