public final class ContingencyAesKey extends Object implements ManagedAesKey
| Modifier and Type | Field and Description |
|---|---|
static String |
KIND_CONTINGENCY |
| Constructor and Description |
|---|
ContingencyAesKey(String urn,
int assetKeySequenceNumber,
byte[] key) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canManage() |
MetaClientException |
getDecryptionError() |
MetaClientException |
getEncryptionError() |
List<Feature> |
getFeatures() |
String |
getHomeServer() |
Map<Integer,SecretKey> |
getKeys() |
String |
getKind() |
String |
getName() |
List<KnownUser> |
getParticipants() |
String |
getUrn() |
public static final String KIND_CONTINGENCY
public ContingencyAesKey(String urn, int assetKeySequenceNumber, byte[] key)
@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