1 2 29 30 package com.jcraft.jsch; 31 32 public interface HostKeyRepository{ 33 final int OK=0; 34 final int NOT_INCLUDED=1; 35 final int CHANGED=2; 36 37 int check(String host, byte[] key); 38 void add(HostKey hostkey, UserInfo ui); 39 void remove(String host, String type); 40 void remove(String host, String type, byte[] key); 41 String getKnownHostsRepositoryID(); 42 HostKey[] getHostKey(); 43 HostKey[] getHostKey(String host, String type); 44 } 45 | Popular Tags |