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

## Class Method Summary (collapse)

- + (Object) create(vertx = nil, realmType = nil, config = nil)

## Instance Method Summary (collapse)

- - (ShiroAuth) initialize(j_del) constructor
  A new instance of ShiroAuth.
- - (Object) j_del

## Constructor Details

### - (`ShiroAuth`) initialize(j_del)

Returns a new instance of ShiroAuth

    9
    10
    11
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-auth-common/shiro_auth.rb', line 9

    def initialize(j_del)
      @j_del = j_del
    end

## Class Method Details

### + (`Object`) create(vertx = nil, realmType = nil, config = nil)

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

## Instance Method Details

### - (`Object`) j_del

    14
    15
    16
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-auth-common/shiro_auth.rb', line 14

    def j_del
      @j_del
    end