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.ClientAccessTokengetAccessToken()StringgetAccessTokenString()StringgetAccessTokenURI()StringgetAuthorizationHeader(String resourceURI, String httpMethod)Get Authorization Header for the OAuth 1.0a & OAuth 2.0 specificationStringgetAuthrorizationProperty(String key)Get Authorization Token properties by NameStringgetClientId()StringgetClientSecret()StringgetRefreshToken()voidsetAccessTokenString(String accessTokenString)voidsetAccessTokenURI(String accessTokenURI)voidsetClientId(String clientId)voidsetClientSecret(String clientSecret)voidsetRefreshToken(String refreshToken)
-
-
-
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
-
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)
-
-