Showing 2 of 24 total issues
Method signCertificate
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
/**
* Create a certificate, add the email extension with email from the request
* and sign it with the Nuts intermediate keyPair.
*
* Deletes request and stores certificate
Method downloadCertificate
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@RequestMapping("/{var}", method = arrayOf(RequestMethod.GET))
fun downloadCertificate(@PathVariable("var") requestId: String): ResponseEntity<ByteArray> {
try {
logger.info("Received certificate download request for: $requestId")
var x500Name = CordaX500Name.parse(requestId) // for sorting