Class: VertxAuthCommon::ShiroAuth
- Inherits:
-
Object
- Object
- VertxAuthCommon::ShiroAuth
- Defined in:
- /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-auth-common/shiro_auth.rb
Overview
Factory interface for creating Apache Shiro based AuthProvider instances.
Class Method Summary (collapse)
Class Method Details
+ (::VertxAuthCommon::AuthProvider) create(vertx = nil, realmType = nil, config = nil)
21 22 23 24 25 26 |
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-auth-common/shiro_auth.rb', line 21 def self.create(vertx=nil,realmType=nil,config=nil) if vertx.class.method_defined?(:j_del) && realmType.class == Symbol && config.class == Hash && !block_given? return ::VertxAuthCommon::AuthProvider.new(Java::IoVertxExtAuthShiro::ShiroAuth.java_method(:create, [Java::IoVertxCore::Vertx.java_class,Java::IoVertxExtAuthShiro::ShiroAuthRealmType.java_class,Java::IoVertxCoreJson::JsonObject.java_class]).call(vertx.j_del,Java::IoVertxExtAuthShiro::ShiroAuthRealmType.valueOf(realmType),::Vertx::Util::Utils.to_json_object(config))) end raise ArgumentError, "Invalid arguments when calling create(vertx,realmType,config)" end |