mirror of
https://github.com/corda/corda.git
synced 2025-06-19 15:43:52 +00:00
Adding CRL signing (#528)
* Adding CRL signing * Adding CRL * Addressing review comments * Address review comments
This commit is contained in:
@ -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."
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
|
Reference in New Issue
Block a user