Class: VertxAuthOauth2::MicroProfileRBAC

Inherits:
Object
  • Object
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)

Returns:

  • (Boolean)


19
20
21
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/micro_profile_rbac.rb', line 19

def @@j_api_type.accept?(obj)
  obj.class == MicroProfileRBAC
end

+ (::VertxAuthOauth2::OAuth2RBAC) create

Factory method to create a RBAC handler for tokens adhering to the MP-JWT 1.1 spec.

Returns:



37
38
39
40
41
42
43
44
45
46
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/micro_profile_rbac.rb', line 37

def self.create
  if !block_given?
    return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtAuthOauth2Rbac::MicroProfileRBAC.java_method(:create, []).call(),::VertxAuthOauth2::OAuth2RBAC)
  end
  if defined?(super)
    super
  else
    raise ArgumentError, "Invalid arguments when calling create()"
  end
end

+ (Object) j_api_type



28
29
30
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/micro_profile_rbac.rb', line 28

def self.j_api_type
  @@j_api_type
end

+ (Object) j_class



31
32
33
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/micro_profile_rbac.rb', line 31

def self.j_class
  Java::IoVertxExtAuthOauth2Rbac::MicroProfileRBAC.java_class
end

+ (Object) unwrap(obj)



25
26
27
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/micro_profile_rbac.rb', line 25

def @@j_api_type.unwrap(obj)
  obj.j_del
end

+ (Object) wrap(obj)



22
23
24
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/micro_profile_rbac.rb', line 22

def @@j_api_type.wrap(obj)
  MicroProfileRBAC.new(obj)
end