Table of Contents

Class PrincipalUtilities

Namespace
Org.BouncyCastle.X509
Assembly
BouncyCastle.Cryptography.dll
[Obsolete("Will be removed")]
public class PrincipalUtilities
Inheritance
PrincipalUtilities
Inherited Members

Remarks

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.

Methods

GetIssuerX509Principal(X509Certificate)

Return the issuer of the given cert as an X509Principal.

public static X509Name GetIssuerX509Principal(X509Certificate cert)

Parameters

cert X509Certificate

Returns

X509Name

GetIssuerX509Principal(X509Crl)

Return the issuer of the given CRL as an X509Principal.

public static X509Name GetIssuerX509Principal(X509Crl crl)

Parameters

crl X509Crl

Returns

X509Name

GetSubjectX509Principal(X509Certificate)

Return the subject of the given cert as an X509Principal.

public static X509Name GetSubjectX509Principal(X509Certificate cert)

Parameters

cert X509Certificate

Returns

X509Name