Class: VertxAuthCommon::NotAuthorization
- Inherits:
-
Authorization
show all
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-common/not_authorization.rb
Overview
Allows to perform a logical 'not' of the specified authorization
Constant Summary
- @@j_api_type =
Object.new
Class Method Summary
(collapse)
Instance Method Summary
(collapse)
#match?, #verify?
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-common/not_authorization.rb', line 20
def @@j_api_type.accept?(obj)
obj.class == NotAuthorization
end
|
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-common/not_authorization.rb', line 38
def self.create(*args)
if args[0].class.method_defined?(:j_del) && !block_given?
return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtAuthAuthorization::NotAuthorization.java_method(:create, [Java::IoVertxExtAuthAuthorization::Authorization.java_class]).call(args[0].j_del),::VertxAuthCommon::NotAuthorization)
end
if defined?(super)
super
else
raise ArgumentError, "Invalid arguments when calling create(#{args[0]})"
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-common/not_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-common/not_authorization.rb', line 32
def self.j_class
Java::IoVertxExtAuthAuthorization::NotAuthorization.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-common/not_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-common/not_authorization.rb', line 23
def @@j_api_type.wrap(obj)
NotAuthorization.new(obj)
end
|
Instance Method Details
50
51
52
53
54
55
56
57
58
59
|
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-auth-common/not_authorization.rb', line 50
def get_authorization
if !block_given?
return ::Vertx::Util::Utils.safe_create(@j_del.java_method(:getAuthorization, []).call(),::VertxAuthCommon::Authorization)
end
if defined?(super)
super
else
raise ArgumentError, "Invalid arguments when calling get_authorization()"
end
end
|