C# Class Keyczar.Keyczar

Base class for standard crypt/sign API
Inheritance: IDisposable
Mostrar archivo Open project: jbtule/keyczar-dotnet Class Usage Examples

Public Properties

Property Type Description
FormatVersion byte
HeaderLength int
KeyHashLength int

Protected Properties

Property Type Description
BufferSize int

Public Methods

Method Description
Dispose ( ) : void

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

GetAllKeys ( ) : IEnumerable

Gets all keys.

GetKey ( byte hash ) : IEnumerable

Gets the key using a hash.

GetPrimaryKey ( ) : Key

Gets the primary key.

Keyczar ( IKeySet keySet ) : System

Initializes a new instance of the Keyczar class.

Keyczar ( string keySetLocation ) : System

Initializes a new instance of the Keyczar class.

Private Methods

Method Description
HashKeys ( IList versions ) : Dictionary>
HashedFallbackKeys ( IList versions ) : List>.Dictionary

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

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.
return void

GetAllKeys() protected method

Gets all keys.
protected GetAllKeys ( ) : IEnumerable
return IEnumerable

GetKey() protected method

Gets the key using a hash.
protected GetKey ( byte hash ) : IEnumerable
hash byte The hash.
return IEnumerable

GetPrimaryKey() protected method

Gets the primary key.
protected GetPrimaryKey ( ) : Key
return Key

Keyczar() protected method

Initializes a new instance of the Keyczar class.
protected Keyczar ( IKeySet keySet ) : System
keySet IKeySet The key set.
return System

Keyczar() protected method

Initializes a new instance of the Keyczar class.
protected Keyczar ( string keySetLocation ) : System
keySetLocation string The key set location.
return System

Property Details

BufferSize protected_oe static_oe property

Buffer size used throughout
protected static int BufferSize
return int

FormatVersion public_oe static_oe property

Keyczar format version
public static byte FormatVersion
return byte

HeaderLength public_oe static_oe property

Full keyczar format header length
public static int HeaderLength
return int

KeyHashLength public_oe static_oe property

Key hash length
public static int KeyHashLength
return int