Package org.wso2.carbon.apimgt.api.model
Class AccessTokenRequest
- java.lang.Object
-
- org.wso2.carbon.apimgt.api.model.AccessTokenRequest
-
public class AccessTokenRequest extends Object
Representation of a Token Generation Request.
-
-
Constructor Summary
Constructors Constructor Description AccessTokenRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRequestParam(String paramName, Object paramValue)
String
getCallbackURI()
String
getClientId()
String
getClientSecret()
String
getGrantType()
String
getRefreshToken()
Object
getRequestParam(String key)
String
getResourceOwnerPassword()
String
getResourceOwnerUsername()
String[]
getScope()
String
getTenantDomain()
String
getTokenToRevoke()
long
getValidityPeriod()
void
setCallbackURI(String callbackURI)
void
setClientId(String clientId)
void
setClientSecret(String clientSecret)
void
setGrantType(String grantType)
void
setRefreshToken(String refreshToken)
void
setResourceOwnerPassword(String resourceOwnerPassword)
void
setResourceOwnerUsername(String resourceOwnerUsername)
void
setScope(String[] scope)
void
setTenantDomain(String tenantDomain)
void
setTokenToRevoke(String tokenToRevoke)
void
setValidityPeriod(long validityPeriod)
-
-
-
Method Detail
-
getTokenToRevoke
public String getTokenToRevoke()
-
setTokenToRevoke
public void setTokenToRevoke(String tokenToRevoke)
-
getClientId
public String getClientId()
-
setClientId
public void setClientId(String clientId)
-
getClientSecret
public String getClientSecret()
-
setClientSecret
public void setClientSecret(String clientSecret)
-
getGrantType
public String getGrantType()
-
setGrantType
public void setGrantType(String grantType)
-
getScope
public String[] getScope()
-
setScope
public void setScope(String[] scope)
-
getCallbackURI
public String getCallbackURI()
-
setCallbackURI
public void setCallbackURI(String callbackURI)
-
getValidityPeriod
public long getValidityPeriod()
-
setValidityPeriod
public void setValidityPeriod(long validityPeriod)
-
getResourceOwnerUsername
public String getResourceOwnerUsername()
-
setResourceOwnerUsername
public void setResourceOwnerUsername(String resourceOwnerUsername)
-
getResourceOwnerPassword
public String getResourceOwnerPassword()
-
setResourceOwnerPassword
public void setResourceOwnerPassword(String resourceOwnerPassword)
-
getRefreshToken
public String getRefreshToken()
-
setRefreshToken
public void setRefreshToken(String refreshToken)
-
getTenantDomain
public String getTenantDomain()
-
setTenantDomain
public void setTenantDomain(String tenantDomain)
-
-