Tuesday, September 8, 2020
ConnectTimeout ReadTimeout WriteTimeout
Message Hash Generation Code:
public class HashGenerator {
public static void main(String[] args) throws NoSuchAlgorithmException, UnsupportedEncodingException {
MessageDigest messageDigest = java.security.MessageDigest.getInstance("SHA-256");
String raw="IN656912225942";
String x = new String(Base64.encode(messageDigest.digest(raw.getBytes("UTF-8"))));
System.out.println(raw+" "+x);
}
}
ConnectTimeout: 5 Seconds (Finding Host, who is the server)
ReadTimeout: 5 Seconds (Reading the value from Server, Server is processing)
WriteTimeout: 5 Seconds (Posting the request to Server like posting JSON, File Upload, depends on bandwidth)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment