C# 클래스 Keyczar.Util.Utility

Utility methods
파일 보기 프로젝트 열기: jbtule/keyczar-dotnet

공개 메소드들

메소드 설명
CopyProperties ( object>.IDictionary source, object destination ) : void

Copies string/object dictionary to the destnation objects properties.

CopyProperties ( object source, object destination ) : void

Copies the properties from one object to the next

GetBytes ( System.Numerics.BigInteger data ) : byte[]

Gets the bytes for a long laid out big endian

GetBytes ( int data ) : byte[]

Gets the bytes for an int laid out big endian

GetBytes ( long data ) : byte[]

Gets the bytes for a long laid out big endian

HashKey ( int size ) : byte[]

Hashes the key for keyczar version look ups.

HashKeyLengthPrefix ( int size ) : byte[]

Hashes each component of the key hash with it's length first.

ReadHeader ( Stream data, byte &keyHash ) : byte[]

Reads the keyczar header.

ReadHeader ( byte data, byte &keyHash ) : byte[]

Reads the keyczar header.

ResetStreamWhenFinished ( Stream stream ) : NondestructiveStreamReset

Resets the stream poisition when Closed or Disposed.

StripLeadingZeros ( byte data ) : byte[]

Strips the leading zeros from a byte array.

ToBigInteger ( byte data ) : System.Numerics.BigInteger

To the BigInteger from big endian bytes.

ToBouncyBigInteger ( this value ) : Org.BouncyCastle.Math.BigInteger

To the bouncy castle big integer.

ToBson ( this value ) : byte[]

Bson Serializes the object.

ToInt32 ( byte data ) : int

To the int32 from big endian bytes.

ToInt64 ( byte data ) : long

To the int64 from big endian bytes.

ToJson ( this value ) : string

Json Serializes the object.

ToSystemBigInteger ( this value ) : System.Numerics.BigInteger

To the system standard big integer.

메소드 상세

CopyProperties() 공개 정적인 메소드

Copies string/object dictionary to the destnation objects properties.
public static CopyProperties ( object>.IDictionary source, object destination ) : void
source object>.IDictionary The source.
destination object The dest.
리턴 void

CopyProperties() 공개 정적인 메소드

Copies the properties from one object to the next
public static CopyProperties ( object source, object destination ) : void
source object The source.
destination object The dest.
리턴 void

GetBytes() 공개 정적인 메소드

Gets the bytes for a long laid out big endian
public static GetBytes ( System.Numerics.BigInteger data ) : byte[]
data System.Numerics.BigInteger The data.
리턴 byte[]

GetBytes() 공개 정적인 메소드

Gets the bytes for an int laid out big endian
public static GetBytes ( int data ) : byte[]
data int The data.
리턴 byte[]

GetBytes() 공개 정적인 메소드

Gets the bytes for a long laid out big endian
public static GetBytes ( long data ) : byte[]
data long The data.
리턴 byte[]

HashKey() 공개 정적인 메소드

Hashes the key for keyczar version look ups.
public static HashKey ( int size ) : byte[]
size int The size.
리턴 byte[]

HashKeyLengthPrefix() 공개 정적인 메소드

Hashes each component of the key hash with it's length first.
public static HashKeyLengthPrefix ( int size ) : byte[]
size int The size.
리턴 byte[]

ReadHeader() 공개 정적인 메소드

Reads the keyczar header.
public static ReadHeader ( Stream data, byte &keyHash ) : byte[]
data Stream The data.
keyHash byte The key hash.
리턴 byte[]

ReadHeader() 공개 정적인 메소드

Reads the keyczar header.
public static ReadHeader ( byte data, byte &keyHash ) : byte[]
data byte The data.
keyHash byte The key hash.
리턴 byte[]

ResetStreamWhenFinished() 공개 정적인 메소드

Resets the stream poisition when Closed or Disposed.
public static ResetStreamWhenFinished ( Stream stream ) : NondestructiveStreamReset
stream Stream The stream.
리턴 NondestructiveStreamReset

StripLeadingZeros() 공개 정적인 메소드

Strips the leading zeros from a byte array.
public static StripLeadingZeros ( byte data ) : byte[]
data byte The data.
리턴 byte[]

ToBigInteger() 공개 정적인 메소드

To the BigInteger from big endian bytes.
public static ToBigInteger ( byte data ) : System.Numerics.BigInteger
data byte The data.
리턴 System.Numerics.BigInteger

ToBouncyBigInteger() 공개 정적인 메소드

To the bouncy castle big integer.
public static ToBouncyBigInteger ( this value ) : Org.BouncyCastle.Math.BigInteger
value this The value.
리턴 Org.BouncyCastle.Math.BigInteger

ToBson() 공개 정적인 메소드

Bson Serializes the object.
public static ToBson ( this value ) : byte[]
value this The obj.
리턴 byte[]

ToInt32() 공개 정적인 메소드

To the int32 from big endian bytes.
public static ToInt32 ( byte data ) : int
data byte The data.
리턴 int

ToInt64() 공개 정적인 메소드

To the int64 from big endian bytes.
public static ToInt64 ( byte data ) : long
data byte The data.
리턴 long

ToJson() 공개 정적인 메소드

Json Serializes the object.
public static ToJson ( this value ) : string
value this The obj.
리턴 string

ToSystemBigInteger() 공개 정적인 메소드

To the system standard big integer.
public static ToSystemBigInteger ( this value ) : System.Numerics.BigInteger
value this The value.
리턴 System.Numerics.BigInteger