I can not get session id

public static String generateChecksum(String userID, String apiKey, String encryptionKey) {
String inputData = userID + apiKey + encryptionKey;
try {
MessageDigest digest = MessageDigest.getInstance(“SHA-256”);
byte checksum = digest.digest(inputData.getBytes());

        // Encode the checksum in hexadecimal
        StringBuilder hexString = new StringBuilder(2 * checksum.length);
        for (byte b : checksum) {
            String hex = Integer.toHexString(0xFF & b);
            if (hex.length() == 1) {
                hexString.append('0');
            }
            hexString.append(hex);
        }
        return hexString.toString();
    } catch (NoSuchAlgorithmException e) {
        e.printStackTrace();
        return null;
    }
}

Apologies for the delay in response. Our APIs will not function with client-side logic. Please refer to our documentation for the proper process, and find the document link below.

Kindly use the new ANT version and try not to use the old version of ANT and API.
Kindly log in here go to APPs and API_KEY and generate your API_KEY.
https://ant.aliceblueonline.com/

OR

Please refer to the below link for documentation and POSTMAN collection
https://v2api.aliceblueonline.com/vendors

Kindly follow the given below link for video reference.

For the Python script kindly find the below links
Kindly find our GitHub library in the given below link.

Kindly find our YouTube tutorial in the given link below