Class: VertxAuthJwt::MicroProfileAuthorization
- Inherits:
-
VertxAuthCommon::AuthorizationProvider
show all
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jwt/micro_profile_authorization.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)
#get_authorizations, #get_id
Class Method Details
+ (Boolean) accept?(obj)
20
21
22
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jwt/micro_profile_authorization.rb', line 20
def @@j_api_type.accept?(obj)
obj.class == MicroProfileAuthorization
end
|
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 key accessToken
.
40
41
42
43
44
45
46
47
48
49
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jwt/micro_profile_authorization.rb', line 40
def self.create
if !block_given?
return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtAuthJwtAuthorization::MicroProfileAuthorization.java_method(:create, []).call(),::VertxAuthJwt::MicroProfileAuthorization)
end
if defined?(super)
super
else
raise ArgumentError, "Invalid arguments when calling create()"
end
end
|
+ (Object) j_api_type
29
30
31
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jwt/micro_profile_authorization.rb', line 29
def self.j_api_type
@@j_api_type
end
|
+ (Object) j_class
32
33
34
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jwt/micro_profile_authorization.rb', line 32
def self.j_class
Java::IoVertxExtAuthJwtAuthorization::MicroProfileAuthorization.java_class
end
|
+ (Object) unwrap(obj)
26
27
28
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jwt/micro_profile_authorization.rb', line 26
def @@j_api_type.unwrap(obj)
obj.j_del
end
|
+ (Object) wrap(obj)
23
24
25
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-jwt/micro_profile_authorization.rb', line 23
def @@j_api_type.wrap(obj)
MicroProfileAuthorization.new(obj)
end
|