org.apache.storm.security.auth.authorizer

## Class DenyAuthorizer

- java.lang.Object
- - org.apache.storm.security.auth.authorizer.DenyAuthorizer

- All Implemented Interfaces:
    IAuthorizer

      public class DenyAuthorizer
      extends Object
      implements IAuthorizer

  An authorization implementation that denies everything, for testing purposes.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DenyAuthorizer()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `permit(ReqContext context, String operation, Map<String,Object> topoConf)` permit() method is invoked for each incoming Thrift request.
    `void` | `prepare(Map<String,Object> conf)` Invoked once immediately after construction.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DenyAuthorizer

          public DenyAuthorizer()

  - ### Method Detail

    - #### prepare

          public void prepare(Map<String,Object> conf)

      Invoked once immediately after construction.

      Specified by:
        `prepare` in interface `IAuthorizer`
      Parameters:
        `conf` - Storm configuration

    - #### permit

          public boolean permit(ReqContext context,
                                String operation,
                                Map<String,Object> topoConf)

      permit() method is invoked for each incoming Thrift request.

      Specified by:
        `permit` in interface `IAuthorizer`
      Parameters:
        `context` - request context
        `operation` - operation name
        `topoConf` - configuration of targeted topology
      Returns:
        true if the request is authorized, false if reject

Copyright © 2021 The Apache Software Foundation. All rights reserved.