SecurityManager sm = System.getSecurityManager();
if (sm != null)
sm.checkPermission(PicketLinkCoreSTS.rte);
SAMLProtocolContext samlProtocolContext = (SAMLProtocolContext) context;
AssertionType issuedAssertion = samlProtocolContext.getIssuedAssertion();
try {
XMLGregorianCalendar currentTime = XMLTimeUtil.getIssueInstant();
issuedAssertion.updateIssueInstant(currentTime);
} catch (ConfigurationException e) {
throw logger.processingError(e);
}
try {
AssertionUtil.createTimedConditions(issuedAssertion, ASSERTION_VALIDITY, CLOCK_SKEW);
} catch (ConfigurationException e) {
throw logger.processingError(e);
} catch (IssueInstantMissingException e) {
throw logger.processingError(e);
}
try {
this.tokenRegistry.addToken(issuedAssertion.getID(), issuedAssertion);
} catch (IOException e) {
throw logger.processingError(e);
}
samlProtocolContext.setIssuedAssertion(issuedAssertion);
}