PKI TKS Java API - dogtagpki/pki GitHub Wiki
To create a TKS session:
TKSClient tksClient = new TKSClient(client); AccountInfo accountInfo = tksClient.login();
The AccountInfo contains information about the subsystem user (e.g. user ID, full name, email, roles).
To remove the session:
tksClient.logout();
See also TKSClient.java.