Token processor sample code
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();
stsConfig.setAppliesTo("http://sp.domain.com");
stsConfig.setStsEndpoint("https://idp.domain.com:9031/idp/sts.wst");
stsConfig.setInTokenType(TokenType.BINARY);
// Instantiate the STSClient
STSClient stsClient = new STSClient(stsConfig);
// Send an RST Issue request to {pingfed} STS
Element samlToken = stsClient.issueToken(wamSessionToken);