Top Description Constructors Methods
org.glassfish.tyrus.client.auth

public Class AuthenticationException

extends HandshakeException
Class Inheritance
Annotations
@Beta
Imports
java.net.URI, jakarta.websocket.DeploymentException, .WebSocketContainer, org.glassfish.tyrus.client.ClientProperties, org.glassfish.tyrus.core.Beta, .HandshakeException, org.glassfish.tyrus.spi.UpgradeResponse

This exception is set as a cause of DeploymentException thrown when WebSocketContainer.connectToServer(...) fails because of any of the following:

getHttpStatusCode() returns always 401.

Author
Ondrej Kosatka
See Also
Authenticator#generateAuthorizationHeader(URI, String, Credentials), AuthConfig

Constructor Summary

AccessConstructor and Description
public
AuthenticationException(String
the detail message. The detail message is saved for later retrieval by the getMessage() method.
message
)

Constructor.

Method Summary

Inherited from org.glassfish.tyrus.core.HandshakeException:
getHttpStatusCode

Constructor Detail

AuthenticationExceptionback to summary
public AuthenticationException(String message)

Constructor.

Parameters
message:String

the detail message. The detail message is saved for later retrieval by the getMessage() method.