The code snippet below demonstrates using the PingFederate Java STS Client SDK to send a WAM session token to the PingFederate STS.

 // Example method for obtaining the WAM Session token.
 // You will need to implement this for your environment.
 String wamSessionToken = getWAMSessionToken();

 // Configure STS Client (IdP side / SP Connection)
 STSClientConfiguration stsConfig = new STSClientConfiguration();

 // Instantiate the STSClient
 STSClient stsClient = new STSClient(stsConfig);

 // Send an RST Issue request to PingFederate STS
 Element samlToken = stsClient.issueToken(wamSessionToken);