Class AuthenticationException
- java.lang.Object
 - 
- java.lang.Throwable
 - 
- java.lang.Exception
 - 
- java.lang.RuntimeException
 - 
- org.infinispan.rest.RestResponseException
 - 
- org.infinispan.rest.authentication.AuthenticationException
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 Serializable
public class AuthenticationException extends RestResponseException
Exception thrown then authentication fails.- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AuthenticationException(Optional<String> authenticationHeader)Creates newAuthenticationException. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InfinispanResponsetoResponse(InfinispanRequest request)Creates Netty response based on error.- 
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
AuthenticationException
public AuthenticationException(Optional<String> authenticationHeader)
Creates newAuthenticationException.- Parameters:
 authenticationHeader- Authentication header which will be sent to the client.
 
 - 
 
- 
Method Detail
- 
toResponse
public InfinispanResponse toResponse(InfinispanRequest request)
Description copied from class:RestResponseExceptionCreates Netty response based on error.- Overrides:
 toResponsein classRestResponseException- Returns:
 - Netty response.
 
 
 - 
 
 -