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 StringgetAccessSecret()StringgetAccessToken()StringgetAuthorizationHeader(String resourceURI, String httpMethod)Get Authorization Header for the OAuth 1.0a & OAuth 2.0 specificationStringgetAuthrorizationProperty(String key)Get Authorization Token properties by NameStringgetConsumerKey()StringgetConsumerSecret()voidsetAccessSecret(String accessSecret)voidsetAccessToken(String accessToken)voidsetConsumerKey(String consumerKey)voidsetConsumerSecret(String consumerSecret)
-
-
-
Method Detail
-
getAuthorizationHeader
public String getAuthorizationHeader(String resourceURI, String httpMethod)
Description copied from interface:OAuthCredentialGet Authorization Header for the OAuth 1.0a & OAuth 2.0 specification- Specified by:
getAuthorizationHeaderin 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:OAuthCredentialGet Authorization Token properties by Name- Specified by:
getAuthrorizationPropertyin 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)
-
-