public interface Smartkeys
Modifier and Type | Method and Description |
---|---|
Observable<Smartkey> |
create(SmartkeySpec spec) |
Observable<Smartkey> |
deserialize(String serialized) |
Observable<Set<Smartkey>> |
listAll() |
void |
requestAccess(String serialized) |
String |
serialize(Smartkey smartkey) |
Observable<Smartkey> |
update(Smartkey smartkey,
SmartkeySpec spec)
It is not possible to change whether or not a key is rotatable or its kind.
|
@Nonnull Observable<Set<Smartkey>> listAll()
@Nonnull Observable<Smartkey> deserialize(String serialized) throws MetaClientException, IllegalArgumentException
IllegalArgumentException
- If the serialized content cannot be parsedMetaClientException
- For various reasons, including network errors. It may be worth retrying.@Nonnull String serialize(Smartkey smartkey) throws MetaClientException
MetaClientException
- If the provided key cannot be serialized. This may happen if given
an invalid key.void requestAccess(String serialized) throws MetaClientException
MetaClientException
- With MetaClientException.category
of MetaClientException.CATEGORY_UPGRADE
if the serialized content cannot be parsed. May also happen as a results of network
problems and other reasons.@Nonnull Observable<Smartkey> create(SmartkeySpec spec) throws MetaClientException
MetaClientException
- If the Smartkey cannot be created@Nonnull Observable<Smartkey> update(Smartkey smartkey, SmartkeySpec spec) throws MetaClientException
MetaClientException