Package org.teiid.jboss.oauth
Class OAuth10CredentialImpl
- java.lang.Object
-
- org.teiid.jboss.oauth.OAuth10CredentialImpl
-
- All Implemented Interfaces:
Serializable
,OAuthCredential
public class OAuth10CredentialImpl extends Object implements OAuthCredential, Serializable
This helps aid with OAuth1.0a authentication. WS resource-adapter will look for instance of this class in current subject's credentials.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OAuth10CredentialImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessSecret()
String
getAccessToken()
String
getAuthorizationHeader(String resourceURI, String httpMethod)
Get Authorization Header for the OAuth 1.0a & OAuth 2.0 specificationString
getAuthrorizationProperty(String key)
Get Authorization Token properties by NameString
getConsumerKey()
String
getConsumerSecret()
void
setAccessSecret(String accessSecret)
void
setAccessToken(String accessToken)
void
setConsumerKey(String consumerKey)
void
setConsumerSecret(String consumerSecret)
-
-
-
Method Detail
-
getAuthorizationHeader
public String getAuthorizationHeader(String resourceURI, String httpMethod)
Description copied from interface:OAuthCredential
Get Authorization Header for the OAuth 1.0a & OAuth 2.0 specification- Specified by:
getAuthorizationHeader
in interfaceOAuthCredential
- Parameters:
resourceURI
- - protected resource that is being accessedhttpMethod
- - for ex: GET, PUT- Returns:
- Authorization header for HTTP call.
-
getAuthrorizationProperty
public String getAuthrorizationProperty(String key)
Description copied from interface:OAuthCredential
Get Authorization Token properties by Name- Specified by:
getAuthrorizationProperty
in interfaceOAuthCredential
-
getConsumerKey
public String getConsumerKey()
-
setConsumerKey
public void setConsumerKey(String consumerKey)
-
getConsumerSecret
public String getConsumerSecret()
-
setConsumerSecret
public void setConsumerSecret(String consumerSecret)
-
getAccessToken
public String getAccessToken()
-
setAccessToken
public void setAccessToken(String accessToken)
-
getAccessSecret
public String getAccessSecret()
-
setAccessSecret
public void setAccessSecret(String accessSecret)
-
-