Class CalDavAuthenticationException

All Implemented Interfaces:
Serializable

public class CalDavAuthenticationException extends CalDavException
The server refused the credentials. Distinguished from CalDavException because the caller reacts differently: a sync engine must treat a credential refusal as a state (pause the pair, tell the user to reconnect), never as a transient failure to retry — hammering a corporate account with a stale password is how accounts get locked.

Thrown on 401 and 407 for every verb, and also on 403 for the read verbs (PROPFIND, REPORT, GET): BlueMind answers 403, not 401, for refused Basic auth on /dav/ — verified live against the demo server, which answers 403 with an HTML body and no WWW-Authenticate even to an unauthenticated request. On the write verbs a 403 stays a plain refusal: there it legitimately means "this resource may not be written" (BlueMind refusing MKCALENDAR, a read-only collection), and classifying it as a credential failure would pause accounts whose password is fine.

See Also:
  • Constructor Details

    • CalDavAuthenticationException

      public CalDavAuthenticationException(String message)
      A credential refusal, named by the status and the URI it came from.
      Parameters:
      message - what was refused, in server-and-URL terms