|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.nds.dirxml.shimhost.Password
com.novell.nds.dirxml.shimhost.NamedPasswords.NamedPassword
public class NamedPasswords.NamedPassword
Class encapsulating a named password. Contains the key (name), description, and actual password data.
Field Summary |
---|
Fields inherited from class com.novell.nds.dirxml.shimhost.Password |
---|
modified, TAG_PASSWORD, ZERO_CHAR |
Method Summary | |
---|---|
String |
getDescription()
Get the description of this password |
String |
getKey()
Get the key (name) of this password |
char[] |
getPasswordValue()
Return the password characters. |
boolean |
isPasswordEmpty()
|
void |
setDescription(String newDesc)
Set the description for this password |
void |
setPasswordValue(char[] pwdChars)
Set the password characters. |
Element |
toXML(Node parent)
Construct an XML representation of this instance. |
Methods inherited from class com.novell.nds.dirxml.shimhost.Password |
---|
clear, clearPassword, finalize, getPassword, getPassword, getTagName, hasBeenModified, isEmpty, isEmpty, isEncrypted, resetModified, setEncrypted, setPassword, setPassword, setPassword, setTagName, setUnencrypted |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public char[] getPasswordValue() throws CipherException, IllegalStateException
NamedPasswords
instance has a config password set (setConfigPassword()
) then
this will return the clear-text password even if the password value is
encrypted.
CipherException
- if an error occurs decrypting password
IllegalStateException
- if the password is encrypted and no
config password has been set.public boolean isPasswordEmpty() throws CipherException, IllegalStateException
CipherException
IllegalStateException
public void setPasswordValue(char[] pwdChars) throws CipherException
NamedPasswords
instance has a config password set (setConfigPassword()
) then
this set an encrypted password.
pwdChars
- password characters
CipherException
- if an error occurs encrypted the password characterspublic Element toXML(Node parent)
resetModified()
.
toXML
in interface ConfigElement
toXML
in class Password
parent
- Node
under which to build representation
Element
Password.hasBeenModified()
,
Password.resetModified()
public String getKey()
public String getDescription()
public void setDescription(String newDesc)
newDesc
- description
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |