abstract class BaseCommand : Runnable |
|
abstract class BaseServiceCommand : BaseCommand |
|
open class ConfigFilePathArgsParser : Validated |
|
class CrlUtilsTest |
|
class ExponentialBackOffTimer : Timer
Extension of the Java Timer util class that schedules tasks with exponential backoff, as well as the ability to cancel the currently running task as well as future scheduled tasks. It also enables asynchronous cancellation |
|
class HsmX509UtilitiesTest |
|
class IllegalSeedArgument |
|
class KeystoreFilePathArgsParser |
|
class LoggingLevelConverter |
|
class NetworkServicesErrorWithCode |
|
class NetworkServicesUncaughtExceptionHandler : UncaughtExceptionHandler |
|
data class Revocation |
|
abstract class ServiceCommand : BaseServiceCommand |
|
enum class SupportedCrlReasons |
|
class UtilsTest |
|
interface Validated |
|
class VersionProvider
Custom version printing when command is called with --version or -V flag. |
|
class WorkingDirConfigFilePathArgsParser : ConfigFilePathArgsParser |
const val CORDA_NETWORK_MAP: String |
|
val DUMMY_CERTIFICATE_REVOCATION: Revocation |
|
const val NETWORK_ROOT_TRUSTSTORE_FILENAME: String |
fun buildCertChainForHSM(certificateAlias: String, keyStore: KeyStore, certificatesStores: Collection<<ERROR CLASS>>, ctx: <ERROR CLASS>): List<X509Certificate>
The method assumes that the certificates store has been built using the HSM. In this case, as certificate chains larger than 1 are not supported, the key store should always contain the initial certificate. There are two scenarios: fun buildCertChainForHSM(certificateAlias: String, keyStore: KeyStore, certificatesStore: <ERROR CLASS>?, ctx: <ERROR CLASS>): List<X509Certificate>
Overload for the buildCertChainForLocal |
|
fun buildCertChainForLocal(certificateAlias: String, certificatesStores: Collection<<ERROR CLASS>>, ctx: <ERROR CLASS>): List<X509Certificate>
This method assumes that the certificates store has been built locally. This will result in two possible scenarios: fun buildCertChainForLocal(certificateAlias: String, certificatesStore: <ERROR CLASS>, ctx: <ERROR CLASS>): List<X509Certificate>
Overload for the buildCertChainForLocal |
|
fun buildRemainingCertChain(currentCertificate: X509Certificate, certificatesStores: Collection<<ERROR CLASS>>): List<X509Certificate> |
|
fun <R : Runnable> commandLineRunExitOnError(runnable: R, vararg args: String): Unit |
|
fun createSignedCrl(signer: AuthenticatedSigner, endpointUrl: URL, nextUpdateInterval: Duration, includeInCrl: Collection<Revocation>, indirectIssuingPoint: Boolean = false): X509CRL |
|
fun executeTaskWithBackOff(executor: ScheduledExecutorService = Executors.newScheduledThreadPool(1), maxAttempts: Int? = null, initialRetryDelayMillis: Long, taskDescription: String, ctx: <ERROR CLASS>, task: () -> Unit): Unit
Attempts a single execution of the given task, and retrying with an exponential backoff strategy if execution fails. An error is logged upon every failure but no exceptions are thrown. |
|
fun <ERROR CLASS>.getCertRole(): <ERROR CLASS>
Helper method to extract cert role from certificate signing request. Default to NODE_CA if not exist for backward compatibility. |
|
fun getVersionString(): Array<String> |
|
fun scheduleRetryingTask(taskDescription: String, taskExecutionInterval: Long, timeoutMillis: Long, ctx: <ERROR CLASS>, maxRetries: Int? = null, maxBackoffTimeMillis: Long? = null, task: () -> Unit): ExponentialBackOffTimer
Schedules a task to execute every taskExecutionInterval, with each failed execution using a retrying exponential backoff strategy. After a given execution has succeeded then the next execution (taskExecutionInterval after the first attempt) will continue as normal, regardless of the number of retries that the previous attempt had. |
|
fun toTableFormat(columnHeaders: List<String>, rowValues: List<List<String>>, headerSeparator: Boolean = false): List<String>
Used to display nicely formatted tables. Takes a set of columnHeaders and rowValues and returns the list of padded row strings, with correct spacing, that can be printed to console. |
|
fun validateCertificateRole(certificate: X509Certificate, expectedRole: <ERROR CLASS>?, serviceName: String): Unit |