Class: VertxAuthOauth2::KeycloakRBAC
- Inherits:
-
Object
- Object
- VertxAuthOauth2::KeycloakRBAC
show all
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/keycloak_rbac.rb
Overview
Implementation of the Keycloak RBAC handler.
Constant Summary
- @@j_api_type =
Object.new
Class Method Summary
(collapse)
Class Method Details
+ (Boolean) accept?(obj)
19
20
21
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/keycloak_rbac.rb', line 19
def @@j_api_type.accept?(obj)
obj.class == KeycloakRBAC
end
|
Factory method to create a RBAC handler for tokens adhering to the Keycloak token format.
38
39
40
41
42
43
44
45
46
47
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-oauth2/keycloak_rbac.rb', line 38
def self.create(*args)
if args[0].class == Hash && !block_given?
return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtAuthOauth2Rbac::KeycloakRBAC.java_method(:create, [Java::IoVertxExtAuthOauth2::OAuth2ClientOptions.java_class]).call(Java::IoVertxExtAuthOauth2::OAuth2ClientOptions.new(::Vertx::Util::Utils.to_json_object(args[0]))),::VertxAuthOauth2::OAuth2RBAC)
end
if defined?(super)
super
else
raise ArgumentError, "Invalid arguments when calling create(#{args[0]})"
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/keycloak_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/keycloak_rbac.rb', line 31
def self.j_class
Java::IoVertxExtAuthOauth2Rbac::KeycloakRBAC.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/keycloak_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/keycloak_rbac.rb', line 22
def @@j_api_type.wrap(obj)
KeycloakRBAC.new(obj)
end
|