if (sm != null)
sm.checkPermission(PicketLinkCoreSTS.rte);
SAMLProtocolContext samlProtocolContext = (SAMLProtocolContext) context;
AssertionType issuedAssertion = samlProtocolContext.getIssuedAssertion();
try {
if (!AssertionUtil.hasExpired(issuedAssertion))
throw logger.samlAssertionExpiredError();
} catch (ConfigurationException e) {
throw logger.processingError(e);
}
if (issuedAssertion == null)
throw logger.assertionInvalidError();
if (this.tokenRegistry.getToken(issuedAssertion.getID()) == null)
throw logger.assertionInvalidError();
}