@Beta
public class AuthenticationException
extends org.glassfish.tyrus.core.HandshakeException
DeploymentException thrown when WebSocketContainer.connectToServer(...)
fails because of any of the following:
Authenticator registered in AuthConfig.
AuthenticationException is thrown from Authenticator.generateAuthorizationHeader(URI, String,
Credentials)
method.
ClientProperties.AUTH_CONFIG is not instance of AuthConfig.
HandshakeException.getHttpStatusCode() returns always 401.
Authenticator.generateAuthorizationHeader(URI, String, Credentials),
AuthConfig,
Serialized Form| Constructor and Description |
|---|
AuthenticationException(String message)
Constructor.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AuthenticationException(String message)
message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage()
method.Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.