subjectConfirmation.setSubjectConfirmationData(subjectConfirmationData);
subjectType.addConfirmation(subjectConfirmation);
PicketLinkCoreSTS sts = PicketLinkCoreSTS.instance();
SAMLProtocolContext samlProtocolContext = new SAMLProtocolContext();
samlProtocolContext.setSubjectType(subjectType);
samlProtocolContext.setIssuerID(issuerInfo.getIssuer());
AssertionType assertionType = idp.getAssertion();
if (assertionType != null) {
samlProtocolContext.setIssuedAssertion(assertionType);
// renew it
sts.renewToken(samlProtocolContext);
} else
sts.issueToken(samlProtocolContext);
assertionType = samlProtocolContext.getIssuedAssertion();
ConditionsType conditions = assertionType.getConditions();
// Update the subjectConfirmationData expiry based on the assertion