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