Class BearerTokenGuard.Builder

java.lang.Object
org.apache.juneau.rest.server.auth.BearerTokenGuard.Builder
Enclosing class:
BearerTokenGuard

public static class BearerTokenGuard.Builder extends Object
Builder class.
  • Constructor Details

    • Builder

      protected Builder()
      Constructor.
  • Method Details

    • validator

      Sets the token validator the guard delegates to.
      Parameters:
      value - The validator. Must not be null.
      Returns:
      This object.
    • realm

      Sets the WWW-Authenticate: Bearer realm="<value>" challenge realm.

      The realm string communicates to the client which protection space the credentials apply to. Defaults to "api" when not set.

      Parameters:
      value - The realm. Must not be null or blank.
      Returns:
      This object.
    • build

      Builds the guard.
      Returns:
      A new BearerTokenGuard.