C# 클래스 Org.BouncyCastle.Bcpg.OpenPgp.PgpPublicKeyRing

Class to hold a single master public key and its subkeys.

Often PGP keyring files consist of multiple master keys, if you are trying to process or construct one of these you should use the PgpPublicKeyRingBundle class.

상속: PgpKeyRing, IPgpPublicKeyRing
파일 보기 프로젝트 열기: red-gate/iTextSharp-4.1.6 1 사용 예제들

공개 메소드들

메소드 설명
Encode ( Stream outStr ) : void
GetEncoded ( ) : byte[]
GetPublicKey ( ) : PgpPublicKey

Return the first public key in the ring.

GetPublicKey ( long keyId ) : PgpPublicKey

Return the public key referred to by the passed in key ID if it is present.

GetPublicKeys ( ) : IEnumerable

Allows enumeration of all the public keys.

InsertPublicKey ( PgpPublicKeyRing pubRing, PgpPublicKey pubKey ) : PgpPublicKeyRing

Returns a new key ring with the public key passed in either added or replacing an existing one.

PgpPublicKeyRing ( Stream inputStream ) : System
PgpPublicKeyRing ( byte encoding ) : System
RemovePublicKey ( PgpPublicKeyRing pubRing, PgpPublicKey pubKey ) : PgpPublicKeyRing

Returns a new key ring with the public key passed in removed from the key ring.

비공개 메소드들

메소드 설명
PgpPublicKeyRing ( ArrayList pubKeys ) : System

메소드 상세

Encode() 공개 메소드

public Encode ( Stream outStr ) : void
outStr Stream
리턴 void

GetEncoded() 공개 메소드

public GetEncoded ( ) : byte[]
리턴 byte[]

GetPublicKey() 공개 메소드

Return the first public key in the ring.
public GetPublicKey ( ) : PgpPublicKey
리턴 PgpPublicKey

GetPublicKey() 공개 메소드

Return the public key referred to by the passed in key ID if it is present.
public GetPublicKey ( long keyId ) : PgpPublicKey
keyId long
리턴 PgpPublicKey

GetPublicKeys() 공개 메소드

Allows enumeration of all the public keys.
public GetPublicKeys ( ) : IEnumerable
리턴 IEnumerable

InsertPublicKey() 공개 정적인 메소드

Returns a new key ring with the public key passed in either added or replacing an existing one.
public static InsertPublicKey ( PgpPublicKeyRing pubRing, PgpPublicKey pubKey ) : PgpPublicKeyRing
pubRing PgpPublicKeyRing The public key ring to be modified.
pubKey PgpPublicKey The public key to be inserted.
리턴 PgpPublicKeyRing

PgpPublicKeyRing() 공개 메소드

public PgpPublicKeyRing ( Stream inputStream ) : System
inputStream Stream
리턴 System

PgpPublicKeyRing() 공개 메소드

public PgpPublicKeyRing ( byte encoding ) : System
encoding byte
리턴 System

RemovePublicKey() 공개 정적인 메소드

Returns a new key ring with the public key passed in removed from the key ring.
public static RemovePublicKey ( PgpPublicKeyRing pubRing, PgpPublicKey pubKey ) : PgpPublicKeyRing
pubRing PgpPublicKeyRing The public key ring to be modified.
pubKey PgpPublicKey The public key to be removed.
리턴 PgpPublicKeyRing