return new LinkedInOAuthRequestFilter(getOAuthParams(configuration),
configuration.getHttpParams(), configuration.isLazyAuth(), enabledProtocols);
}
private static OAuthParams getOAuthParams(LinkedInConfiguration configuration) {
return new OAuthParams(configuration.getUserName(), configuration.getUserPassword(),
new CachingOAuthSecureStorage(configuration.getSecureStorage()), configuration.getClientId(), configuration.getClientSecret(),
configuration.getRedirectUri(), configuration.getScopes());
}