internal static void Decode(AsnReader reader, out CertificatePolicyMappingAsn decoded) { if (reader == null) { throw new ArgumentNullException(nameof(reader)); } Decode(reader, Asn1Tag.Sequence, out decoded); }
internal static void Decode(AsnReader reader, Asn1Tag expectedTag, out CertificatePolicyMappingAsn decoded) { if (reader == null) { throw new ArgumentNullException(nameof(reader)); } decoded = default; AsnReader sequenceReader = reader.ReadSequence(expectedTag); decoded.IssuerDomainPolicy = sequenceReader.ReadObjectIdentifierAsString(); decoded.SubjectDomainPolicy = sequenceReader.ReadObjectIdentifierAsString(); sequenceReader.ThrowIfNotEmpty(); }
internal static void Decode(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory <byte> rebind, out CertificatePolicyMappingAsn decoded) { try { DecodeCore(ref reader, expectedTag, rebind, out decoded); } catch (AsnContentException e) { throw new CryptographicException(SR.Cryptography_Der_Invalid_Encoding, e); } }
private static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory <byte> rebind, out CertificatePolicyMappingAsn decoded) { decoded = default; AsnValueReader sequenceReader = reader.ReadSequence(expectedTag); decoded.IssuerDomainPolicy = sequenceReader.ReadObjectIdentifier(); decoded.SubjectDomainPolicy = sequenceReader.ReadObjectIdentifier(); sequenceReader.ThrowIfNotEmpty(); }
internal static void Decode(ref AsnValueReader reader, ReadOnlyMemory <byte> rebind, out CertificatePolicyMappingAsn decoded) { Decode(ref reader, Asn1Tag.Sequence, rebind, out decoded); }