Class HttpsCertificateSettingsController
- java.lang.Object
-
- jetbrains.buildServer.controllers.https.HttpsCertificateSettingsController
-
@RestController @RequestMapping("https/settings") public class HttpsCertificateSettingsController extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpsCertificateSettingsController(HttpsConfigurator httpsConfigurator, AcmeService acmeService, AcmeAccountStorage acmeAccountStorage, SecurityContextEx securityContext, AuditLogFactory auditLogFactory, ServerSettings serverSettings, Http01ChallengeFileServer http01ChallengeFileServer, Http01ChallengeController http01ChallengeController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelAcmeChallenge()
org.springframework.http.ResponseEntity<jetbrains.buildServer.controllers.https.HttpsCertificateSettingsController.CertificateInfo>
certificateInfo()
int
defaultHttpsPort()
org.springframework.http.ResponseEntity<?>
fetchFromAcme()
org.springframework.http.ResponseEntity<AcmeOrder>
getCurrentAcmeOrder()
org.springframework.http.ResponseEntity<String>
handleAccessDenied()
org.springframework.http.ResponseEntity<String>
handleNumberFormat()
org.springframework.http.ResponseEntity<String>
removeCertificate()
org.springframework.http.ResponseEntity<String>
setPort(int port)
org.springframework.http.ResponseEntity<String>
setRedirectStrategy(String strategy)
org.springframework.http.ResponseEntity<String>
termsOfService()
org.springframework.http.ResponseEntity<String>
triggerAcmeChallenge()
org.springframework.http.ResponseEntity<String>
uploadCertificate(org.springframework.web.multipart.MultipartFile certificate, org.springframework.web.multipart.MultipartFile key, Integer port)
-
-
-
Constructor Detail
-
HttpsCertificateSettingsController
public HttpsCertificateSettingsController(@NotNull HttpsConfigurator httpsConfigurator, @NotNull AcmeService acmeService, @NotNull AcmeAccountStorage acmeAccountStorage, @NotNull SecurityContextEx securityContext, @NotNull AuditLogFactory auditLogFactory, @NotNull ServerSettings serverSettings, @NotNull Http01ChallengeFileServer http01ChallengeFileServer, @NotNull Http01ChallengeController http01ChallengeController)
-
-
Method Detail
-
handleAccessDenied
@ExceptionHandler(AccessDeniedException.class) public org.springframework.http.ResponseEntity<String> handleAccessDenied()
-
handleNumberFormat
@ExceptionHandler(java.lang.NumberFormatException.class) public org.springframework.http.ResponseEntity<String> handleNumberFormat()
-
termsOfService
@RequestMapping(path="/termsOfService", method=GET) public org.springframework.http.ResponseEntity<String> termsOfService()
-
certificateInfo
@RequestMapping(path="/certificateInfo", method=GET) public org.springframework.http.ResponseEntity<jetbrains.buildServer.controllers.https.HttpsCertificateSettingsController.CertificateInfo> certificateInfo()
-
getCurrentAcmeOrder
@RequestMapping(path="/getAcmeOrder", method=GET) public org.springframework.http.ResponseEntity<AcmeOrder> getCurrentAcmeOrder()
-
defaultHttpsPort
@RequestMapping(path="/defaultHttpsPort", method=GET) public int defaultHttpsPort()
-
removeCertificate
@RequestMapping(path="/removeCertificate", method=DELETE) public org.springframework.http.ResponseEntity<String> removeCertificate()
-
uploadCertificate
@RequestMapping(path="/uploadCertificate", method=POST) public org.springframework.http.ResponseEntity<String> uploadCertificate(@RequestParam("certificate") org.springframework.web.multipart.MultipartFile certificate, @RequestParam("key") org.springframework.web.multipart.MultipartFile key, @RequestParam(value="port",required=false) Integer port)
-
setPort
@RequestMapping(path="/setPort", method=POST) public org.springframework.http.ResponseEntity<String> setPort(@RequestParam("port") int port)
-
setRedirectStrategy
@RequestMapping(path="/setRedirectStrategy", method=POST) public org.springframework.http.ResponseEntity<String> setRedirectStrategy(@NotNull @RequestParam("strategy") String strategy)
-
fetchFromAcme
@RequestMapping(path="/fetchFromAcme", method=POST) public org.springframework.http.ResponseEntity<?> fetchFromAcme()
-
triggerAcmeChallenge
@RequestMapping(path="/triggerAcmeChallenge", method=POST) public org.springframework.http.ResponseEntity<String> triggerAcmeChallenge()
-
cancelAcmeChallenge
@RequestMapping(path="/cancelAcmeChallenge", method=POST) public void cancelAcmeChallenge()
-
-