Adding CRL signing (#528)

* Adding CRL signing

* Adding CRL

* Addressing review comments

* Address review comments
This commit is contained in:
Michal Kit
2018-03-16 11:48:41 +00:00
committed by GitHub
parent c2b7755824
commit 6d99f7e5d4
31 changed files with 693 additions and 161 deletions

View File

@ -0,0 +1,23 @@
package net.corda.nodeapi.internal.network
import net.corda.core.identity.CordaX500Name
import net.corda.core.serialization.CordaSerializable
import java.math.BigInteger
import java.security.cert.CRLReason
/**
* This data class is intended to be used by the certificate revocation request (CRR) service client to create a new
* CRR submission.
*/
@CordaSerializable
data class CertificateRevocationRequest(val certificateSerialNumber: BigInteger? = null,
val csrRequestId: String? = null,
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."
}
}
}

View File

@ -1,3 +1,13 @@
/*
* R3 Proprietary and Confidential
*
* Copyright (c) 2018 R3 Limited. All rights reserved.
*
* The intellectual and technical concepts contained herein are proprietary to R3 and its suppliers and are protected by trade secret law.
*
* Distribution of this file or any portion thereof via any medium without the express permission of R3 is strictly prohibited.
*/
package net.corda.nodeapi.internal.serialization.amqp.custom
import net.corda.nodeapi.internal.serialization.amqp.CustomSerializer