Class List Method List File List

# Module: VertxWeb::AuthHandler

Included in:
  AuthHandlerImpl, BasicAuthHandler, JWTAuthHandler, OAuth2AuthHandler, RedirectAuthHandler
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web/auth_handler.rb

## Instance Method Summary (collapse)

- - (Object) add_authorities(authorities = nil)
- - (Object) add_authority(authority = nil)
- - (Object) handle(arg0 = nil)

## Instance Method Details

### - (`Object`) add_authorities(authorities = nil)

Raises:

- (`ArgumentError`)

    27
    28
    29
    30
    31
    32
    33
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web/auth_handler.rb', line 27

    def add_authorities(authorities=nil)
      if authorities.class == Set && !block_given?
        @j_del.java_method(:addAuthorities, [Java::JavaUtil::Set.java_class]).call(Java::JavaUtil::LinkedHashSet.new(authorities.map { |element| element }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling add_authorities(authorities)"
    end

### - (`Object`) add_authority(authority = nil)

Raises:

- (`ArgumentError`)

    17
    18
    19
    20
    21
    22
    23
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web/auth_handler.rb', line 17

    def add_authority(authority=nil)
      if authority.class == String && !block_given?
        @j_del.java_method(:addAuthority, [Java::java.lang.String.java_class]).call(authority)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling add_authority(authority)"
    end

### - (`Object`) handle(arg0 = nil)

Raises:

- (`ArgumentError`)

    8
    9
    10
    11
    12
    13
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-web/auth_handler.rb', line 8

    def handle(arg0=nil)
      if arg0.class.method_defined?(:j_del) && !block_given?
        return @j_del.java_method(:handle, [Java::IoVertxExtWeb::RoutingContext.java_class]).call(arg0.j_del)
      end
      raise ArgumentError, "Invalid arguments when calling handle(arg0)"
    end