public final class NativeSingleAssetManager extends Object implements SingleAssetManager
| Constructor and Description |
|---|
NativeSingleAssetManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
allowAccess(Collection<String> emails) |
void |
allowAccess(String... emails) |
boolean |
canManage() |
void |
changeName(String name) |
void |
createKind(String kind,
String name) |
void |
createKind(String kind,
String name,
String cookie) |
protected void |
finalize() |
String |
getCookie() |
MetaClientException |
getDecryptionError() |
MetaClientException |
getEncryptionError() |
List<Feature> |
getFeatures() |
String |
getHomeServer() |
Map<Integer,SecretKey> |
getKeys() |
String |
getKind() |
String |
getName() |
List<KnownUser> |
getParticipants() |
String |
getUrn() |
void |
revokeAccess(Collection<String> emails) |
void |
revokeAccess(String... emails) |
void |
setAssetFeature(String name,
String compatibility)
Applies an asset feature with the given parameters to this asset.
|
void |
setAssetFeature(String name,
String compatibility,
String value)
Applies an asset feature with the given parameters to this asset.
|
void |
setAssetFeature(String name,
String compatibility,
String value,
String scope)
Applies an asset feature with the given parameters to this asset.
|
@Nonnull public String getCookie()
getCookie in interface SingleAssetManagerpublic void createKind(String kind, String name) throws MetaClientException
createKind in interface SingleAssetManagerMetaClientExceptionpublic void createKind(String kind, String name, @Nullable String cookie) throws MetaClientException
createKind in interface SingleAssetManagerMetaClientExceptionpublic void allowAccess(String... emails)
allowAccess in interface SingleAssetManagerpublic void revokeAccess(String... emails)
revokeAccess in interface SingleAssetManagerpublic void allowAccess(Collection<String> emails)
allowAccess in interface SingleAssetManagerpublic void revokeAccess(Collection<String> emails)
revokeAccess in interface SingleAssetManagerpublic void setAssetFeature(String name, String compatibility) throws MetaClientException
SingleAssetManagersetAssetFeature in interface SingleAssetManagercompatibility - One of SmartcryptProtocol::AssetFeature::COMPATIBILITY_MANDATORY,
SmartcryptProtocol::AssetFeature::COMPATIBILITY_READ_ONLY,
SmartcryptProtocol::AssetFeature::COMPATIBILITY_SUGGESTED,
and SmartcryptProtocol::AssetFeature::COMPATIBILITY_OPTIONALMetaClientExceptionpublic void setAssetFeature(String name, String compatibility, @Nullable String value) throws MetaClientException
SingleAssetManagersetAssetFeature in interface SingleAssetManagercompatibility - One of SmartcryptProtocol::AssetFeature::COMPATIBILITY_MANDATORY,
SmartcryptProtocol::AssetFeature::COMPATIBILITY_READ_ONLY,
SmartcryptProtocol::AssetFeature::COMPATIBILITY_SUGGESTED,
and SmartcryptProtocol::AssetFeature::COMPATIBILITY_OPTIONALMetaClientExceptionpublic void setAssetFeature(String name, String compatibility, @Nullable String value, @Nullable String scope) throws MetaClientException
SingleAssetManagersetAssetFeature in interface SingleAssetManagercompatibility - One of SmartcryptProtocol::AssetFeature::COMPATIBILITY_MANDATORY,
SmartcryptProtocol::AssetFeature::COMPATIBILITY_READ_ONLY,
SmartcryptProtocol::AssetFeature::COMPATIBILITY_SUGGESTED,
and SmartcryptProtocol::AssetFeature::COMPATIBILITY_OPTIONALMetaClientExceptionpublic void changeName(@Nullable String name) throws MetaClientException
changeName in interface SingleAssetManagerMetaClientException@Nonnull public String getName()
getName in interface ManagedAesKey@Nonnull public String getUrn()
getUrn in interface ManagedAesKey@Nonnull public String getKind()
getKind in interface ManagedAesKey@Nullable public String getHomeServer()
getHomeServer in interface ManagedAesKeypublic boolean canManage()
canManage in interface ManagedAesKeytrue, this user is allowed to modify this asset. If false, attempts at modification will result in errors.@Nullable public MetaClientException getEncryptionError()
getEncryptionError in interface ManagedAesKeynull, this user is allowed to use the asset for encryption, otherwise, encryption attempts
must produce this exception@Nullable public MetaClientException getDecryptionError()
getDecryptionError in interface ManagedAesKeynull, this user is allowed to use the asset for decryption, otherwise, decryption attempts
must produce this exception@Nonnull public Map<Integer,SecretKey> getKeys()
getKeys in interface ManagedAesKey@Nonnull public List<KnownUser> getParticipants()
getParticipants in interface ManagedAesKey@Nonnull public List<Feature> getFeatures()
getFeatures in interface ManagedAesKey