class DefaultAccessKeyStorage implements AccessKeyStorage {

    @Override
    public AccessKeyPair getAccessKey(URL url, Invocation invocation) {
        AccessKeyPair accessKeyPair = new AccessKeyPair();
        String accessKeyId = url.getParameter(Constants.ACCESS_KEY_ID_KEY);
        String secretAccessKey = url.getParameter(Constants.SECRET_ACCESS_KEY_KEY);
        accessKeyPair.setAccessKey(accessKeyId);
        accessKeyPair.setSecretKey(secretAccessKey);
        return accessKeyPair;
    }

}