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(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, getAuthorizations, getId, newInstance, rxGetAuthorizations
public static final io.vertx.lang.rx.TypeArg<ScopeAuthorization> __TYPE_ARG
public ScopeAuthorization(ScopeAuthorization delegate)
public ScopeAuthorization(Object delegate)
public String toString()
toString
in class AuthorizationProvider
public boolean equals(Object o)
equals
in class AuthorizationProvider
public int hashCode()
hashCode
in class AuthorizationProvider
public ScopeAuthorization getDelegate()
getDelegate
in class AuthorizationProvider
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 © 2021 Eclipse. All rights reserved.