Class JWTAuthorization
- java.lang.Object
-
- io.vertx.reactivex.ext.auth.jwt.authorization.JWTAuthorization
-
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate,AuthorizationProvider
public class JWTAuthorization extends Object implements io.vertx.lang.rx.RxDelegate, AuthorizationProvider
Implementation of the JWT authorization provider.NOTE: This class has been automatically generated from the
originalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<JWTAuthorization>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description JWTAuthorization(JWTAuthorization delegate)JWTAuthorization(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JWTAuthorizationcreate(String rootClaim)Factory method to create a Authorization provider for JWT tokens.booleanequals(Object o)Future<Void>getAuthorizations(User user)Updates the user with the set of authorizations.JWTAuthorizationgetDelegate()StringgetId()returns the id of the authorization providerinthashCode()static JWTAuthorizationnewInstance(JWTAuthorization arg)CompletablerxGetAuthorizations(User user)Updates the user with the set of authorizations.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<JWTAuthorization> __TYPE_ARG
-
-
Constructor Detail
-
JWTAuthorization
public JWTAuthorization(JWTAuthorization delegate)
-
JWTAuthorization
public JWTAuthorization(Object delegate)
-
-
Method Detail
-
getDelegate
public JWTAuthorization getDelegate()
- Specified by:
getDelegatein interfaceAuthorizationProvider- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
getId
public String getId()
returns the id of the authorization provider- Specified by:
getIdin interfaceAuthorizationProvider- Returns:
-
getAuthorizations
public Future<Void> getAuthorizations(User user)
Updates the user with the set of authorizations.- Specified by:
getAuthorizationsin interfaceAuthorizationProvider- Parameters:
user- user to lookup and update.- Returns:
- Future void to signal end of asynchronous call.
-
rxGetAuthorizations
public Completable rxGetAuthorizations(User user)
Updates the user with the set of authorizations.- Specified by:
rxGetAuthorizationsin interfaceAuthorizationProvider- Parameters:
user- user to lookup and update.- Returns:
- Future void to signal end of asynchronous call.
-
create
public static JWTAuthorization create(String rootClaim)
Factory method to create a Authorization provider for JWT tokens.- Parameters:
rootClaim- slash separated string to the json array with the claims.- Returns:
- a AuthorizationProvider
-
newInstance
public static JWTAuthorization newInstance(JWTAuthorization arg)
-
-