Package org.teiid.jboss.oauth
Class OAuth20CredentialImpl
- java.lang.Object
-
- org.teiid.jboss.oauth.OAuth20CredentialImpl
-
- All Implemented Interfaces:
OAuthCredential
public class OAuth20CredentialImpl extends Object implements OAuthCredential
-
-
Constructor Summary
Constructors Constructor Description OAuth20CredentialImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.cxf.rs.security.oauth2.common.ClientAccessToken
getAccessToken()
String
getAccessTokenString()
String
getAccessTokenURI()
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
getClientId()
String
getClientSecret()
String
getRefreshToken()
void
setAccessTokenString(String accessTokenString)
void
setAccessTokenURI(String accessTokenURI)
void
setClientId(String clientId)
void
setClientSecret(String clientSecret)
void
setRefreshToken(String refreshToken)
-
-
-
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
-
getAccessToken
protected org.apache.cxf.rs.security.oauth2.common.ClientAccessToken getAccessToken()
-
getClientId
public String getClientId()
-
setClientId
public void setClientId(String clientId)
-
getClientSecret
public String getClientSecret()
-
setClientSecret
public void setClientSecret(String clientSecret)
-
getRefreshToken
public String getRefreshToken()
-
setRefreshToken
public void setRefreshToken(String refreshToken)
-
getAccessTokenURI
public String getAccessTokenURI()
-
setAccessTokenURI
public void setAccessTokenURI(String accessTokenURI)
-
getAccessTokenString
public String getAccessTokenString()
-
setAccessTokenString
public void setAccessTokenString(String accessTokenString)
-
-