public static interface Keychain.Item
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes this item.
|
ByteBuffer |
getAttribute(Keychain.AttributeClass id)
Returns the value of the attribute with the given class.
|
Map<Keychain.AttributeClass,ByteBuffer> |
getAttributeMap()
Returns all attributes of this item in a map.
|
Keychain.ItemClass |
getItemClass()
Returns the class of this item.
|
ByteBuffer |
getSecret()
Returns the secret data of this item.
|
void |
putAttributeMap(Map<Keychain.AttributeClass,ByteBuffer> attributes)
Puts the given attributes into this item.
|
void |
setAttribute(Keychain.AttributeClass id,
ByteBuffer value)
Sets the value of the attribute with the given class.
|
void |
setSecret(ByteBuffer secret)
Sets the secret data of this item.
|
void delete()
throws KeychainException
KeychainException@Nullable ByteBuffer getAttribute(Keychain.AttributeClass id) throws KeychainException
KeychainExceptionMap<Keychain.AttributeClass,ByteBuffer> getAttributeMap() throws KeychainException
KeychainExceptionKeychain.ItemClass getItemClass() throws KeychainException
KeychainExceptionByteBuffer getSecret() throws KeychainException
KeychainExceptionvoid putAttributeMap(Map<Keychain.AttributeClass,ByteBuffer> attributes) throws KeychainException
attributes - the map of attributes to put into this item.KeychainExceptionvoid setAttribute(Keychain.AttributeClass id, @Nullable ByteBuffer value) throws KeychainException
KeychainExceptionvoid setSecret(ByteBuffer secret) throws KeychainException
secret - the secret data to set.KeychainExceptionCopyright © 2012–2015 Schlichtherle IT Services. All rights reserved.