C# 클래스 Org.BouncyCastle.X509.X509V1CertificateGenerator

Class to Generate X509V1 Certificates.
파일 보기 프로젝트 열기: JamieMellway/iTextSharpLGPL-Monotouch 1 사용 예제들

공개 메소드들

메소드 설명
Generate ( AsymmetricKeyParameter privateKey ) : X509Certificate

Generate a new X509Certificate.

Generate ( AsymmetricKeyParameter privateKey, SecureRandom random ) : X509Certificate

Generate a new X509Certificate specifying a SecureRandom instance that you would like to use.

Reset ( ) : void

Reset the generator.

SetIssuerDN ( Org.BouncyCastle.Asn1.X509.X509Name issuer ) : void

Set the issuer distinguished name. The issuer is the entity whose private key is used to sign the certificate.

SetNotAfter ( System.DateTime date ) : void

Set the date after which this certificate will no longer be valid.

SetNotBefore ( System.DateTime date ) : void

Set the date that this certificate is to be valid from.

SetPublicKey ( AsymmetricKeyParameter publicKey ) : void

Set the public key that this certificate identifies.

SetSerialNumber ( BigInteger serialNumber ) : void

Set the certificate's serial number.

Make serial numbers long, if you have no serial number policy make sure the number is at least 16 bytes of secure random data. You will be surprised how ugly a serial number collision can get.

SetSignatureAlgorithm ( string signatureAlgorithm ) : void

Set the signature algorithm that will be used to sign this certificate. This can be either a name or an OID, names are treated as case insensitive.

SetSubjectDN ( Org.BouncyCastle.Asn1.X509.X509Name subject ) : void

Set the subject distinguished name. The subject describes the entity associated with the public key.

X509V1CertificateGenerator ( ) : System

Default Constructor.

비공개 메소드들

메소드 설명
GenerateJcaObject ( TbsCertificateStructure tbsCert, byte signature ) : X509Certificate

메소드 상세

Generate() 공개 메소드

Generate a new X509Certificate.
public Generate ( AsymmetricKeyParameter privateKey ) : X509Certificate
privateKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter The private key of the issuer used to sign this certificate.
리턴 X509Certificate

Generate() 공개 메소드

Generate a new X509Certificate specifying a SecureRandom instance that you would like to use.
public Generate ( AsymmetricKeyParameter privateKey, SecureRandom random ) : X509Certificate
privateKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter The private key of the issuer used to sign this certificate.
random Org.BouncyCastle.Security.SecureRandom The Secure Random you want to use.
리턴 X509Certificate

Reset() 공개 메소드

Reset the generator.
public Reset ( ) : void
리턴 void

SetIssuerDN() 공개 메소드

Set the issuer distinguished name. The issuer is the entity whose private key is used to sign the certificate.
public SetIssuerDN ( Org.BouncyCastle.Asn1.X509.X509Name issuer ) : void
issuer Org.BouncyCastle.Asn1.X509.X509Name The issuers DN.
리턴 void

SetNotAfter() 공개 메소드

Set the date after which this certificate will no longer be valid.
public SetNotAfter ( System.DateTime date ) : void
date System.DateTime
리턴 void

SetNotBefore() 공개 메소드

Set the date that this certificate is to be valid from.
public SetNotBefore ( System.DateTime date ) : void
date System.DateTime
리턴 void

SetPublicKey() 공개 메소드

Set the public key that this certificate identifies.
public SetPublicKey ( AsymmetricKeyParameter publicKey ) : void
publicKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
리턴 void

SetSerialNumber() 공개 메소드

Set the certificate's serial number.
Make serial numbers long, if you have no serial number policy make sure the number is at least 16 bytes of secure random data. You will be surprised how ugly a serial number collision can get.
public SetSerialNumber ( BigInteger serialNumber ) : void
serialNumber Org.BouncyCastle.Math.BigInteger The serial number.
리턴 void

SetSignatureAlgorithm() 공개 메소드

Set the signature algorithm that will be used to sign this certificate. This can be either a name or an OID, names are treated as case insensitive.
public SetSignatureAlgorithm ( string signatureAlgorithm ) : void
signatureAlgorithm string string representation of the algorithm name
리턴 void

SetSubjectDN() 공개 메소드

Set the subject distinguished name. The subject describes the entity associated with the public key.
public SetSubjectDN ( Org.BouncyCastle.Asn1.X509.X509Name subject ) : void
subject Org.BouncyCastle.Asn1.X509.X509Name
리턴 void

X509V1CertificateGenerator() 공개 메소드

Default Constructor.
public X509V1CertificateGenerator ( ) : System
리턴 System