use of org.maxkey.authz.saml.common.EndpointGenerator in project MaxKey by dromara.
the class ConsumerEndpoint method afterPropertiesSet.
public void afterPropertiesSet() throws Exception {
authnRequestGenerator = new AuthnRequestGenerator(keyStoreLoader.getEntityName(), timeService, idService);
endpointGenerator = new EndpointGenerator();
CriteriaSet criteriaSet = new CriteriaSet();
criteriaSet.add(new EntityIDCriteria(keyStoreLoader.getEntityName()));
criteriaSet.add(new UsageCriteria(UsageType.SIGNING));
try {
signingCredential = credentialResolver.resolveSingle(criteriaSet);
} catch (SecurityException e) {
logger.error("证书解析出错", e);
throw new Exception(e);
}
Validate.notNull(signingCredential);
}
Aggregations