Class ScopeAuthorization
java.lang.Object
io.vertx.mutiny.ext.auth.authorization.AuthorizationProvider
io.vertx.mutiny.ext.auth.oauth2.authorization.ScopeAuthorization
- All Implemented Interfaces:
MutinyDelegate
Scope is a mechanism in OAuth 2.0 to limit an application's access to a user's account.
An application can request one or more scopes, this information is then presented to the
user in the consent screen, and the access token issued to the application will be
limited to the scopes granted.
The OAuth spec allows the authorization server or user to modify the scopes granted to
the application compared to what is requested, although there are not many examples of
services doing this in practice.
OAuth2 does not define any particular values for scopes, since it is highly dependent
on the service's internal architecture and needs.
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScopeAuthorization(io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization delegate) ScopeAuthorization(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionclaimKey()static ScopeAuthorizationcreate()static ScopeAuthorizationstatic ScopeAuthorizationbooleanio.vertx.ext.auth.oauth2.authorization.ScopeAuthorizationinthashCode()static ScopeAuthorizationnewInstance(io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization arg) toString()Methods inherited from class io.vertx.mutiny.ext.auth.authorization.AuthorizationProvider
create, getAuthorizations, getAuthorizationsAndAwait, getAuthorizationsAndForget, getId, newInstance
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ScopeAuthorization
public ScopeAuthorization(io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization delegate) -
ScopeAuthorization
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Overrides:
getDelegatein classAuthorizationProvider- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
- Overrides:
toStringin classAuthorizationProvider
-
equals
- Overrides:
equalsin classAuthorizationProvider
-
hashCode
public int hashCode()- Overrides:
hashCodein classAuthorizationProvider
-
create
- Returns:
- a AuthorizationProvider
-
create
- Parameters:
scopeSeparator- the scope separator e.g.:" ",",","+"- Returns:
- a AuthorizationProvider
-
create
- Parameters:
scopeSeparator- the scope separator e.g.:" ",",","+"claimKey- the scope claim key e.g.:"scp","scope"- Returns:
- a AuthorizationProvider
-
separator
- Returns:
- the separator.
-
claimKey
- Returns:
- the claim key.
-
encode
- Parameters:
scopes- a list of scopes- Returns:
- concatenated string.
-
newInstance
public static ScopeAuthorization newInstance(io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization arg)
-