mirror of
https://github.com/corda/corda.git
synced 2025-06-19 15:43:52 +00:00
ENT-992: Introducing the CRR submission tool (#633)
* Introducing the CRR submission tool * Addressing review comments * Addressing review comments - round 2 - Redesign of the tool. * Fixing messages
This commit is contained in:
@ -15,9 +15,15 @@ data class CertificateRevocationRequest(val certificateSerialNumber: BigInteger?
|
||||
val legalName: CordaX500Name? = null,
|
||||
val reason: CRLReason,
|
||||
val reporter: String) {
|
||||
init {
|
||||
require(certificateSerialNumber != null || csrRequestId != null || legalName != null) {
|
||||
"At least one of the following needs to be specified: certificateSerialNumber, csrRequestId, legalName."
|
||||
companion object {
|
||||
fun validateOptional(certificateSerialNumber: BigInteger?, csrRequestId: String?, legalName: CordaX500Name?) {
|
||||
require(certificateSerialNumber != null || csrRequestId != null || legalName != null) {
|
||||
"At least one of the following needs to be specified: certificateSerialNumber, csrRequestId, legalName."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
init {
|
||||
validateOptional(certificateSerialNumber, csrRequestId, legalName)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user