Class MicroProfileAuthorization
java.lang.Object
io.vertx.rxjava3.ext.auth.jwt.authorization.MicroProfileAuthorization
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate, AuthorizationProvider
public class MicroProfileAuthorization
extends Object
implements io.vertx.lang.rx.RxDelegate, AuthorizationProvider
Implementation of the Microprofile MP-JWT 1.1 RBAC based on the access token groups key.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<MicroProfileAuthorization> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MicroProfileAuthorizationcreate()Factory method to create a Authorization provider for tokens adhering to the MP-JWT 1.1 spec.booleangetAuthorizations(User user) Updates the user with the set of authorizations.getId()returns the id of the authorization providerinthashCode()static MicroProfileAuthorizationrxGetAuthorizations(User user) Updates the user with the set of authorizations.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MicroProfileAuthorization
-
MicroProfileAuthorization
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceAuthorizationProvider- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
getId
returns the id of the authorization provider- Specified by:
getIdin interfaceAuthorizationProvider- Returns:
-
getAuthorizations
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
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
Factory method to create a Authorization provider for tokens adhering to the MP-JWT 1.1 spec. When the user is known to not be a JWT, (e.g.: a OAuth2 response token) then the root claim is expected to be extracted from under the keyaccessToken.- Returns:
- a AuthorizationProvider
-
newInstance
-