Granados.SSH2.SSH2ConnectionInfo.GetSSHHostKeyInformationProvider C# (CSharp) 메소드

GetSSHHostKeyInformationProvider() 공개 메소드

Get an object that provides informations about a host key.
public GetSSHHostKeyInformationProvider ( ) : ISSHHostKeyInformationProvider
리턴 ISSHHostKeyInformationProvider
        public ISSHHostKeyInformationProvider GetSSHHostKeyInformationProvider()
        {
            if (HostName == null) {
                throw new InvalidOperationException("HostName is null.");
            }
            if (HostKey == null) {
                throw new InvalidOperationException("HostKey is null.");
            }
            return new SSH2HostKeyInformationProvider(HostName, PortNumber, HostKey);
        }