|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.tc.tss.impl.ps.TcTssPersistentStorage
public abstract class TcTssPersistentStorage
Constructor Summary | |
---|---|
TcTssPersistentStorage(Properties properties)
|
Method Summary | |
---|---|
TcTssKmKeyinfo[] |
enumRegisteredKeys(TcTssUuid keyUuid)
Returns the whole key hierarchy of the given key i.e. |
TcTssKmKeyinfo |
getRegisteredKey(TcTssUuid keyUuid)
Returns information on a registered key. |
TcBlobData |
getRegisteredKeyBlob(TcTssUuid keyUuid)
Gets the key blob from the key described by this UUID |
TcBlobData |
getRegisteredKeyByPublicInfo(long algId,
TcBlobData pubKey)
TODO complete documentation Returns a key blob described by the given public key and its algorithm |
void |
registerKey(TcTssUuid parentUuid,
TcTssUuid keyUuid,
TcBlobData key)
Registers the key in persistent storage. |
void |
unregisterKey(TcTssUuid keyUuid)
Unregisters the key in persistent storage. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TcTssPersistentStorage(Properties properties)
Method Detail |
---|
public void registerKey(TcTssUuid parentUuid, TcTssUuid keyUuid, TcBlobData key) throws TcTssException
TcITssPersistentStorage
registerKey
in interface TcITssPersistentStorage
parentUuid
- the parent from the actual keykeyUuid
- the UUID assigned to the key (has to be unique!)key
- the key value
TcTssException
- if registration failedpublic void unregisterKey(TcTssUuid keyUuid) throws TcTssException
TcITssPersistentStorage
unregisterKey
in interface TcITssPersistentStorage
keyUuid
- the UUID assigned to this key
TcTssException
- if unregister key failedpublic TcBlobData getRegisteredKeyBlob(TcTssUuid keyUuid) throws TcTssException
TcITssPersistentStorage
getRegisteredKeyBlob
in interface TcITssPersistentStorage
keyUuid
- the UUID assigned to the desired key
TcTssException
- if getting key blob failedpublic TcBlobData getRegisteredKeyByPublicInfo(long algId, TcBlobData pubKey) throws TcTssException
TcITssPersistentStorage
getRegisteredKeyByPublicInfo
in interface TcITssPersistentStorage
algId
- the id describing the algorithm which belongs to the given keypubKey
- the given public key
TcTssException
public TcTssKmKeyinfo[] enumRegisteredKeys(TcTssUuid keyUuid) throws TcTssException
TcITssPersistentStorage
enumRegisteredKeys
in interface TcITssPersistentStorage
keyUuid
- the UUID of the desired key
TcTssException
- if the keys cannot be read out correctlypublic TcTssKmKeyinfo getRegisteredKey(TcTssUuid keyUuid) throws TcTssException
TcITssPersistentStorage
getRegisteredKey
in interface TcITssPersistentStorage
keyUuid
- is the key to get information on
false
upon return, because the
persistent storage has no way of knowing what the key manager is actually doing. No vendor specific data is
given.
TcTssException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |