public static class Unauthenticated
extends java.lang.Object
Unauthenticated exception indicates that the method requires
authentication and the user is not authenticated.
API requests may include a security context containing user credentials. For example, the user credentials could be a SAML token, a user name and password, or the session identifier for a previously established session.
Examples:
Unauthorized exception would be used instead. For security reasons, the Error.getData() property in this exception is null, and the Error.getMessages() property in
this exception does not disclose which part of the security context is correct
or incorrect. For example the messages would not disclose whether a username or
a password is valid or invalid, but only that a combination of username and
password is invalid.