Class: VertxAuthOauth2::MicroProfileRBAC
- Inherits:
-
Object
- Object
- VertxAuthOauth2::MicroProfileRBAC
show all
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/micro_profile_rbac.rb
Overview
Implementation of the Microprofile MP-JWT 1.1 RBAC based on the access token groups key.
Constant Summary
- @@j_api_type =
Object.new
Class Method Summary
(collapse)
Class Method Details
+ (Boolean) accept?(obj)
18
19
20
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/micro_profile_rbac.rb', line 18
def @@j_api_type.accept?(obj)
obj.class == MicroProfileRBAC
end
|
Factory method to create a RBAC handler for tokens adhering to the MP-JWT 1.1 spec.
35
36
37
38
39
40
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/micro_profile_rbac.rb', line 35
def self.create
if !block_given?
return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtAuthOauth2Rbac::MicroProfileRBAC.java_method(:create, []).call(),::VertxAuthOauth2::OAuth2RBAC)
end
raise ArgumentError, "Invalid arguments when calling create()"
end
|
+ (Object) j_api_type
27
28
29
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/micro_profile_rbac.rb', line 27
def self.j_api_type
@@j_api_type
end
|
+ (Object) j_class
30
31
32
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/micro_profile_rbac.rb', line 30
def self.j_class
Java::IoVertxExtAuthOauth2Rbac::MicroProfileRBAC.java_class
end
|
+ (Object) unwrap(obj)
24
25
26
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/micro_profile_rbac.rb', line 24
def @@j_api_type.unwrap(obj)
obj.j_del
end
|
+ (Object) wrap(obj)
21
22
23
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/micro_profile_rbac.rb', line 21
def @@j_api_type.wrap(obj)
MicroProfileRBAC.new(obj)
end
|