Interface MorpheusSynchronousCypherService
public interface MorpheusSynchronousCypherService
-
Method Summary
Modifier and TypeMethodDescriptiondelete(CypherAccess cypherAccess, String key) Delete a cypher keyread(CypherAccess cypherAccess, String key) Read the value for a keyreadEncyptionKey(CypherAccess cypherAccess, String key) Read an encryption key valuereadPassword(CypherAccess cypherAccess, String key) Read a password valuereadUuid(CypherAccess cypherAccess, String key) Read a uuid valuewrite(CypherAccess cypherAccess, String key, String value, Long leaseTimeout) Write the value for a key
-
Method Details
-
read
Read the value for a key- Parameters:
cypherAccess- CypherAccesskey- Key to read. Relative path starting with 'secret/', 'key/', or 'password/'- Returns:
- The value for the key
-
write
Write the value for a key- Parameters:
cypherAccess- CypherAccesskey- Key to write. Relative path starting with 'secret/', 'key/', or 'password/'value- the unencrypted value we wish to write to the cypherleaseTimeout- the user specified leaseTimeout in milliseconds for when this key will expire. Only used if if CypherAccess does not container a leaseObjectRef- Returns:
- The value written
-
delete
Delete a cypher key- Parameters:
cypherAccess- CypherAccesskey- Key to delete. Relative path starting with 'secret/', 'key/', or 'password/'- Returns:
- True if the key and value where deleted
-
readUuid
Read a uuid value- Parameters:
cypherAccess- CypherAccesskey- Key to read. If the key is not found, a new UUID will be generated, saved, and returned.- Returns:
- The value for the key
-
readEncyptionKey
Read an encryption key value- Parameters:
cypherAccess- CypherAccesskey- Key to read.- Returns:
- The value for the key
-
readPassword
Read a password value- Parameters:
cypherAccess- CypherAccesskey- Key to read- Returns:
- The value for the key
-