org.springframework.security.oauth.consumer.net
Class DefaultOAuthURLStreamHandlerFactory
java.lang.Object
org.springframework.security.oauth.consumer.net.DefaultOAuthURLStreamHandlerFactory
- All Implemented Interfaces:
- OAuthURLStreamHandlerFactory
public class DefaultOAuthURLStreamHandlerFactory
- extends Object
- implements OAuthURLStreamHandlerFactory
Default implementation. Assumes we're running on Sun's JVM.
- Author:
- Ryan Heaton
|
Method Summary |
URLStreamHandler |
getHttpsStreamHandler(ProtectedResourceDetails resourceDetails,
OAuthConsumerToken accessToken,
OAuthConsumerSupport support,
String httpMethod,
Map<String,String> additionalParameters)
Get the handler for an HTTPS stream. |
URLStreamHandler |
getHttpStreamHandler(ProtectedResourceDetails resourceDetails,
OAuthConsumerToken accessToken,
OAuthConsumerSupport support,
String httpMethod,
Map<String,String> additionalParameters)
Get the handler for an HTTP stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultOAuthURLStreamHandlerFactory
public DefaultOAuthURLStreamHandlerFactory()
getHttpStreamHandler
public URLStreamHandler getHttpStreamHandler(ProtectedResourceDetails resourceDetails,
OAuthConsumerToken accessToken,
OAuthConsumerSupport support,
String httpMethod,
Map<String,String> additionalParameters)
- Description copied from interface:
OAuthURLStreamHandlerFactory
- Get the handler for an HTTP stream.
- Specified by:
getHttpStreamHandler in interface OAuthURLStreamHandlerFactory
- Parameters:
resourceDetails - The resource details.accessToken - The access token.support - The logic support.httpMethod - The http method.additionalParameters - Additional parameters.
- Returns:
- The stream handler.
getHttpsStreamHandler
public URLStreamHandler getHttpsStreamHandler(ProtectedResourceDetails resourceDetails,
OAuthConsumerToken accessToken,
OAuthConsumerSupport support,
String httpMethod,
Map<String,String> additionalParameters)
- Description copied from interface:
OAuthURLStreamHandlerFactory
- Get the handler for an HTTPS stream.
- Specified by:
getHttpsStreamHandler in interface OAuthURLStreamHandlerFactory
- Parameters:
resourceDetails - The resource details.accessToken - The access token.support - The logic support.httpMethod - The http method.additionalParameters - Additional parameters.
- Returns:
- The stream handler.
Copyright © 2013. All rights reserved.