*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.connection
Class CredentialsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sas.services.connection.ConnectionFactoryException
com.sas.services.connection.LoginException
com.sas.services.connection.CredentialsException
- All Implemented Interfaces:
com.sas.util.ChainedExceptionInterface,Serializable
- Direct Known Subclasses:
WrongCredentialsException
@SASScope("ALL")
@BinaryCompatibilityOnly
public abstract class CredentialsException
extends LoginException
Base class for exceptions thrown to indicate that something is
wrong with credentials presented during a connection request.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedCredentialsException(String msg) protectedCredentialsException(String msg, Throwable nestedException) protectedCredentialsException(String msg, Throwable nestedException, Credential badCredential) protectedCredentialsException(Throwable nestedException) -
Method Summary
Modifier and TypeMethodDescriptionStringGet the domain of the bad credential.StringGet the user name of the bad credential.booleantrueif the bad credential is an instance ofcom.sas.services.connection.PasswordCredential.Methods inherited from class com.sas.services.connection.LoginException
isLoginCallbackError, setLoginCallbackErrorMethods inherited from class com.sas.services.connection.ConnectionFactoryException
getRootException, getTargetExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
CredentialsException
protected CredentialsException() -
CredentialsException
protected CredentialsException(String msg) -
CredentialsException
protected CredentialsException(Throwable nestedException) -
CredentialsException
protected CredentialsException(String msg, Throwable nestedException) -
CredentialsException
-
-
Method Details
-
isPasswordCredential
public boolean isPasswordCredential()trueif the bad credential is an instance ofcom.sas.services.connection.PasswordCredential.- Returns:
trueif the bad credential is an instance ofcom.sas.services.connection.PasswordCredential.- See Also:
-
getUserName
public String getUserName()Get the user name of the bad credential. If the bad credential is not an instance ofcom.sas.services.connection.PasswordCredential, then this method will returnnull.- Returns:
- the user name of the bad credential
- See Also:
-
getDomain
public String getDomain()Get the domain of the bad credential.- Returns:
- the domain of the bad credential.
-