public class OAuthExtUtils extends Object
| Constructor and Description |
|---|
OAuthExtUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
convertToDocument(File file) |
static String |
extractUserName(String username) |
static int |
getTenantId(String tenantDomain)
This method is used to get the tenant id when given tenant domain.
|
static boolean |
setScopes(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext tokReqMsgCtx)
This method is used to set scopes that are authorized to the OAuth token request message context.
|
static boolean |
validateScope(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext tokReqMsgCtx) |
public static int getTenantId(String tenantDomain)
tenantDomain - Tenant domain name.public static boolean setScopes(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext tokReqMsgCtx)
tokReqMsgCtx - OAuth token request message contextpublic static boolean validateScope(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext tokReqMsgCtx)
public static Document convertToDocument(File file) throws DeviceMgtScopesConfigurationFailedException
Copyright © 2016 WSO2. All rights reserved.