Class X509CertificateChain
A collection of X.509 certificates.
This "chain" can be used in multiple contexts, such as providing a root CA certificate within a TUF root of trust or multiple untrusted certificates for the purpose of chain building.
public sealed class X509CertificateChain : IMessage<X509CertificateChain>, IEquatable<X509CertificateChain>, IDeepCloneable<X509CertificateChain>, IBufferMessage, IMessage
- Inheritance
-
X509CertificateChain
- Implements
-
IMessage<X509CertificateChain>IDeepCloneable<X509CertificateChain>IBufferMessageIMessage
- Inherited Members
Constructors
X509CertificateChain()
public X509CertificateChain()
X509CertificateChain(X509CertificateChain)
public X509CertificateChain(X509CertificateChain other)
Parameters
otherX509CertificateChain
Fields
CertificatesFieldNumber
Field number for the "certificates" field.
public const int CertificatesFieldNumber = 1
Field Value
Properties
Certificates
One or more DER-encoded certificates.
In some contexts (such as VerificationMaterial.x509_certificate_chain), this sequence
has an imposed order. Unless explicitly specified, there is otherwise no
guaranteed order.
public RepeatedField<X509Certificate> Certificates { get; }
Property Value
- RepeatedField<X509Certificate>
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<X509CertificateChain> Parser { get; }
Property Value
- MessageParser<X509CertificateChain>
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public X509CertificateChain Clone()
Returns
- X509CertificateChain
A deep clone of this object.
Equals(X509CertificateChain)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(X509CertificateChain other)
Parameters
otherX509CertificateChainAn 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 other)
Parameters
otherobject
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(X509CertificateChain)
Merges the given message into this one.
public void MergeFrom(X509CertificateChain other)
Parameters
otherX509CertificateChain
Remarks
See the user guide for precise merge semantics.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.