All files / src/Glacier2 SSLInfo.js

58.92% Statements 33/56
100% Branches 1/1
0% Functions 0/4
58.92% Lines 33/56

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 5741x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x 41x               41x 41x               41x 41x               41x 41x     41x 41x 41x  
// Copyright (c) ZeroC, Inc.
 
// slice2js version 3.8.0-alpha.0
// <auto-generated>Generated from Slice file 'SSLInfo.ice'.</auto-generated>
 
/* eslint-disable */
/* jshint ignore: start */
 
import * as Ice_Struct from "../Ice/Struct.js";
import { Ice as Ice____Ice_BuiltinSequences } from "../Ice/BuiltinSequences.js"
 
const Ice = {
    ...Ice_Struct,
    ...Ice____Ice_BuiltinSequences,
};
 
export const Glacier2 = {};
 
/**
 * Represents information gathered from an incoming SSL connection and used for authentication and authorization.
 * @see SSLPermissionsVerifier
 */
Glacier2.SSLInfo = class {
    constructor(remoteHost = "", remotePort = 0, localHost = "", localPort = 0, cipher = "", certs = null) {
        this.remoteHost = remoteHost;
        this.remotePort = remotePort;
        this.localHost = localHost;
        this.localPort = localPort;
        this.cipher = cipher;
        this.certs = certs;
    }
 
    _write(ostr) {
        ostr.writeString(this.remoteHost);
        ostr.writeInt(this.remotePort);
        ostr.writeString(this.localHost);
        ostr.writeInt(this.localPort);
        ostr.writeString(this.cipher);
        Ice.StringSeqHelper.write(ostr, this.certs);
    }
 
    _read(istr) {
        this.remoteHost = istr.readString();
        this.remotePort = istr.readInt();
        this.localHost = istr.readString();
        this.localPort = istr.readInt();
        this.cipher = istr.readString();
        this.certs = Ice.StringSeqHelper.read(istr);
    }
 
    static get minWireSize() {
        return  12;
    }
};
 
Ice.defineStruct(Glacier2.SSLInfo, false, true);