API 参考
正在准备搜索索引…

SftpSessionInfo

SSH 握手协商结果,供应用核验主机公钥和算法。

interface SftpSessionInfo {
    clientToServerCompressionAlgorithm: string;
    clientToServerEncryptionAlgorithm: string;
    clientToServerMacAlgorithm: string;
    hostKey: {
        data: Uint8Array;
        sha1: Uint8Array;
        sha256: Uint8Array;
        type: SftpHostKeyType;
    };
    hostKeyAlgorithm: string;
    keyExchangeAlgorithm: string;
    serverToClientCompressionAlgorithm: string;
    serverToClientEncryptionAlgorithm: string;
    serverToClientMacAlgorithm: string;
}
源码与继承
成员目录9

属性

属性

clientToServerCompressionAlgorithm: string

客户端到服务端的压缩算法。

源码与继承
clientToServerEncryptionAlgorithm: string

客户端到服务端的加密算法。

源码与继承
clientToServerMacAlgorithm: string

客户端到服务端的消息认证算法。

源码与继承
hostKey: {
    data: Uint8Array;
    sha1: Uint8Array;
    sha256: Uint8Array;
    type: SftpHostKeyType;
}

服务端主机公钥与原始指纹字节。

类型声明

  • data: Uint8Array

    SSH 编码的公钥数据副本。

  • sha1: Uint8Array

    SHA-1 指纹原始字节。

  • sha256: Uint8Array

    SHA-256 指纹原始字节。

  • type: SftpHostKeyType

    公钥类型。

源码与继承
hostKeyAlgorithm: string

服务端主机公钥算法。

源码与继承
keyExchangeAlgorithm: string

密钥交换算法。

源码与继承
serverToClientCompressionAlgorithm: string

服务端到客户端的压缩算法。

源码与继承
serverToClientEncryptionAlgorithm: string

服务端到客户端的加密算法。

源码与继承
serverToClientMacAlgorithm: string

服务端到客户端的消息认证算法。

源码与继承

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0