com.holonplatform.auth.annotations

## Annotation Type Authenticate

-     @Retention(value=RUNTIME)
       @Target(value={TYPE,METHOD})
       @Documented
      public @interface Authenticate

  Annotation which can be used on classes or methods to require authentication for resource access.

  Optional allowed authentication scheme names specification is supported.

  Since:
    5.0.0

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String` | `redirectURI` Optional URI to which to redirect when the authentication fails.
    `String[]` | `schemes` Optional allowed authentication schemes to use to perform principal authentication.

- - ### Element Detail

    - #### schemes

          public abstract String[] schemes

      Optional allowed authentication schemes to use to perform principal authentication.

      When more than one scheme is specified, authentication delegate should validate scheme applicability in the order that they are declared.

      Returns:
        Authentication scheme names
      Default:
        {}

  - - #### redirectURI

          public abstract String redirectURI

      Optional URI to which to redirect when the authentication fails.

      The semantic and behaviour associated to the redirect URI is specific for every authentication delegate, and may not be supported at all.

      Returns:
        Redirect URI
      Default:
        ""

Copyright © 2019 The Holon Platform. All rights reserved.