Class DefaultTokenRequestParameters
java.lang.Object
com.nimbusds.openid.connect.provider.spi.grants.DefaultTokenRequestParameters
- All Implemented Interfaces:
TokenRequestParameters
Default token request parameters implementation.
-
Constructor Summary
ConstructorDescriptionDefaultTokenRequestParameters
(@Nullable com.nimbusds.oauth2.sdk.Scope scope) Creates a new token request parameters instance.DefaultTokenRequestParameters
(@Nullable com.nimbusds.oauth2.sdk.Scope scope, @Nullable List<URI> resources, Map<String, List<String>> customParams) Creates a new token request parameters instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the custom token request parameters.Returns the resource server URI(s).@Nullable com.nimbusds.oauth2.sdk.Scope
getScope()
Returns the requested scope.
-
Constructor Details
-
DefaultTokenRequestParameters
Creates a new token request parameters instance.- Parameters:
scope
- The requested scope,null
if not specified.
-
DefaultTokenRequestParameters
public DefaultTokenRequestParameters(@Nullable com.nimbusds.oauth2.sdk.Scope scope, @Nullable List<URI> resources, Map<String, List<String>> customParams) Creates a new token request parameters instance.- Parameters:
scope
- The requested scope,null
if not specified.resources
- The requested resource server URI(s),null
if not specified.customParams
- Custom parameters, empty map if none.
-
-
Method Details
-
getScope
Description copied from interface:TokenRequestParameters
Returns the requested scope.- Specified by:
getScope
in interfaceTokenRequestParameters
- Returns:
- The scope,
null
if not specified.
-
getResources
Description copied from interface:TokenRequestParameters
Returns the resource server URI(s).- Specified by:
getResources
in interfaceTokenRequestParameters
- Returns:
- The resource server URI(s),
null
if not specified.
-
getCustomParameters
Description copied from interface:TokenRequestParameters
Returns the custom token request parameters.- Specified by:
getCustomParameters
in interfaceTokenRequestParameters
- Returns:
- The custom parameters, empty map if none.
-