Class: VertxAuth::ShiroAuthProvider

Inherits:
AuthProvider show all
Defined in:
/Users/julien/java/vertx-aggregator/modules/vertx-auth-service/src/main/resources/vertx-auth/shiro_auth_provider.rb

Overview

@author Tim Fox

Class Method Summary (collapse)

Methods inherited from AuthProvider

#has_permission, #has_role, #login

Class Method Details

+ (::VertxAuth::ShiroAuthProvider) create(vertx = nil, shiroAuthRealmType = nil, config = nil)

Parameters:

  • vertx (::Vertx::Vertx) (defaults to: nil)
  • shiroAuthRealmType (:PROPERTIES, :LDAP) (defaults to: nil)
  • config (Hash{String => Object}) (defaults to: nil)

Returns:

Raises:

  • (ArgumentError)


22
23
24
25
26
27
# File '/Users/julien/java/vertx-aggregator/modules/vertx-auth-service/src/main/resources/vertx-auth/shiro_auth_provider.rb', line 22

def self.create(vertx=nil,shiroAuthRealmType=nil,config=nil)
  if vertx.class.method_defined?(:j_del) && shiroAuthRealmType.class == Symbol && config.class == Hash && !block_given?
    return ::VertxAuth::ShiroAuthProvider.new(Java::IoVertxExtAuthShiro::ShiroAuthProvider.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(shiroAuthRealmType),::Vertx::Util::Utils.to_json_object(config)))
  end
  raise ArgumentError, "Invalid arguments when calling create(vertx,shiroAuthRealmType,config)"
end