***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.connection
Class CredentialsException

com.sas.services.connection.CredentialsException
All Implemented Interfaces:
com.sas.util.ChainedExceptionInterface, java.io.Serializable
Direct Known Subclasses:
WrongCredentialsException

public abstract class CredentialsException

Base class for exceptions thrown to indicate that something is wrong with credentials presented during a connection request.

See Also:
Serialized Form

Constructor Summary
protected CredentialsException()
           
protected CredentialsException(java.lang.String msg)
           
protected CredentialsException(java.lang.String msg, java.lang.Throwable nestedException)
           
protected CredentialsException(java.lang.String msg, java.lang.Throwable nestedException, Credential badCredential)
           
protected CredentialsException(java.lang.Throwable nestedException)
           
 
Method Summary
 java.lang.String getDomain()
          Get the domain of the bad credential.
 java.lang.String getUserName()
          Get the user name of the bad credential.
 boolean isPasswordCredential()
          true if the bad credential is an instance of com.sas.services.connection.PasswordCredential.
 
Methods inherited from class com.sas.services.connection.LoginException
isLoginCallbackError, setLoginCallbackError
 
Methods inherited from class com.sas.services.connection.ConnectionFactoryException
getRootException, getTargetException
 

Constructor Detail

CredentialsException

protected CredentialsException()

CredentialsException

protected CredentialsException(java.lang.String msg)

CredentialsException

protected CredentialsException(java.lang.Throwable nestedException)

CredentialsException

protected CredentialsException(java.lang.String msg,
                               java.lang.Throwable nestedException)

CredentialsException

protected CredentialsException(java.lang.String msg,
                               java.lang.Throwable nestedException,
                               Credential badCredential)
Method Detail

isPasswordCredential

public boolean isPasswordCredential()
true if the bad credential is an instance of com.sas.services.connection.PasswordCredential.

Returns:
true if the bad credential is an instance of com.sas.services.connection.PasswordCredential.
See Also:
getUserName()

getUserName

public java.lang.String getUserName()
Get the user name of the bad credential. If the bad credential is not an instance of com.sas.services.connection.PasswordCredential, then this method will return null.

Returns:
the user name of the bad credential
See Also:
isPasswordCredential()

getDomain

public java.lang.String getDomain()
Get the domain of the bad credential.

Returns:
the domain of the bad credential.

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.