AssertionImpl assertion = new AssertionImpl(new AttributePrincipalImpl(user, userMap, pgtIou,
proxyRetriever));
if (null != caKey) assertion.getAttributes().put("caKey", caKey);
return assertion;
} else {
throw new TicketValidationException(errorCode + ":" + errorMessage);
}
}