|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.identity.oauth.endpoint.util.EndpointUtil
public class EndpointUtil
| Constructor Summary | |
|---|---|
EndpointUtil()
|
|
| Method Summary | |
|---|---|
static String[] |
extractCredentialsFromAuthzHeader(String authorizationHeader)
Extracts the username and password info from the HTTP Authorization Header |
static String |
getAccessTokenValidator()
Returns the access token validator class name |
static String |
getErrorPageURL(String errorCode,
String errorMessage,
String appName,
String redirect_uri)
Returns the error page URL. |
static String |
getHostName()
|
static String |
getLoginPageURL(String clientId,
String sessionDataKey,
boolean forceAuthenticate,
boolean checkAuthentication,
Set<String> scopes)
Returns the login page URL. |
static org.wso2.carbon.identity.oauth2.OAuth2Service |
getOAuth2Service()
Returns the OAuth2Service instance |
static org.wso2.carbon.identity.oauth2.OAuth2TokenValidationService |
getOAuth2TokenValidationService()
Returns the OAuthServerConfiguration instance |
static org.wso2.carbon.identity.oauth.config.OAuthServerConfiguration |
getOAuthServerConfiguration()
Returns the OAuthServerConfiguration instance |
static String |
getRealmInfo()
|
static String |
getSafeText(String text)
|
static String |
getScope(org.wso2.carbon.identity.oauth2.model.OAuth2Parameters params)
|
static String |
getUserConsentURL(org.wso2.carbon.identity.oauth2.model.OAuth2Parameters params,
String loggedInUser,
String sessionDataKey,
boolean isOIDC)
Returns the consent page URL. |
static String |
getUserInfoClaimDialect()
Return the claim dialect for the claim retriever |
static String |
getUserInfoClaimRetriever()
Returns the claim retriever class name |
static String |
getUserInfoRequestValidator()
Returns the request validator class name |
static String |
getUserInfoResponseBuilder()
Returns the response builder class name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EndpointUtil()
| Method Detail |
|---|
public static org.wso2.carbon.identity.oauth2.OAuth2Service getOAuth2Service()
OAuth2Service instance
public static org.wso2.carbon.identity.oauth.config.OAuthServerConfiguration getOAuthServerConfiguration()
OAuthServerConfiguration instance
public static org.wso2.carbon.identity.oauth2.OAuth2TokenValidationService getOAuth2TokenValidationService()
OAuthServerConfiguration instance
public static String getUserInfoRequestValidator()
throws org.apache.amber.oauth2.common.exception.OAuthSystemException
org.apache.amber.oauth2.common.exception.OAuthSystemExceptionpublic static String getAccessTokenValidator()
public static String getUserInfoResponseBuilder()
public static String getUserInfoClaimRetriever()
public static String getUserInfoClaimDialect()
public static String[] extractCredentialsFromAuthzHeader(String authorizationHeader)
throws org.wso2.carbon.identity.oauth.common.exception.OAuthClientException
authorizationHeader - "Basic " + base64encode(username + ":" + password)
org.wso2.carbon.identity.base.IdentityException - If the decoded data is null.
org.wso2.carbon.identity.oauth.common.exception.OAuthClientException
public static String getErrorPageURL(String errorCode,
String errorMessage,
String appName,
String redirect_uri)
null it will be added as query parameter
to be displayed to the user. If redirect_uri is null the common error page URL will be returned.
errorCode - errorMessage - appName -
public static String getLoginPageURL(String clientId,
String sessionDataKey,
boolean forceAuthenticate,
boolean checkAuthentication,
Set<String> scopes)
throws UnsupportedEncodingException
checkAuthentication - forceAuthenticate - scopes -
UnsupportedEncodingException
public static String getUserConsentURL(org.wso2.carbon.identity.oauth2.model.OAuth2Parameters params,
String loggedInUser,
String sessionDataKey,
boolean isOIDC)
throws UnsupportedEncodingException
params - loggedInUser -
UnsupportedEncodingExceptionpublic static String getScope(org.wso2.carbon.identity.oauth2.model.OAuth2Parameters params)
public static String getSafeText(String text)
public static String getRealmInfo()
public static String getHostName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||