class LoginSession {

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
                .append("config", configDirectory)
                .append("principal", principalName)
                .append("keytab", keytabPath)
                .append("kerberosMinMillisBeforeRelogin", kerberosMinMillisBeforeRelogin)
                .toString();
    }

    public  LoginSession(String configDirectory);
    public  LoginSession(String configDirectory, UserGroupInformation loginUser);
    public  LoginSession(String configDirectory, String principalName, String keytabPath, long kerberosMinMillisBeforeRelogin);
    public  LoginSession(String configDirectory, String principalName, String keytabPath, UserGroupInformation loginUser,
                        Subject subject, long kerberosMinMillisBeforeRelogin);

}