Package com.atlassian.crowd.exception
Class InvalidAuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.atlassian.crowd.exception.CrowdException
com.atlassian.crowd.exception.InvalidAuthenticationException
- All Implemented Interfaces:
Serializable
Thrown when the attempted authentication is not valid.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newInvalidAuthenticationException
with the specified detail message.InvalidAuthenticationException
(String username, Directory directory, Throwable cause) InvalidAuthenticationException
(String msg, Throwable cause) Constructs a newInvalidAuthenticationException
with the specified detail message and cause.Constructs a newInvalidAuthenticationException
with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionnewInstanceWithName
(String name) Creates a new instance of anInvalidAuthenticationException
with a default detail message using the name of the entity that failed to authenticate.newInstanceWithName
(String name, Throwable cause) Creates a new instance of anInvalidAuthenticationException
with a default detail message using the name of the entity that failed to authenticate, and a cause.newInstanceWithNameAndDescriptionFromCause
(String name, Throwable cause) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidAuthenticationException
- Since:
- 4.4.0
-
InvalidAuthenticationException
Constructs a newInvalidAuthenticationException
with the specified detail message.- Parameters:
msg
- detail message
-
InvalidAuthenticationException
Constructs a newInvalidAuthenticationException
with the specified detail message and cause.- Parameters:
msg
- detail messagecause
- the cause
-
InvalidAuthenticationException
Constructs a newInvalidAuthenticationException
with the specified cause.- Parameters:
cause
- the cause
-
-
Method Details
-
newInstanceWithName
Creates a new instance of anInvalidAuthenticationException
with a default detail message using the name of the entity that failed to authenticate.- Parameters:
name
- name of entity- Returns:
- new instance of
InvalidAuthenticationException
-
newInstanceWithName
Creates a new instance of anInvalidAuthenticationException
with a default detail message using the name of the entity that failed to authenticate, and a cause.- Parameters:
name
- name of entitycause
- the cause- Returns:
- new instance of
InvalidAuthenticationException
-
newInstanceWithNameAndDescriptionFromCause
public static InvalidAuthenticationException newInstanceWithNameAndDescriptionFromCause(String name, Throwable cause) -
getUsername
- Since:
- 4.4.0
-
getDirectory
- Since:
- 4.4.0
-