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(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, getAuthorizations, getId, newInstance, rxGetAuthorizations
public 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 AuthorizationProvider
public boolean equals(Object o)
equals
in class AuthorizationProvider
public int hashCode()
hashCode
in class AuthorizationProvider
public io.vertx.ext.auth.oauth2.authorization.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(io.vertx.ext.auth.oauth2.authorization.ScopeAuthorization arg)
Copyright © 2021 Eclipse. All rights reserved.