Package org.apereo.cas.support.oauth.web
Interface OAuth20RequestParameterResolver
public interface OAuth20RequestParameterResolver
This is
OAuth20RequestParameterResolver.- Since:
- 6.6.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAuthorizedGrantTypeForService(String grantType, org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService) Is authorized grant type for service?booleanisAuthorizedGrantTypeForService(org.pac4j.core.context.WebContext context, org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService) Is authorized grant type for service.booleanisAuthorizedResponseTypeForService(org.pac4j.core.context.WebContext context, org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService) Is authorized response type for service.booleanisParameterOnQueryString(org.pac4j.core.context.WebContext context, String name) Is the provided parameter name on the query string.resolveClientIdAndClientSecret(org.pac4j.core.context.CallContext callContext) Resolve client id and client secret pair.resolveGrantType(org.pac4j.core.context.WebContext context) Resolve grant type.<T> TresolveJwtRequestParameter(String jwtRequest, org.apereo.cas.services.RegisteredService service, String name, Class<T> clazz) Resolve jwt request parameter.<T> TresolveJwtRequestParameter(org.pac4j.core.context.WebContext context, String jwtRequest, String name, Class<T> clazz) Resolve jwt request.resolveRequestClaims(org.pac4j.core.context.WebContext context) Resolve request claims map.resolveRequestedPromptValues(org.pac4j.core.context.WebContext context) Resolve prompt parameter set.resolveRequestedScopes(org.pac4j.core.context.WebContext context) Resolve requested scopes.resolveRequestParameter(org.pac4j.core.context.WebContext context, String name) Resolve request parameter.<T> Optional<T> resolveRequestParameter(org.pac4j.core.context.WebContext context, String name, Class<T> clazz) Resolve request parameter.resolveRequestParameters(Collection<String> attributes, org.pac4j.core.context.WebContext context) Resolve request parameters map.resolveRequestScopes(org.pac4j.core.context.WebContext context) Resolve request scopes set.resolveResponseModeType(org.pac4j.core.context.WebContext context) Resolve response mode.resolveResponseType(org.pac4j.core.context.WebContext context) Resolve response type.Resolve prompt values.resolveSupportedPromptValues(org.pac4j.core.context.WebContext context) Resolve prompt values.resolveUserInfoRequestClaims(org.pac4j.core.context.WebContext context) Resolve user info request claims set.
-
Field Details
-
BEAN_NAME
Default bean name.- See Also:
-
LOGGER
static final org.slf4j.Logger LOGGERLogger instance.
-
-
Method Details
-
isAuthorizedGrantTypeForService
static boolean isAuthorizedGrantTypeForService(String grantType, org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService) Is authorized grant type for service?- Parameters:
grantType- the grant typeregisteredService- the registered service- Returns:
- true/false
-
isAuthorizedGrantTypeForService
boolean isAuthorizedGrantTypeForService(org.pac4j.core.context.WebContext context, org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService) Is authorized grant type for service.- Parameters:
context- the contextregisteredService- the registered service- Returns:
- true/false
-
resolveResponseType
Resolve response type.- Parameters:
context- the context- Returns:
- the response types
-
resolveGrantType
Resolve grant type.- Parameters:
context- the context- Returns:
- the grant types
-
resolveResponseModeType
Resolve response mode.- Parameters:
context- the context- Returns:
- response mode types
-
resolveJwtRequestParameter
<T> T resolveJwtRequestParameter(String jwtRequest, org.apereo.cas.services.RegisteredService service, String name, Class<T> clazz) throws Exception Resolve jwt request parameter.- Type Parameters:
T- the type parameter- Parameters:
jwtRequest- the jwt requestservice- the servicename- the nameclazz- the clazz- Returns:
- the type
- Throws:
Exception- the exception
-
resolveJwtRequestParameter
<T> T resolveJwtRequestParameter(org.pac4j.core.context.WebContext context, String jwtRequest, String name, Class<T> clazz) Resolve jwt request.- Type Parameters:
T- the type parameter- Parameters:
context- the contextjwtRequest- the jwt requestname- the nameclazz- the clazz- Returns:
- the type
-
resolveRequestParameters
Map<String,Object> resolveRequestParameters(Collection<String> attributes, org.pac4j.core.context.WebContext context) Resolve request parameters map.- Parameters:
attributes- the attributescontext- the context- Returns:
- the map
-
resolveRequestParameter
Resolve request parameter.- Parameters:
context- the contextname- the name- Returns:
- the optional
-
resolveRequestParameter
<T> Optional<T> resolveRequestParameter(org.pac4j.core.context.WebContext context, String name, Class<T> clazz) Resolve request parameter.- Type Parameters:
T- the type parameter- Parameters:
context- the contextname- the nameclazz- the clazz- Returns:
- the optional
-
resolveRequestedScopes
Resolve requested scopes.- Parameters:
context- the context- Returns:
- the collection
-
isAuthorizedResponseTypeForService
boolean isAuthorizedResponseTypeForService(org.pac4j.core.context.WebContext context, org.apereo.cas.support.oauth.services.OAuthRegisteredService registeredService) Is authorized response type for service.- Parameters:
context- the contextregisteredService- the registered service- Returns:
- true/false
-
resolveClientIdAndClientSecret
org.apache.commons.lang3.tuple.Pair<String,String> resolveClientIdAndClientSecret(org.pac4j.core.context.CallContext callContext) Resolve client id and client secret pair.- Parameters:
callContext- the call context- Returns:
- the pair
-
resolveRequestScopes
Resolve request scopes set.- Parameters:
context- the context- Returns:
- the set
-
resolveRequestClaims
Map<String,Map<String, resolveRequestClaimsObject>> (org.pac4j.core.context.WebContext context) throws Exception Resolve request claims map.- Parameters:
context- the context- Returns:
- the map
- Throws:
Exception- the exception
-
resolveUserInfoRequestClaims
Set<String> resolveUserInfoRequestClaims(org.pac4j.core.context.WebContext context) throws Exception Resolve user info request claims set.- Parameters:
context- the context- Returns:
- the set
- Throws:
Exception- the exception
-
resolveRequestedPromptValues
Resolve prompt parameter set.- Parameters:
context- the context- Returns:
- the set
-
resolveSupportedPromptValues
Resolve prompt values.- Parameters:
url- the url- Returns:
- the set
-
resolveSupportedPromptValues
Resolve prompt values.- Parameters:
context- the context- Returns:
- the set
-
isParameterOnQueryString
Is the provided parameter name on the query string.- Parameters:
context- the web contextname- the parameter name- Returns:
- whether the paremeter name is on the query string
-