C# 클래스 Goedel.Mesh.PublicKey

파일 보기 프로젝트 열기: hallambaker/Mathematical-Mesh 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_KeyPair Goedel.Cryptography.KeyPair

공개 메소드들

메소드 설명
DeserializeToken ( JSONReader JSONReader, string Tag ) : void

Having read a tag, process the corresponding value data.

ExportPrivateParameters ( ) : void

Create a Private Parameters property that contains the private parameters of the key.

From ( byte _Data ) : PublicKey

Create a new instance from untagged byte input. i.e. {... data ... }

From ( string _Input ) : PublicKey

Create a new instance from untagged string input. i.e. {... data ... }

FromTagged ( JSONReader JSONReader ) : PublicKey

Deserialize a tagged stream

FromTagged ( byte _Data ) : PublicKey

Create a new instance from tagged byte input. i.e. { "PublicKey" : {... data ... } }

FromTagged ( string _Input ) : PublicKey

Create a new instance from tagged string input. i.e. { "PublicKey" : {... data ... } }

Generate ( KeyType KeyType, CryptoAlgorithmID CryptoAlgorithmID ) : PublicKey

Generate a new key pair and return a PublicKey object for the public parameters.

GetKeySecurity ( KeyType KeyType ) : KeySecurity

Return the initial key security level for a key type

ImportPrivateParameters ( ) : void

Create a provider object that includes the private key parameters and add this to the certificate.

PublicKey ( ) : System

Default Constructor

PublicKey ( JSONReader JSONReader ) : System

Initialize class from JSONReader stream.

PublicKey ( string _String ) : System

Initialize class from a JSON encoded class.

SelfSignCertificate ( Application PKIXUse ) : void

Create a self signed root certificate

Serialize ( Writer Writer, bool wrap, bool &first ) : void

Serialize this object to the specified output stream.

SerializeX ( Writer _Writer, bool _wrap, bool &_first ) : void

Serialize this object to the specified output stream. Unlike the Serlialize() method, this method is not inherited from the parent class allowing a specific version of the method to be called.

SignCertificate ( Application PKIXUse, PublicKey Signer ) : void

Create an application or intermediary certificate

SignCertificate ( Application PKIXUse, string SubjectAltName, PublicKey Signer ) : void

Create an application certificate with the specified SubjectAltName.

Tag ( ) : string

Tag identifying this class.

Verify ( ) : bool

Unpack that the public key parameters match the UDF fingerprint.

Verify ( string TestUDF ) : bool

Verify the keypair parameters match the fingerprint.

비공개 메소드들

메소드 설명
GetKeyPair ( ) : KeyPair

메소드 상세

DeserializeToken() 공개 메소드

Having read a tag, process the corresponding value data.
public DeserializeToken ( JSONReader JSONReader, string Tag ) : void
JSONReader JSONReader The input stream
Tag string The tag
리턴 void

ExportPrivateParameters() 공개 메소드

Create a Private Parameters property that contains the private parameters of the key.
public ExportPrivateParameters ( ) : void
리턴 void

From() 공개 정적인 메소드

Create a new instance from untagged byte input. i.e. {... data ... }
public static From ( byte _Data ) : PublicKey
_Data byte The input data.
리턴 PublicKey

From() 공개 정적인 메소드

Create a new instance from untagged string input. i.e. {... data ... }
public static From ( string _Input ) : PublicKey
_Input string The input data.
리턴 PublicKey

FromTagged() 공개 정적인 메소드

Deserialize a tagged stream
public static FromTagged ( JSONReader JSONReader ) : PublicKey
JSONReader JSONReader The input stream
리턴 PublicKey

FromTagged() 공개 정적인 메소드

Create a new instance from tagged byte input. i.e. { "PublicKey" : {... data ... } }
public static FromTagged ( byte _Data ) : PublicKey
_Data byte The input data.
리턴 PublicKey

FromTagged() 공개 정적인 메소드

Create a new instance from tagged string input. i.e. { "PublicKey" : {... data ... } }
public static FromTagged ( string _Input ) : PublicKey
_Input string The input data.
리턴 PublicKey

Generate() 공개 정적인 메소드

Generate a new key pair and return a PublicKey object for the public parameters.
public static Generate ( KeyType KeyType, CryptoAlgorithmID CryptoAlgorithmID ) : PublicKey
KeyType KeyType The mest key type.
CryptoAlgorithmID CryptoAlgorithmID The algorithm to generate keys for.
리턴 PublicKey

GetKeySecurity() 공개 정적인 메소드

Return the initial key security level for a key type
public static GetKeySecurity ( KeyType KeyType ) : KeySecurity
KeyType KeyType Type of key
리턴 KeySecurity

ImportPrivateParameters() 공개 메소드

Create a provider object that includes the private key parameters and add this to the certificate.
public ImportPrivateParameters ( ) : void
리턴 void

PublicKey() 공개 메소드

Default Constructor
public PublicKey ( ) : System
리턴 System

PublicKey() 공개 메소드

Initialize class from JSONReader stream.
public PublicKey ( JSONReader JSONReader ) : System
JSONReader JSONReader Input stream
리턴 System

PublicKey() 공개 메소드

Initialize class from a JSON encoded class.
public PublicKey ( string _String ) : System
_String string Input string
리턴 System

SelfSignCertificate() 공개 메소드

Create a self signed root certificate
public SelfSignCertificate ( Application PKIXUse ) : void
PKIXUse Application Bit mask specifying certificate uses.
리턴 void

Serialize() 공개 메소드

Serialize this object to the specified output stream.
public Serialize ( Writer Writer, bool wrap, bool &first ) : void
Writer Writer Output stream
wrap bool If true, output is wrapped with object /// start and end sequences '{ ... }'.
first bool If true, item is the first entry in a list.
리턴 void

SerializeX() 공개 메소드

Serialize this object to the specified output stream. Unlike the Serlialize() method, this method is not inherited from the parent class allowing a specific version of the method to be called.
public SerializeX ( Writer _Writer, bool _wrap, bool &_first ) : void
_Writer Writer Output stream
_wrap bool If true, output is wrapped with object /// start and end sequences '{ ... }'.
_first bool If true, item is the first entry in a list.
리턴 void

SignCertificate() 공개 메소드

Create an application or intermediary certificate
public SignCertificate ( Application PKIXUse, PublicKey Signer ) : void
PKIXUse Application Bit mask specifying certificate uses.
Signer PublicKey The signing key (which must have an attached certificate).
리턴 void

SignCertificate() 공개 메소드

Create an application certificate with the specified SubjectAltName.
public SignCertificate ( Application PKIXUse, string SubjectAltName, PublicKey Signer ) : void
PKIXUse Application Bit mask specifying certificate uses.
SubjectAltName string The subjectAltName. Must be a DNS domain name /// or a RFC822 email address.
Signer PublicKey The signing key (which must have an attached certificate).
리턴 void

Tag() 공개 메소드

Tag identifying this class.
public Tag ( ) : string
리턴 string

Verify() 공개 메소드

Unpack that the public key parameters match the UDF fingerprint.
public Verify ( ) : bool
리턴 bool

Verify() 공개 메소드

Verify the keypair parameters match the fingerprint.
public Verify ( string TestUDF ) : bool
TestUDF string The fingerprint value.
리턴 bool

프로퍼티 상세

_KeyPair 보호되어 있는 프로퍼티

The cryptolib representation of the Key Pair. This is the point of access for all cryptolib operations.
protected KeyPair,Goedel.Cryptography _KeyPair
리턴 Goedel.Cryptography.KeyPair