public class ScopeAuthorization extends AuthorizationProvider
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<ScopeAuthorization> |
__TYPE_ARG |
| Constructor and Description |
|---|
ScopeAuthorization(Object delegate) |
ScopeAuthorization(io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization delegate) |
| Modifier and Type | Method and Description |
|---|---|
String |
claimKey()
Returns the configured claim key.
|
static ScopeAuthorization |
create()
Factory method to create a Authorization provider for Oauth 2.0 scopes using the default separator
" ". |
static ScopeAuthorization |
create(String scopeSeparator)
Factory method to create a Authorization provider for Oauth 2.0 scopes.
|
static ScopeAuthorization |
create(String scopeSeparator,
String claimKey)
Factory method to create a Authorization provider for OpenID Connect scopes.
|
String |
encode(List<String> scopes)
Returns a String with the given scopes concatenated with the given separator.
|
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()
Returns the configured separator.
|
String |
toString() |
create, getAuthorizations, getId, newInstance, rxGetAuthorizationspublic static final TypeArg<ScopeAuthorization> __TYPE_ARG
public ScopeAuthorization(io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization delegate)
public ScopeAuthorization(Object delegate)
public String toString()
toString in class AuthorizationProviderpublic boolean equals(Object o)
equals in class AuthorizationProviderpublic int hashCode()
hashCode in class AuthorizationProviderpublic io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization getDelegate()
getDelegate in class AuthorizationProviderpublic static ScopeAuthorization create()
" ".public static ScopeAuthorization create(String scopeSeparator)
scopeSeparator - the scope separator e.g.: " ", ",", "+"public static ScopeAuthorization create(String scopeSeparator, String claimKey)
scopeSeparator - the scope separator e.g.: " ", ",", "+"claimKey - the scope claim key e.g.: "scp", "scope"public String separator()
public String claimKey()
public String encode(List<String> scopes)
scopes - a list of scopespublic static ScopeAuthorization newInstance(io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization arg)
Copyright © 2022 Eclipse. All rights reserved.