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
principalX509Name
AttributeCertificateHolder(X509Name, DerInteger)
public AttributeCertificateHolder(X509Name issuerName, DerInteger serialNumber)
Parameters
issuerNameX509NameserialNumberDerInteger
AttributeCertificateHolder(X509Name, BigInteger)
public AttributeCertificateHolder(X509Name issuerName, BigInteger serialNumber)
Parameters
issuerNameX509NameserialNumberBigInteger
AttributeCertificateHolder(X509Certificate)
public AttributeCertificateHolder(X509Certificate cert)
Parameters
certX509Certificate
AttributeCertificateHolder(int, string, string, byte[])
public AttributeCertificateHolder(int digestedObjectType, string digestAlgorithm, string otherObjectTypeID, byte[] objectDigest)
Parameters
Properties
DigestAlgorithm
public string DigestAlgorithm { get; }
Property Value
DigestedObjectType
public int DigestedObjectType { get; }
Property Value
OtherObjectTypeID
public string OtherObjectTypeID { get; }
Property Value
SerialNumber
public BigInteger SerialNumber { get; }
Property Value
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
otherAttributeCertificateHolderAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
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
x509CertX509Certificate
Returns
- bool
if the objects is matched by this selector, false otherwise.true