Class ScopeAuthorization
- java.lang.Object
-
- io.vertx.mutiny.ext.auth.authorization.AuthorizationProvider
-
- io.vertx.mutiny.ext.auth.oauth2.authorization.ScopeAuthorization
-
public class ScopeAuthorization extends AuthorizationProvider
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 theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<ScopeAuthorization>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ScopeAuthorization(io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization delegate)
ScopeAuthorization(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
claimKey()
static ScopeAuthorization
create()
static ScopeAuthorization
create(String scopeSeparator)
static ScopeAuthorization
create(String scopeSeparator, String claimKey)
String
encode(List<String> scopes)
boolean
equals(Object o)
io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization
getDelegate()
int
hashCode()
static ScopeAuthorization
newInstance(io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization arg)
String
separator()
String
toString()
-
Methods inherited from class io.vertx.mutiny.ext.auth.authorization.AuthorizationProvider
create, getAuthorizations, getAuthorizationsAndAwait, getAuthorizationsAndForget, getId, newInstance
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<ScopeAuthorization> __TYPE_ARG
-
-
Constructor Detail
-
ScopeAuthorization
public ScopeAuthorization(io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization delegate)
-
ScopeAuthorization
public ScopeAuthorization(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization getDelegate()
- Overrides:
getDelegate
in classAuthorizationProvider
-
toString
public String toString()
- Overrides:
toString
in classAuthorizationProvider
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAuthorizationProvider
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAuthorizationProvider
-
create
public static ScopeAuthorization create()
- Returns:
- a AuthorizationProvider
-
create
public static ScopeAuthorization create(String scopeSeparator)
- Parameters:
scopeSeparator
- the scope separator e.g.:" "
,","
,"+"
- Returns:
- a AuthorizationProvider
-
create
public static ScopeAuthorization create(String scopeSeparator, String claimKey)
- Parameters:
scopeSeparator
- the scope separator e.g.:" "
,","
,"+"
claimKey
- the scope claim key e.g.:"scp"
,"scope"
- Returns:
- a AuthorizationProvider
-
separator
public String separator()
- Returns:
- the separator.
-
claimKey
public String claimKey()
- Returns:
- the claim key.
-
encode
public String encode(List<String> scopes)
- Parameters:
scopes
- a list of scopes- Returns:
- concatenated string.
-
newInstance
public static ScopeAuthorization newInstance(io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization arg)
-
-