Org.BouncyCastle.Crypto.Tls.DtlsClientProtocol.ProcessServerCertificate C# (CSharp) Метод

ProcessServerCertificate() защищенный Метод

protected ProcessServerCertificate ( ClientHandshakeState state, byte body ) : Certificate
state ClientHandshakeState
body byte
Результат Certificate
        protected virtual Certificate ProcessServerCertificate(ClientHandshakeState state, byte[] body)
        {
            MemoryStream buf = new MemoryStream(body, false);

            Certificate serverCertificate = Certificate.Parse(buf);

            TlsProtocol.AssertEmpty(buf);

            state.keyExchange.ProcessServerCertificate(serverCertificate);
            state.authentication = state.client.GetAuthentication();
            state.authentication.NotifyServerCertificate(serverCertificate);

            return serverCertificate;
        }