Beispiel #1
0
        public CertificateEntry Clone()
        {
            var copy = new CertificateEntry();

            CopyTo(copy);

            return(copy);
        }
Beispiel #2
0
        internal static CertificateEntry Load(IBinaryAccessor accessor)
        {
            var entry = new CertificateEntry();

            int length = accessor.ReadInt32();

            entry._revision = (CertificateRevision)accessor.ReadUInt16();
            entry._type     = (CertificateType)accessor.ReadUInt16();

            // Subtract header length (length, revision, type).
            int dataLength = length - 8;

            entry._data = accessor.ReadBytes(dataLength);

            return(entry);
        }
Beispiel #3
0
 protected void CopyTo(CertificateEntry copy)
 {
     copy._revision = _revision;
     copy._type     = _type;
     copy._data     = _data;
 }