|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.Keychain
A class that encapsulates an SSO keychain. This will contain a list of PrivateKey objects. An instance of this class may be found on both a WSUser object and the UserInfo object.
Field Summary | |
static java.lang.String |
code_id
|
static java.lang.String |
ELEMENT
|
Constructor Summary | |
Keychain()
|
|
Keychain(org.w3c.dom.Element e)
|
Method Summary | |
void |
addPrivateKey(int index,
PrivateKey info)
Add information about a private key. |
void |
addPrivateKey(PrivateKey info)
Add a private key to the end of the keychain. |
void |
clearPrivateKeys()
Remove all the private key objects from the user. |
PrivateKey |
getPrivateKey(int index)
Return a key by number. |
PrivateKey |
getPrivateKey(java.lang.String url)
Return the a private key associated with this url. |
PrivateKey[] |
getPrivateKeys()
Return the array of PrivateKey objects. |
void |
movePrivateKey(int oldIndex,
int newIndex)
Moves and existing Private Key from the old index to the new index in the ordered list of keys |
void |
parseXml(org.w3c.dom.Element e)
|
void |
removePrivateKey(int index)
Remove the information for one private key at the specified index |
void |
removePrivateKey(PrivateKey key)
Remove the information for one private key. |
void |
setPrivateKeys(java.util.List keys)
Replace all the keys. |
void |
setPrivateKeys(PrivateKey[] keys)
Replace all the keys. |
void |
toXml(java.lang.StringBuffer b,
int indent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String ELEMENT
Constructor Detail |
public Keychain()
public Keychain(org.w3c.dom.Element e) throws WavesetException
Method Detail |
public PrivateKey[] getPrivateKeys()
public void setPrivateKeys(PrivateKey[] keys)
public void setPrivateKeys(java.util.List keys)
public PrivateKey getPrivateKey(int index)
public PrivateKey getPrivateKey(java.lang.String url) throws WavesetException
jsl - I took out partial matching, need more thought here...
WavesetException
public void addPrivateKey(int index, PrivateKey info) throws WavesetException
Index values start at 0 and go to 'n'. Index may be equal to current length to append to the end.
WavesetException
public void addPrivateKey(PrivateKey info) throws WavesetException
WavesetException
public void movePrivateKey(int oldIndex, int newIndex) throws WavesetException
Index values start at 0 and go to 'n'.
WavesetException
public void removePrivateKey(int index)
public void removePrivateKey(PrivateKey key)
public void clearPrivateKeys()
public void parseXml(org.w3c.dom.Element e) throws WavesetException
WavesetException
public void toXml(java.lang.StringBuffer b, int indent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |