Package org.exoplatform.caldav.client
Class CalDavAuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.exoplatform.caldav.client.CalDavException
org.exoplatform.caldav.client.CalDavAuthenticationException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionCalDavAuthenticationException(String message) A credential refusal, named by the status and the URI it came from. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CalDavAuthenticationException
A credential refusal, named by the status and the URI it came from.- Parameters:
message- what was refused, in server-and-URL terms
-