java.lang.Object
org.springframework.cloud.config.server.encryption.EncryptionController
@RestController
@RequestMapping(path="${spring.cloud.config.server.prefix:}")
public class EncryptionController
extends Object
- Author:
- Dave Syer, Tim Ysewyn
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
setDefaultApplicationName
public void setDefaultApplicationName(String defaultApplicationName)
-
setDefaultProfile
public void setDefaultProfile(String defaultProfile)
-
getPublicKey
@GetMapping("/key")
public String getPublicKey()
-
getPublicKey
@GetMapping("/key/{name}/{profiles}")
public String getPublicKey(@PathVariable
String name,
@PathVariable
String profiles)
-
-
-
-
-
-
-
keyUnavailable
@ExceptionHandler(org.springframework.cloud.config.server.encryption.KeyNotAvailableException.class)
public org.springframework.http.ResponseEntity<Map<String,Object>> keyUnavailable()
-
decryptionDisabled
@ExceptionHandler(org.springframework.cloud.config.server.encryption.DecryptionNotSupportedException.class)
public org.springframework.http.ResponseEntity<Map<String,Object>> decryptionDisabled()
-
notInstalled
@ExceptionHandler(org.springframework.cloud.config.server.encryption.KeyNotInstalledException.class)
public org.springframework.http.ResponseEntity<Map<String,Object>> notInstalled()
-
encryptionTooWeak
@ExceptionHandler(org.springframework.cloud.config.server.encryption.EncryptionTooWeakException.class)
public org.springframework.http.ResponseEntity<Map<String,Object>> encryptionTooWeak()
-
invalidCipher
@ExceptionHandler(org.springframework.cloud.config.server.encryption.InvalidCipherException.class)
public org.springframework.http.ResponseEntity<Map<String,Object>> invalidCipher()