C# 클래스 Keyczar.MutableKeySet

Mutable Keyset to allow modification and saving
상속: IKeySet, IDisposable
파일 보기 프로젝트 열기: jbtule/keyczar-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
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