Annotation Interface Authentication


@Retention(RUNTIME) @Target(TYPE) @Inherited public @interface Authentication
Defines the authentication scheme to use with URLs
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Override default `Authorization` header with this value
    Password to use for basic authentication
    Token to use for bearer token authentication
    Username to use for basic authentication
  • Element Details

    • username

      String username
      Username to use for basic authentication
      Default:
      ""
    • password

      String password
      Password to use for basic authentication
      Default:
      ""
    • token

      String token
      Token to use for bearer token authentication
      Default:
      ""
    • headerName

      String headerName
      Override default `Authorization` header with this value
      Default:
      "Authorization"