# Class CalDavAuthentication

java.lang.Object
com.codename1.calendar.CalDavAuthentication

public abstract class CalDavAuthentication extends Object
App-owned CalDAV authentication strategy. Built-in strategies cover Basic, OAuth Bearer, and RFC 7616 Digest authentication.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CalDavAuthentication()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract AsyncResource<String>`
  `authorization(String method, String uri, String challenge, boolean forceRefresh)`
  `static CalDavAuthentication`
  `basic(String username, String password)`
  `static CalDavAuthentication`
  `bearer(CalendarTokenProvider tokens, String... scopes)`
  `static CalDavAuthentication`
  `digest(String username, String password)`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### CalDavAuthentication

    public CalDavAuthentication()

- ## Method Details

  - ### authorization

    public abstract AsyncResource<String> authorization(String method, String uri, String challenge, boolean forceRefresh)

  - ### basic

    public static CalDavAuthentication basic(String username, String password)

  - ### bearer

    public static CalDavAuthentication bearer(CalendarTokenProvider tokens, String... scopes)

  - ### digest

    public static CalDavAuthentication digest(String username, String password)