Class JWTAuthorization
- java.lang.Object
-
- io.vertx.rxjava.ext.auth.jwt.authorization.JWTAuthorization
-
- All Implemented Interfaces:
AuthorizationProvider
public class JWTAuthorization extends Object implements AuthorizationProvider
Implementation of the JWT authorization provider.NOTE: This class has been automatically generated from the
original
non RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static 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 JWTAuthorization
create(String rootClaim)
Factory method to create a Authorization provider for JWT tokens.boolean
equals(Object o)
Future<Void>
getAuthorizations(User user)
Updates the user with the set of authorizations.JWTAuthorization
getDelegate()
String
getId()
returns the id of the authorization providerint
hashCode()
static JWTAuthorization
newInstance(JWTAuthorization arg)
rx.Single<Void>
rxGetAuthorizations(User user)
Updates the user with the set of authorizations.String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<JWTAuthorization> __TYPE_ARG
-
-
Constructor Detail
-
JWTAuthorization
public JWTAuthorization(JWTAuthorization delegate)
-
JWTAuthorization
public JWTAuthorization(Object delegate)
-
-
Method Detail
-
getDelegate
public JWTAuthorization getDelegate()
- Specified by:
getDelegate
in interfaceAuthorizationProvider
-
getId
public String getId()
returns the id of the authorization provider- Specified by:
getId
in interfaceAuthorizationProvider
- Returns:
-
getAuthorizations
public Future<Void> getAuthorizations(User user)
Updates the user with the set of authorizations.- Specified by:
getAuthorizations
in interfaceAuthorizationProvider
- Parameters:
user
- user to lookup and update.- Returns:
- Future void to signal end of asynchronous call.
-
rxGetAuthorizations
public rx.Single<Void> rxGetAuthorizations(User user)
Updates the user with the set of authorizations.- Specified by:
rxGetAuthorizations
in 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)
-
-