|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IIDEntry
Representation of an ID instance inside of an IIDStore
.
Method Summary | |
---|---|
ID |
createID()
Create an ID from this IDEntry. |
void |
delete()
Delete this IIDEntry from the IIDStore . |
IIDEntry[] |
getAssociates(java.lang.String key)
Get any IIDEntry s that have previously been associated with this IIDEntry via putAssociate(java.lang.String,IIDEntry,boolean) . |
org.eclipse.equinox.security.storage.ISecurePreferences |
getPreferences()
Get the underlying ISecurePreferences node that represents this IDEntry
in the storage. |
void |
putAssociate(java.lang.String key,
IIDEntry entry,
boolean encrypt)
Associate an IIDEntry instance with a String key in this IIDEntry. |
Method Detail |
---|
org.eclipse.equinox.security.storage.ISecurePreferences getPreferences()
ISecurePreferences
node that represents this IDEntry
in the storage.
ISecurePreferences
that represents this IIDEntry in the underlying storage. Will
not return null
.ID createID() throws IDCreateException
IIDEntry
. The created ID will be equivalent (via ID.equals(other)) to the ID previously
stored via IIDStore.store(ID)
.
ID
that corresponds to this previously stored IIDEntry
.
IDCreateException
- if the ID cannot be created in this environment...e.g. due to missing
Namespace
.IIDEntry[] getAssociates(java.lang.String key)
IIDEntry
s that have previously been associated with this IIDEntry via putAssociate(java.lang.String,IIDEntry,boolean)
.
key
- the String key for retrieving associates. Must not be null
.
putAssociate(java.lang.String,IIDEntry,boolean)
.
If no IIDEntries have been previously stored with the given key, an empty array will be returned. Will not return null
. Note
that the order of the returned IIDEntrys will not necessarily correspond to the order added via putAssociate(String, IIDEntry, boolean)
.void putAssociate(java.lang.String key, IIDEntry entry, boolean encrypt) throws IDStoreException
getAssociates(java.lang.String)
with the same key will include the new entry.
key
- the String key for storing associates. Must not be null
..entry
- the IIDEntry
to associated with this IIDEntry
. Must not be null
.encrypt
- if true
associate IIDEntry will be encrypted, false
and it will
not be encrypted.
IDStoreException
- thrown if the given IIDEntry
cannot be stored.void delete()
IIDStore
. This will not delete any associated IIDEntry
s. It is
up to the client to explicitly remove any such associated entries.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |