use of org.maxkey.entity.apps.AppsSAML20Details in project MaxKey by dromara.
the class AppsSaml20DetailsService method getAppDetails.
public AppsSAML20Details getAppDetails(String id, boolean cached) {
AppsSAML20Details details = null;
if (cached) {
details = detailsCache.getIfPresent(id);
if (details == null) {
details = getMapper().getAppDetails(id);
detailsCache.put(id, details);
}
} else {
details = getMapper().getAppDetails(id);
}
return details;
}
use of org.maxkey.entity.apps.AppsSAML20Details in project MaxKey by dromara.
the class SAML20DetailsController method forwardAdd.
@RequestMapping(value = { "/forwardAdd" })
public ModelAndView forwardAdd() {
ModelAndView modelAndView = new ModelAndView("apps/saml20/appAdd");
AppsSAML20Details saml20Details = new AppsSAML20Details();
saml20Details.setSecret(ReciprocalUtils.generateKey(""));
saml20Details.setProtocol(ConstsProtocols.SAML20);
saml20Details.setId(saml20Details.generateId());
modelAndView.addObject("model", saml20Details);
return modelAndView;
}
Aggregations