|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.connection.PasswordCredential
public class PasswordCredential
Login credentials for an IOM server.
| Constructor Summary | |
|---|---|
protected |
PasswordCredential(java.lang.String domain)
Constructor used by the newInstance() methods and subclasses. |
|
PasswordCredential(java.lang.String userName,
java.lang.String password)
Construct login credentials. |
|
PasswordCredential(java.lang.String userName,
java.lang.String password,
java.lang.String domain)
Construct login credentials. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object that)
|
java.lang.String |
getPassword()
Get the password. |
char[] |
getPasswordAsChars()
Get the password as a character array. |
com.sas.net.crypto.SealedString |
getPasswordAsSealedString()
Get the password as a SealedString object. |
java.lang.String |
getUserName()
Get the user name. |
int |
hashCode()
|
static PasswordCredential |
newInstance(java.lang.String userName,
char[] passwordAsChars,
java.lang.String domain)
Create a new instance of this class using a character array for the password. |
static PasswordCredential |
newInstance(java.lang.String userName,
com.sas.net.crypto.SealedString passwordAsSealedString,
java.lang.String domain)
Create a new instance of this class using a SealedString for
the password. |
void |
setPassword(java.lang.String password)
Set the password. |
void |
setPasswordAsChars(char[] passwordAsChars)
Set the password as a character array. |
void |
setPasswordAsSealedString(com.sas.net.crypto.SealedString passwordAsSealedString)
Set the password as a SealedString object. |
void |
setUserName(java.lang.String userName)
Set the user name. |
java.lang.String |
toString()
|
| Methods inherited from class com.sas.services.connection.Credential |
|---|
clone, getDomain, getLocale, setDomain, setLocale |
| Constructor Detail |
|---|
public PasswordCredential(java.lang.String userName,
java.lang.String password,
java.lang.String domain)
newInstance() methods instead for improved security.
userName - the user namepassword - the passworddomain - the authentication domain. The authentication domain
indicates the context in which this user name and password are valid.
Servers that require user name and password also have domains, and
this domain must match the server's domain if this login is valid on
the server. null and empty ("") domains are equivalent.
public PasswordCredential(java.lang.String userName,
java.lang.String password)
newInstance() methods instead for improved security.
userName - the user namepassword - the passwordprotected PasswordCredential(java.lang.String domain)
newInstance() methods and subclasses. Callers MUST
call or override setUserName() and one of setPassword(),
setPasswordAsSealedString(), or setPasswordAsChars()
immediately after calling this constructor. Otherwise, the object will be
in a bad state.
domain - the authentication domain| Method Detail |
|---|
public static PasswordCredential newInstance(java.lang.String userName,
com.sas.net.crypto.SealedString passwordAsSealedString,
java.lang.String domain)
SealedString for
the password. The password must be encapsulated in
a SealedString object for improved security.
userName - the user namepasswordAsSealedString - the passworddomain - the authentication domain. Can be null.
public static PasswordCredential newInstance(java.lang.String userName,
char[] passwordAsChars,
java.lang.String domain)
SealedString object.
userName - the user namepasswordAsChars - the passworddomain - the authentication domain. Can be null.
public void setUserName(java.lang.String userName)
userName - the user namepublic java.lang.String getUserName()
public void setPassword(java.lang.String password)
setPasswordAsSealedString(),
or setPasswordAsChars() for improved security.
password - the passwordpublic void setPasswordAsSealedString(com.sas.net.crypto.SealedString passwordAsSealedString)
SealedString object. The password
must be encapsulated in a SealedString object for improved security.
passwordAsSealedString - the passwordpublic void setPasswordAsChars(char[] passwordAsChars)
SealedString object.
passwordAsChars - the passwordpublic java.lang.String getPassword()
getPasswordAsSealedString(),
or getPasswordAsChars() for improved security.
public com.sas.net.crypto.SealedString getPasswordAsSealedString()
SealedString object. The password
will be encapsulated in a SealedString object for improved security.
public char[] getPasswordAsChars()
public boolean equals(java.lang.Object that)
equals in class Credentialpublic int hashCode()
hashCode in class Credentialpublic java.lang.String toString()
toString in class java.lang.Object
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||