Table of Contents

Class AttributeCertificateHolder

Namespace
Org.BouncyCastle.X509
Assembly
BouncyCastle.Cryptography.dll
public class AttributeCertificateHolder : IEquatable<AttributeCertificateHolder>, ISelector<X509Certificate>, ICloneable
Inheritance
AttributeCertificateHolder
Implements
Inherited Members

Remarks

The Holder object.

Holder ::= SEQUENCE {
	baseCertificateID   [0] IssuerSerial OPTIONAL,
		-- the issuer and serial number of
		-- the holder's Public Key Certificate
	entityName          [1] GeneralNames OPTIONAL,
		-- the name of the claimant or role
	objectDigestInfo    [2] ObjectDigestInfo OPTIONAL
		-- used to directly authenticate the holder,
		-- for example, an executable
}

Constructors

AttributeCertificateHolder(X509Name)

public AttributeCertificateHolder(X509Name principal)

Parameters

principal X509Name

AttributeCertificateHolder(X509Name, DerInteger)

public AttributeCertificateHolder(X509Name issuerName, DerInteger serialNumber)

Parameters

issuerName X509Name
serialNumber DerInteger

AttributeCertificateHolder(X509Name, BigInteger)

public AttributeCertificateHolder(X509Name issuerName, BigInteger serialNumber)

Parameters

issuerName X509Name
serialNumber BigInteger

AttributeCertificateHolder(X509Certificate)

public AttributeCertificateHolder(X509Certificate cert)

Parameters

cert X509Certificate

AttributeCertificateHolder(int, string, string, byte[])

public AttributeCertificateHolder(int digestedObjectType, string digestAlgorithm, string otherObjectTypeID, byte[] objectDigest)

Parameters

digestedObjectType int
digestAlgorithm string
otherObjectTypeID string
objectDigest byte[]

Properties

DigestAlgorithm

public string DigestAlgorithm { get; }

Property Value

string

DigestedObjectType

public int DigestedObjectType { get; }

Property Value

int

OtherObjectTypeID

public string OtherObjectTypeID { get; }

Property Value

string

SerialNumber

public BigInteger SerialNumber { get; }

Property Value

BigInteger

Methods

Clone()

Creates a new object that is a copy of the current instance.

public object Clone()

Returns

object

A new object that is a copy of this instance.

Equals(AttributeCertificateHolder)

Indicates whether the current object is equal to another object of the same type.

public virtual bool Equals(AttributeCertificateHolder other)

Parameters

other AttributeCertificateHolder

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetEntityNames()

public X509Name[] GetEntityNames()

Returns

X509Name[]

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetIssuer()

public X509Name[] GetIssuer()

Returns

X509Name[]

GetObjectDigest()

public byte[] GetObjectDigest()

Returns

byte[]

Match(X509Certificate)

Match the passed in object, returning true if it would be selected by this selector, false otherwise.

public bool Match(X509Certificate x509Cert)

Parameters

x509Cert X509Certificate

Returns

bool
true
if the objects is matched by this selector, false otherwise.