@Controller @RequestMapping(value="/dns") public class DNSController extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DNSController.CertContainer |
| Constructor and Description |
|---|
DNSController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.ModelAndView |
addA4Setting(String requestedWith,
javax.servlet.http.HttpSession session,
DNSEntryForm AAdnsForm,
org.springframework.ui.Model model,
String actionPath) |
org.springframework.web.servlet.ModelAndView |
addCertSetting(String requestedWith,
javax.servlet.http.HttpSession session,
DNSEntryForm CertdnsForm,
org.springframework.ui.Model model,
String actionPath) |
org.springframework.web.servlet.ModelAndView |
addCNAMESetting(String requestedWith,
javax.servlet.http.HttpSession session,
DNSEntryForm CdnsForm,
org.springframework.ui.Model model,
String actionPath) |
org.springframework.web.servlet.ModelAndView |
addMXSetting(String requestedWith,
javax.servlet.http.HttpSession session,
DNSEntryForm MXdnsForm,
org.springframework.ui.Model model,
String actionPath) |
org.springframework.web.servlet.ModelAndView |
addNSSetting(String requestedWith,
javax.servlet.http.HttpSession session,
DNSEntryForm NSdnsForm,
org.springframework.ui.Model model,
String actionPath) |
org.springframework.web.servlet.ModelAndView |
addSetting(String requestedWith,
javax.servlet.http.HttpSession session,
DNSEntryForm AdnsForm,
DNSEntryForm AAdnsForm,
DNSEntryForm CdnsForm,
DNSEntryForm CertdnsForm,
DNSEntryForm SrvdnsForm,
DNSEntryForm MXdnsForm,
org.springframework.ui.Model model,
String actionPath) |
org.springframework.web.servlet.ModelAndView |
addSetting(String requestedWith,
javax.servlet.http.HttpSession session,
DNSEntryForm AdnsForm,
org.springframework.ui.Model model,
String actionPath) |
org.springframework.web.servlet.ModelAndView |
addSOASetting(String requestedWith,
javax.servlet.http.HttpSession session,
DNSEntryForm SoadnsForm,
org.springframework.ui.Model model,
String actionPath) |
org.springframework.web.servlet.ModelAndView |
addSRVSetting(String requestedWith,
javax.servlet.http.HttpSession session,
DNSEntryForm SrvdnsForm,
org.springframework.ui.Model model,
String actionPath) |
static String |
getJCEProviderName()
Gets the configured JCE crypto provider string for crypto operations.
|
static String |
getThumbPrint(X509Certificate cert) |
String |
handleIOException(IOException ex,
javax.servlet.http.HttpServletRequest request)
Handle exceptions as gracefully as possible
|
static String |
hexify(byte[] bytes) |
org.springframework.web.servlet.ModelAndView |
navigate(String requestedWith,
javax.servlet.http.HttpSession session,
DNSEntryForm entryForm,
org.springframework.ui.Model model,
String actionPath) |
void |
refreshModelFromService(org.springframework.ui.Model model) |
org.springframework.web.servlet.ModelAndView |
removeAnchors(String requestedWith,
DNSEntryForm AdnsForm,
DNSEntryForm NSdnsForm,
DNSEntryForm AAdnsForm,
DNSEntryForm CdnsForm,
DNSEntryForm CertdnsForm,
DNSEntryForm SrvdnsForm,
DNSEntryForm SoadnsForm,
DNSEntryForm MXdnsForm,
javax.servlet.http.HttpSession session,
org.springframework.ui.Model model,
String actionPath) |
void |
setCertificateService(org.nhind.config.rest.CertificateService certService) |
void |
setDNSService(org.nhind.config.rest.DNSService dnsService) |
void |
setSettingsService(org.nhind.config.rest.SettingService settingsService) |
org.springframework.web.servlet.ModelAndView |
showDNSEntries(String requestedWith,
javax.servlet.http.HttpSession session,
DNSEntryForm entryForm,
org.springframework.ui.Model model,
String actionPath) |
DNSController.CertContainer |
toCertContainer(byte[] data) |
@Autowired public void setCertificateService(org.nhind.config.rest.CertificateService certService)
@Autowired public void setDNSService(org.nhind.config.rest.DNSService dnsService)
@Autowired public void setSettingsService(org.nhind.config.rest.SettingService settingsService)
public static String getJCEProviderName()
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/navigate",
method=GET)
public org.springframework.web.servlet.ModelAndView navigate(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
DNSEntryForm entryForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(method=GET)
public org.springframework.web.servlet.ModelAndView showDNSEntries(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
DNSEntryForm entryForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addDNSRecord",
method=POST)
public org.springframework.web.servlet.ModelAndView addSetting(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute(value="AdnsForm")
DNSEntryForm AdnsForm,
@ModelAttribute(value="AAdnsForm")
DNSEntryForm AAdnsForm,
@ModelAttribute(value="CdnsForm")
DNSEntryForm CdnsForm,
@ModelAttribute(value="CertdnsForm")
DNSEntryForm CertdnsForm,
@ModelAttribute(value="SrvdnsForm")
DNSEntryForm SrvdnsForm,
@ModelAttribute(value="MXdnsForm")
DNSEntryForm MXdnsForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
throws org.nhindirect.common.rest.exceptions.ServiceException
org.nhindirect.common.rest.exceptions.ServiceException@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addADNSRecord",
method=POST)
public org.springframework.web.servlet.ModelAndView addSetting(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute(value="AdnsForm")
DNSEntryForm AdnsForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addNSDNSRecord",
method=POST)
public org.springframework.web.servlet.ModelAndView addNSSetting(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute(value="NSdnsForm")
DNSEntryForm NSdnsForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addA4DNSRecord",
method=POST)
public org.springframework.web.servlet.ModelAndView addA4Setting(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute(value="AAdnsForm")
DNSEntryForm AAdnsForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addMXDNSRecord",
method=POST)
public org.springframework.web.servlet.ModelAndView addMXSetting(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute(value="MXdnsForm")
DNSEntryForm MXdnsForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addCNAMEDNSRecord",
method=POST)
public org.springframework.web.servlet.ModelAndView addCNAMESetting(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute(value="CdnsForm")
DNSEntryForm CdnsForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addSRVDNSRecord",
method=POST)
public org.springframework.web.servlet.ModelAndView addSRVSetting(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute(value="SrvdnsForm")
DNSEntryForm SrvdnsForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addCertDNSRecord",
method=POST)
public org.springframework.web.servlet.ModelAndView addCertSetting(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute(value="CertdnsForm")
DNSEntryForm CertdnsForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addSOADNSRecord",
method=POST)
public org.springframework.web.servlet.ModelAndView addSOASetting(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute(value="SoadnsForm")
DNSEntryForm SoadnsForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/removesettings",
method=POST)
public org.springframework.web.servlet.ModelAndView removeAnchors(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
@ModelAttribute(value="AdnsForm")
DNSEntryForm AdnsForm,
@ModelAttribute(value="NSdnsForm")
DNSEntryForm NSdnsForm,
@ModelAttribute(value="AAdnsForm")
DNSEntryForm AAdnsForm,
@ModelAttribute(value="CdnsForm")
DNSEntryForm CdnsForm,
@ModelAttribute(value="CertdnsForm")
DNSEntryForm CertdnsForm,
@ModelAttribute(value="SrvdnsForm")
DNSEntryForm SrvdnsForm,
@ModelAttribute(value="SoadnsForm")
DNSEntryForm SoadnsForm,
@ModelAttribute(value="MXdnsForm")
DNSEntryForm MXdnsForm,
javax.servlet.http.HttpSession session,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
public void refreshModelFromService(org.springframework.ui.Model model)
@ExceptionHandler(value=java.io.IOException.class) public String handleIOException(IOException ex, javax.servlet.http.HttpServletRequest request)
ex - request - public DNSController.CertContainer toCertContainer(byte[] data) throws Exception
Exceptionpublic static String getThumbPrint(X509Certificate cert) throws NoSuchAlgorithmException, CertificateEncodingException
public static String hexify(byte[] bytes)
Copyright © 2021. All rights reserved.