@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(java.lang.String message)
Constructor.
|
Copyright © 2012–2025 Oracle Corporation. All rights reserved.