@Beta public class AuthenticationException extends 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 FormConstructor and Description |
---|
AuthenticationException(String message)
Constructor.
|
getHttpStatusCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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.