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
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)
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.
Copyright © 2009 SAS Institute Inc. All Rights Reserved.