Show / Hide Table of Contents

Class ErrorSmartkey

Indicates that an error occurred while loading a Smartkey. Used in an observable stream to avoid breaking the stream. Developers should already be coding to handle scenarios such as no decryption key, not being allowed to encrypt, etc.

The Cause can be used to further investigate the error.

Inheritance
Object
ErrorSmartkey
Implements
ISmartkey
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: PKWARE.Smartcrypt.KeyManagement.Smartkeys
Assembly: SmartcryptKeyManagement.dll
Syntax
public sealed class ErrorSmartkey : ISmartkey

Constructors

ErrorSmartkey(MetaClientException)

Declaration
public ErrorSmartkey([NotNull] MetaClientException cause)
Parameters
Type Name Description
MetaClientException cause

Fields

Cause

The exception that caused this error.

Declaration
[PublicAPI]
[NotNull]
public readonly MetaClientException Cause
Field Value
Type Description
MetaClientException

Properties

CanDecrypt

Declaration
public bool CanDecrypt { get; }
Property Value
Type Description
Boolean

CanEncrypt

Declaration
public bool CanEncrypt { get; }
Property Value
Type Description
Boolean

CanManage

Declaration
public bool CanManage { get; }
Property Value
Type Description
Boolean

Features

Declaration
public IReadOnlyList<Feature> Features { get; }
Property Value
Type Description
IReadOnlyList<Feature>

Key

Declaration
public byte[] Key { get; }
Property Value
Type Description
Byte[]

Name

Declaration
public string Name { get; }
Property Value
Type Description
String

Participants

Declaration
public IReadOnlyList<KnownUser> Participants { get; }
Property Value
Type Description
IReadOnlyList<KnownUser>

Revision

Declaration
public int Revision { get; }
Property Value
Type Description
Int32

Urn

Declaration
public string Urn { get; }
Property Value
Type Description
String

Methods

GetKeyForDecryption(Int32)

Declaration
public byte[] GetKeyForDecryption(int revision)
Parameters
Type Name Description
Int32 revision
Returns
Type Description
Byte[]

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Implements

ISmartkey
Back to top Copyright © 2018 PKWARE, Inc.