C# Class Org.BouncyCastle.X509.PrincipalUtilities

A utility class that will extract X509Principal objects from X.509 certificates.

Use this in preference to trying to recreate a principal from a string, not all DNs are what they should be, so it's best to leave them encoded where they can be.

Exibir arquivo Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
GetIssuerX509Principal ( X509Certificate cert ) : Org.BouncyCastle.Asn1.X509.X509Name

Return the issuer of the given cert as an X509Principal.

GetIssuerX509Principal ( X509Crl crl ) : Org.BouncyCastle.Asn1.X509.X509Name

Return the issuer of the given CRL as an X509Principal.

GetSubjectX509Principal ( X509Certificate cert ) : Org.BouncyCastle.Asn1.X509.X509Name

Return the subject of the given cert as an X509Principal.

Method Details

GetIssuerX509Principal() public static method

Return the issuer of the given cert as an X509Principal.
public static GetIssuerX509Principal ( X509Certificate cert ) : Org.BouncyCastle.Asn1.X509.X509Name
cert X509Certificate
return Org.BouncyCastle.Asn1.X509.X509Name

GetIssuerX509Principal() public static method

Return the issuer of the given CRL as an X509Principal.
public static GetIssuerX509Principal ( X509Crl crl ) : Org.BouncyCastle.Asn1.X509.X509Name
crl X509Crl
return Org.BouncyCastle.Asn1.X509.X509Name

GetSubjectX509Principal() public static method

Return the subject of the given cert as an X509Principal.
public static GetSubjectX509Principal ( X509Certificate cert ) : Org.BouncyCastle.Asn1.X509.X509Name
cert X509Certificate
return Org.BouncyCastle.Asn1.X509.X509Name