public class ScopeAuthorization extends AuthorizationProvider
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<ScopeAuthorization> |
__TYPE_ARG |
| Constructor and Description |
|---|
ScopeAuthorization(Object delegate) |
ScopeAuthorization(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) |
ScopeAuthorization |
getDelegate() |
int |
hashCode() |
static ScopeAuthorization |
newInstance(ScopeAuthorization arg) |
String |
separator()
Returns the configured separator.
|
String |
toString() |
create, getAuthorizations, getId, newInstance, rxGetAuthorizationspublic static final io.vertx.lang.rx.TypeArg<ScopeAuthorization> __TYPE_ARG
public ScopeAuthorization(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 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(ScopeAuthorization arg)
Copyright © 2024 Eclipse. All rights reserved.