Class List Method List File List

# Class: VertxAuthCommon::ShiroAuth

Inherits:
  Object
  - Object
  - VertxAuthCommon::ShiroAuth
  show all
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)

- + (::VertxAuthCommon::AuthProvider) create(vertx = nil, realmType = nil, config = nil)

## Class Method Details

### + (`::VertxAuthCommon::AuthProvider`) create(vertx = nil, realmType = nil, config = nil)

Parameters:

- vertx (`::Vertx::Vertx`) (defaults to: `nil`)
- realmType (`:PROPERTIES`, `:LDAP`) (defaults to: `nil`)
- config (`Hash{String => Object}`) (defaults to: `nil`)

Returns:

- (`::VertxAuthCommon::AuthProvider`)

Raises:

- (`ArgumentError`)

    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