C# Класс Keyczar.MutableKeySet

Mutable Keyset to allow modification and saving
Наследование: IKeySet, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddKey ( KeyStatus status, Key key ) : int

Adds the key.

AddKey ( KeyStatus status, int keySize, object options = null ) : int

Adds the key.

Demote ( int version ) : KeyStatus

Demotes the specified version.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ForceKeyDataChange ( ) : void

Forces the flag for the says the key data has change.

GetKeyData ( int version ) : byte[]

Gets the binary data that the key is stored in.

MutableKeySet ( IKeySet keySet ) : System

Initializes a new instance of the MutableKeySet class.

MutableKeySet ( KeyMetadata emptyKeySet ) : System

Initializes a new instance of the MutableKeySet class.

MutableKeySet ( string location ) : System

Initializes a new instance of the MutableKeySet class.

Promote ( int version ) : KeyStatus

Promotes the specified version.

PublicKey ( ) : MutableKeySet

Returns keyset with only the public keys.

Revoke ( int version ) : bool

Revokes the specified version.

Save ( IKeySetWriter writer ) : bool

Saves using the specified writer.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

MutableKeySet ( KeyMetadata metadata, Key>.IDictionary keys ) : System

Initializes a new instance of the MutableKeySet class.

Описание методов

AddKey() публичный Метод

Adds the key.
public AddKey ( KeyStatus status, Key key ) : int
status KeyStatus The status.
key Key The key.
Результат int

AddKey() публичный Метод

Adds the key.
public AddKey ( KeyStatus status, int keySize, object options = null ) : int
status KeyStatus The status.
keySize int Size of the key.
options object The options. dictionary or annoymous type of properties to set
Результат int

Demote() публичный Метод

Demotes the specified version.
public Demote ( int version ) : KeyStatus
version int The version.
Результат KeyStatus

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

ForceKeyDataChange() публичный Метод

Forces the flag for the says the key data has change.
public ForceKeyDataChange ( ) : void
Результат void

GetKeyData() публичный Метод

Gets the binary data that the key is stored in.
public GetKeyData ( int version ) : byte[]
version int The version.
Результат byte[]

MutableKeySet() публичный Метод

Initializes a new instance of the MutableKeySet class.
public MutableKeySet ( IKeySet keySet ) : System
keySet IKeySet The key set.
Результат System

MutableKeySet() публичный Метод

Initializes a new instance of the MutableKeySet class.
Only empty key sets can be created using just the KeyMetadata.
public MutableKeySet ( KeyMetadata emptyKeySet ) : System
emptyKeySet KeyMetadata The metadata of an empty key set.
Результат System

MutableKeySet() защищенный Метод

Initializes a new instance of the MutableKeySet class.
protected MutableKeySet ( KeyMetadata metadata, Key>.IDictionary keys ) : System
metadata KeyMetadata The metadata.
keys Key>.IDictionary The keys.
Результат System

MutableKeySet() публичный Метод

Initializes a new instance of the MutableKeySet class.
public MutableKeySet ( string location ) : System
location string The location.
Результат System

Promote() публичный Метод

Promotes the specified version.
public Promote ( int version ) : KeyStatus
version int The version.
Результат KeyStatus

PublicKey() публичный Метод

Returns keyset with only the public keys.
public PublicKey ( ) : MutableKeySet
Результат MutableKeySet

Revoke() публичный Метод

Revokes the specified version.
public Revoke ( int version ) : bool
version int The version.
Результат bool

Save() публичный Метод

Saves using the specified writer.
public Save ( IKeySetWriter writer ) : bool
writer IKeySetWriter The writer.
Результат bool