diff --git a/.ci/api-current.txt b/.ci/api-current.txt index ceeb3cf6e8..20555b2df8 100644 --- a/.ci/api-current.txt +++ b/.ci/api-current.txt @@ -14,6 +14,8 @@ public void setMessage(String) public void setOriginalExceptionClassName(String) ## +public @interface net.corda.core.CordaInternal +## public final class net.corda.core.CordaOID extends java.lang.Object @org.jetbrains.annotations.NotNull public static final String CORDA_PLATFORM = "1.3.6.1.4.1.50530.1" public static final net.corda.core.CordaOID INSTANCE @@ -96,21 +98,21 @@ public static final class net.corda.core.context.Actor$Companion extends java.la public String toString() ## @net.corda.core.serialization.CordaSerializable public final class net.corda.core.context.InvocationContext extends java.lang.Object - public (net.corda.core.context.Origin, net.corda.core.context.Trace, net.corda.core.context.Actor, net.corda.core.context.Trace, net.corda.core.context.Actor) - @org.jetbrains.annotations.NotNull public final net.corda.core.context.Origin component1() + public (net.corda.core.context.InvocationOrigin, net.corda.core.context.Trace, net.corda.core.context.Actor, net.corda.core.context.Trace, net.corda.core.context.Actor) + @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationOrigin component1() @org.jetbrains.annotations.NotNull public final net.corda.core.context.Trace component2() @org.jetbrains.annotations.Nullable public final net.corda.core.context.Actor component3() @org.jetbrains.annotations.Nullable public final net.corda.core.context.Trace component4() @org.jetbrains.annotations.Nullable public final net.corda.core.context.Actor component5() - @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationContext copy(net.corda.core.context.Origin, net.corda.core.context.Trace, net.corda.core.context.Actor, net.corda.core.context.Trace, net.corda.core.context.Actor) + @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationContext copy(net.corda.core.context.InvocationOrigin, net.corda.core.context.Trace, net.corda.core.context.Actor, net.corda.core.context.Trace, net.corda.core.context.Actor) public boolean equals(Object) @org.jetbrains.annotations.Nullable public final net.corda.core.context.Actor getActor() @org.jetbrains.annotations.Nullable public final net.corda.core.context.Trace getExternalTrace() @org.jetbrains.annotations.Nullable public final net.corda.core.context.Actor getImpersonatedActor() - @org.jetbrains.annotations.NotNull public final net.corda.core.context.Origin getOrigin() + @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationOrigin getOrigin() @org.jetbrains.annotations.NotNull public final net.corda.core.context.Trace getTrace() public int hashCode() - @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public static final net.corda.core.context.InvocationContext newInstance(net.corda.core.context.Origin, net.corda.core.context.Trace, net.corda.core.context.Actor, net.corda.core.context.Trace, net.corda.core.context.Actor) + @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public static final net.corda.core.context.InvocationContext newInstance(net.corda.core.context.InvocationOrigin, net.corda.core.context.Trace, net.corda.core.context.Actor, net.corda.core.context.Trace, net.corda.core.context.Actor) @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public static final net.corda.core.context.InvocationContext peer(net.corda.core.identity.CordaX500Name, net.corda.core.context.Trace, net.corda.core.context.Trace, net.corda.core.context.Actor) @org.jetbrains.annotations.NotNull public final java.security.Principal principal() @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public static final net.corda.core.context.InvocationContext rpc(net.corda.core.context.Actor, net.corda.core.context.Trace, net.corda.core.context.Trace, net.corda.core.context.Actor) @@ -121,49 +123,49 @@ public static final class net.corda.core.context.Actor$Companion extends java.la public static final net.corda.core.context.InvocationContext$Companion Companion ## public static final class net.corda.core.context.InvocationContext$Companion extends java.lang.Object - @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationContext newInstance(net.corda.core.context.Origin, net.corda.core.context.Trace, net.corda.core.context.Actor, net.corda.core.context.Trace, net.corda.core.context.Actor) + @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationContext newInstance(net.corda.core.context.InvocationOrigin, net.corda.core.context.Trace, net.corda.core.context.Actor, net.corda.core.context.Trace, net.corda.core.context.Actor) @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationContext peer(net.corda.core.identity.CordaX500Name, net.corda.core.context.Trace, net.corda.core.context.Trace, net.corda.core.context.Actor) @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationContext rpc(net.corda.core.context.Actor, net.corda.core.context.Trace, net.corda.core.context.Trace, net.corda.core.context.Actor) @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationContext scheduled(net.corda.core.contracts.ScheduledStateRef, net.corda.core.context.Trace, net.corda.core.context.Trace) @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationContext service(String, net.corda.core.identity.CordaX500Name, net.corda.core.context.Trace, net.corda.core.context.Trace) @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationContext shell(net.corda.core.context.Trace, net.corda.core.context.Trace) ## -@net.corda.core.serialization.CordaSerializable public abstract class net.corda.core.context.Origin extends java.lang.Object +@net.corda.core.serialization.CordaSerializable public abstract class net.corda.core.context.InvocationOrigin extends java.lang.Object @org.jetbrains.annotations.NotNull public abstract java.security.Principal principal() ## -@net.corda.core.serialization.CordaSerializable public static final class net.corda.core.context.Origin$Peer extends net.corda.core.context.Origin +@net.corda.core.serialization.CordaSerializable public static final class net.corda.core.context.InvocationOrigin$Peer extends net.corda.core.context.InvocationOrigin public (net.corda.core.identity.CordaX500Name) @org.jetbrains.annotations.NotNull public final net.corda.core.identity.CordaX500Name component1() - @org.jetbrains.annotations.NotNull public final net.corda.core.context.Origin$Peer copy(net.corda.core.identity.CordaX500Name) + @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationOrigin$Peer copy(net.corda.core.identity.CordaX500Name) public boolean equals(Object) @org.jetbrains.annotations.NotNull public final net.corda.core.identity.CordaX500Name getParty() public int hashCode() @org.jetbrains.annotations.NotNull public java.security.Principal principal() public String toString() ## -@net.corda.core.serialization.CordaSerializable public static final class net.corda.core.context.Origin$RPC extends net.corda.core.context.Origin +@net.corda.core.serialization.CordaSerializable public static final class net.corda.core.context.InvocationOrigin$RPC extends net.corda.core.context.InvocationOrigin public (net.corda.core.context.Actor) - @org.jetbrains.annotations.NotNull public final net.corda.core.context.Origin$RPC copy(net.corda.core.context.Actor) + @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationOrigin$RPC copy(net.corda.core.context.Actor) public boolean equals(Object) public int hashCode() @org.jetbrains.annotations.NotNull public java.security.Principal principal() public String toString() ## -@net.corda.core.serialization.CordaSerializable public static final class net.corda.core.context.Origin$Scheduled extends net.corda.core.context.Origin +@net.corda.core.serialization.CordaSerializable public static final class net.corda.core.context.InvocationOrigin$Scheduled extends net.corda.core.context.InvocationOrigin public (net.corda.core.contracts.ScheduledStateRef) @org.jetbrains.annotations.NotNull public final net.corda.core.contracts.ScheduledStateRef component1() - @org.jetbrains.annotations.NotNull public final net.corda.core.context.Origin$Scheduled copy(net.corda.core.contracts.ScheduledStateRef) + @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationOrigin$Scheduled copy(net.corda.core.contracts.ScheduledStateRef) public boolean equals(Object) @org.jetbrains.annotations.NotNull public final net.corda.core.contracts.ScheduledStateRef getScheduledState() public int hashCode() @org.jetbrains.annotations.NotNull public java.security.Principal principal() public String toString() ## -@net.corda.core.serialization.CordaSerializable public static final class net.corda.core.context.Origin$Service extends net.corda.core.context.Origin +@net.corda.core.serialization.CordaSerializable public static final class net.corda.core.context.InvocationOrigin$Service extends net.corda.core.context.InvocationOrigin public (String, net.corda.core.identity.CordaX500Name) @org.jetbrains.annotations.NotNull public final String component1() @org.jetbrains.annotations.NotNull public final net.corda.core.identity.CordaX500Name component2() - @org.jetbrains.annotations.NotNull public final net.corda.core.context.Origin$Service copy(String, net.corda.core.identity.CordaX500Name) + @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationOrigin$Service copy(String, net.corda.core.identity.CordaX500Name) public boolean equals(Object) @org.jetbrains.annotations.NotNull public final net.corda.core.identity.CordaX500Name getOwningLegalIdentity() @org.jetbrains.annotations.NotNull public final String getServiceClassName() @@ -171,9 +173,9 @@ public static final class net.corda.core.context.InvocationContext$Companion ext @org.jetbrains.annotations.NotNull public java.security.Principal principal() public String toString() ## -@net.corda.core.serialization.CordaSerializable public static final class net.corda.core.context.Origin$Shell extends net.corda.core.context.Origin +@net.corda.core.serialization.CordaSerializable public static final class net.corda.core.context.InvocationOrigin$Shell extends net.corda.core.context.InvocationOrigin @org.jetbrains.annotations.NotNull public java.security.Principal principal() - public static final net.corda.core.context.Origin$Shell INSTANCE + public static final net.corda.core.context.InvocationOrigin$Shell INSTANCE ## @net.corda.core.serialization.CordaSerializable public final class net.corda.core.context.Trace extends java.lang.Object public (net.corda.core.context.Trace$InvocationId, net.corda.core.context.Trace$SessionId) @@ -278,6 +280,7 @@ public static final class net.corda.core.contracts.AmountTransfer$Companion exte @net.corda.core.serialization.CordaSerializable public interface net.corda.core.contracts.Attachment extends net.corda.core.contracts.NamedByHash public abstract void extractFile(String, java.io.OutputStream) @org.jetbrains.annotations.NotNull public abstract List getSigners() + public abstract int getSize() @org.jetbrains.annotations.NotNull public abstract java.io.InputStream open() @org.jetbrains.annotations.NotNull public abstract jar.JarInputStream openAsJAR() ## @@ -345,6 +348,7 @@ public final class net.corda.core.contracts.ComponentGroupEnum extends java.lang @org.jetbrains.annotations.NotNull public final String getContract() @org.jetbrains.annotations.NotNull public net.corda.core.crypto.SecureHash getId() @org.jetbrains.annotations.NotNull public List getSigners() + public int getSize() @org.jetbrains.annotations.NotNull public java.io.InputStream open() @org.jetbrains.annotations.NotNull public jar.JarInputStream openAsJAR() ## @@ -354,6 +358,8 @@ public final class net.corda.core.contracts.ComponentGroupEnum extends java.lang public final class net.corda.core.contracts.ContractsDSL extends java.lang.Object @org.jetbrains.annotations.NotNull public static final net.corda.core.contracts.CommandWithParties requireSingleCommand(Collection, Class) public static final Object requireThat(kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public static final List select(Collection, Class, java.security.PublicKey, net.corda.core.identity.AbstractParty) + @org.jetbrains.annotations.NotNull public static final List select(Collection, Class, Collection, Collection) ## @net.corda.core.serialization.CordaSerializable public interface net.corda.core.contracts.FungibleAsset extends net.corda.core.contracts.OwnableState @org.jetbrains.annotations.NotNull public abstract net.corda.core.contracts.Amount getAmount() @@ -1010,8 +1016,10 @@ public final class net.corda.core.crypto.SignatureScheme extends java.lang.Objec ## @net.corda.core.serialization.CordaSerializable public final class net.corda.core.crypto.TransactionSignature extends net.corda.core.crypto.DigitalSignature public (byte[], java.security.PublicKey, net.corda.core.crypto.SignatureMetadata) + public (byte[], java.security.PublicKey, net.corda.core.crypto.SignatureMetadata, net.corda.core.crypto.PartialMerkleTree) public boolean equals(Object) @org.jetbrains.annotations.NotNull public final java.security.PublicKey getBy() + @org.jetbrains.annotations.Nullable public final net.corda.core.crypto.PartialMerkleTree getPartialMerkleTree() @org.jetbrains.annotations.NotNull public final net.corda.core.crypto.SignatureMetadata getSignatureMetadata() public int hashCode() public final boolean isValid(net.corda.core.crypto.SecureHash) @@ -1172,6 +1180,7 @@ public static final class net.corda.core.flows.FinalityFlow$Companion extends ja public String toString() ## @net.corda.core.serialization.CordaSerializable public abstract class net.corda.core.flows.FlowInitiator extends java.lang.Object implements java.security.Principal + @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationContext getInvocationContext() ## @net.corda.core.serialization.CordaSerializable public static final class net.corda.core.flows.FlowInitiator$Peer extends net.corda.core.flows.FlowInitiator public (net.corda.core.identity.Party) @@ -1229,7 +1238,7 @@ public abstract class net.corda.core.flows.FlowLogic extends java.lang.Object @org.jetbrains.annotations.Nullable public net.corda.core.utilities.ProgressTracker getProgressTracker() @org.jetbrains.annotations.NotNull public final net.corda.core.flows.StateMachineRunId getRunId() @org.jetbrains.annotations.NotNull public final net.corda.core.node.ServiceHub getServiceHub() - @org.jetbrains.annotations.NotNull public final net.corda.core.internal.FlowStateMachine getStateMachine() + @net.corda.core.CordaInternal @org.jetbrains.annotations.NotNull public final net.corda.core.internal.FlowStateMachine getStateMachine() @co.paralleluniverse.fibers.Suspendable @org.jetbrains.annotations.NotNull public final net.corda.core.flows.FlowSession initiateFlow(net.corda.core.identity.Party) @co.paralleluniverse.fibers.Suspendable public final void persistFlowStackSnapshot() @co.paralleluniverse.fibers.Suspendable @org.jetbrains.annotations.NotNull public List receiveAll(Class, List) @@ -1237,7 +1246,7 @@ public abstract class net.corda.core.flows.FlowLogic extends java.lang.Object @co.paralleluniverse.fibers.Suspendable @org.jetbrains.annotations.NotNull public Map receiveAllMap(Map) @co.paralleluniverse.fibers.Suspendable @org.jetbrains.annotations.NotNull public Map receiveAllMap(Map, boolean) public final void recordAuditEvent(String, String, Map) - public final void setStateMachine(net.corda.core.internal.FlowStateMachine) + @net.corda.core.CordaInternal public final void setStateMachine(net.corda.core.internal.FlowStateMachine) @co.paralleluniverse.fibers.Suspendable @kotlin.jvm.JvmStatic public static final void sleep(java.time.Duration) @co.paralleluniverse.fibers.Suspendable @kotlin.jvm.JvmStatic public static final void sleep(java.time.Duration, boolean) @co.paralleluniverse.fibers.Suspendable public Object subFlow(net.corda.core.flows.FlowLogic) @@ -1256,6 +1265,7 @@ public static final class net.corda.core.flows.FlowLogic$Companion extends java. @net.corda.core.serialization.CordaSerializable @net.corda.core.DoNotImplement public interface net.corda.core.flows.FlowLogicRef ## @net.corda.core.DoNotImplement public interface net.corda.core.flows.FlowLogicRefFactory + @org.jetbrains.annotations.NotNull public abstract net.corda.core.flows.FlowLogic toFlowLogic(net.corda.core.flows.FlowLogicRef) ## @net.corda.core.DoNotImplement public abstract class net.corda.core.flows.FlowSession extends java.lang.Object public () @@ -1322,9 +1332,30 @@ public @interface net.corda.core.flows.InitiatingFlow public int hashCode() @org.jetbrains.annotations.NotNull public String toString() ## +@net.corda.core.serialization.CordaSerializable public static final class net.corda.core.flows.NotaryError$General extends net.corda.core.flows.NotaryError + public (String) + @org.jetbrains.annotations.NotNull public final String component1() + @org.jetbrains.annotations.NotNull public final net.corda.core.flows.NotaryError$General copy(String) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final String getCause() + public int hashCode() + @org.jetbrains.annotations.NotNull public String toString() +## @net.corda.core.serialization.CordaSerializable public static final class net.corda.core.flows.NotaryError$TimeWindowInvalid extends net.corda.core.flows.NotaryError + public (java.time.Instant, net.corda.core.contracts.TimeWindow) + @org.jetbrains.annotations.NotNull public final java.time.Instant component1() + @org.jetbrains.annotations.NotNull public final net.corda.core.contracts.TimeWindow component2() + @org.jetbrains.annotations.NotNull public final net.corda.core.flows.NotaryError$TimeWindowInvalid copy(java.time.Instant, net.corda.core.contracts.TimeWindow) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final java.time.Instant getCurrentTime() + @org.jetbrains.annotations.NotNull public final net.corda.core.contracts.TimeWindow getTxTimeWindow() + public int hashCode() + @org.jetbrains.annotations.NotNull public String toString() + public static final net.corda.core.flows.NotaryError$TimeWindowInvalid$Companion Companion @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull public static final net.corda.core.flows.NotaryError$TimeWindowInvalid INSTANCE ## +public static final class net.corda.core.flows.NotaryError$TimeWindowInvalid$Companion extends java.lang.Object +## @net.corda.core.serialization.CordaSerializable public static final class net.corda.core.flows.NotaryError$TransactionInvalid extends net.corda.core.flows.NotaryError public (Throwable) @org.jetbrains.annotations.NotNull public final Throwable component1() @@ -1348,7 +1379,12 @@ public final class net.corda.core.flows.NotaryFlow extends java.lang.Object public (net.corda.core.transactions.SignedTransaction) public (net.corda.core.transactions.SignedTransaction, net.corda.core.utilities.ProgressTracker) @co.paralleluniverse.fibers.Suspendable @org.jetbrains.annotations.NotNull public List call() + @org.jetbrains.annotations.NotNull protected final net.corda.core.identity.Party checkTransaction() @org.jetbrains.annotations.NotNull public net.corda.core.utilities.ProgressTracker getProgressTracker() + @co.paralleluniverse.fibers.Suspendable @org.jetbrains.annotations.NotNull protected final net.corda.core.utilities.UntrustworthyData notarise(net.corda.core.identity.Party) + @co.paralleluniverse.fibers.Suspendable @org.jetbrains.annotations.NotNull protected net.corda.core.utilities.UntrustworthyData sendAndReceiveNonValidating(net.corda.core.identity.Party, net.corda.core.flows.FlowSession) + @co.paralleluniverse.fibers.Suspendable @org.jetbrains.annotations.NotNull protected net.corda.core.utilities.UntrustworthyData sendAndReceiveValidating(net.corda.core.flows.FlowSession) + @org.jetbrains.annotations.NotNull protected final List validateResponse(net.corda.core.utilities.UntrustworthyData, net.corda.core.identity.Party) public static final net.corda.core.flows.NotaryFlow$Client$Companion Companion ## public static final class net.corda.core.flows.NotaryFlow$Client$Companion extends java.lang.Object @@ -1541,6 +1577,7 @@ public final class net.corda.core.identity.IdentityUtils extends java.lang.Objec @net.corda.core.serialization.CordaSerializable public interface net.corda.core.messaging.AllPossibleRecipients extends net.corda.core.messaging.MessageRecipients ## @net.corda.core.DoNotImplement public interface net.corda.core.messaging.CordaRPCOps extends net.corda.core.messaging.RPCOps + public abstract void acceptNewNetworkParameters(net.corda.core.crypto.SecureHash) public abstract void addVaultTransactionNote(net.corda.core.crypto.SecureHash, String) public abstract boolean attachmentExists(net.corda.core.crypto.SecureHash) public abstract void clearNetworkMapCache() @@ -1552,6 +1589,7 @@ public final class net.corda.core.identity.IdentityUtils extends java.lang.Objec public abstract boolean killFlow(net.corda.core.flows.StateMachineRunId) @net.corda.core.messaging.RPCReturnsObservables @org.jetbrains.annotations.NotNull public abstract net.corda.core.messaging.DataFeed networkMapFeed() @org.jetbrains.annotations.NotNull public abstract List networkMapSnapshot() + @net.corda.core.messaging.RPCReturnsObservables @org.jetbrains.annotations.NotNull public abstract net.corda.core.messaging.DataFeed networkParametersFeed() @org.jetbrains.annotations.NotNull public abstract net.corda.core.node.NodeInfo nodeInfo() @org.jetbrains.annotations.Nullable public abstract net.corda.core.node.NodeInfo nodeInfoFromParty(net.corda.core.identity.AbstractParty) @org.jetbrains.annotations.NotNull public abstract List notaryIdentities() @@ -1642,6 +1680,21 @@ public final class net.corda.core.messaging.CordaRPCOpsKt extends java.lang.Obje ## @net.corda.core.serialization.CordaSerializable public interface net.corda.core.messaging.MessageRecipients ## +@net.corda.core.serialization.CordaSerializable public final class net.corda.core.messaging.ParametersUpdateInfo extends java.lang.Object + public (net.corda.core.crypto.SecureHash, net.corda.core.node.NetworkParameters, String, java.time.Instant) + @org.jetbrains.annotations.NotNull public final net.corda.core.crypto.SecureHash component1() + @org.jetbrains.annotations.NotNull public final net.corda.core.node.NetworkParameters component2() + @org.jetbrains.annotations.NotNull public final String component3() + @org.jetbrains.annotations.NotNull public final java.time.Instant component4() + @org.jetbrains.annotations.NotNull public final net.corda.core.messaging.ParametersUpdateInfo copy(net.corda.core.crypto.SecureHash, net.corda.core.node.NetworkParameters, String, java.time.Instant) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final String getDescription() + @org.jetbrains.annotations.NotNull public final net.corda.core.crypto.SecureHash getHash() + @org.jetbrains.annotations.NotNull public final net.corda.core.node.NetworkParameters getParameters() + @org.jetbrains.annotations.NotNull public final java.time.Instant getUpdateDeadline() + public int hashCode() + public String toString() +## @net.corda.core.DoNotImplement public interface net.corda.core.messaging.RPCOps public abstract int getProtocolVersion() ## @@ -1656,15 +1709,14 @@ public @interface net.corda.core.messaging.RPCReturnsObservables @org.jetbrains.annotations.NotNull public final String component2() @org.jetbrains.annotations.NotNull public final net.corda.core.flows.FlowInitiator component3() @org.jetbrains.annotations.Nullable public final net.corda.core.messaging.DataFeed component4() - @org.jetbrains.annotations.Nullable public final net.corda.core.context.InvocationContext component5() - @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationContext context() + @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationContext component5() @org.jetbrains.annotations.NotNull public final net.corda.core.messaging.StateMachineInfo copy(net.corda.core.flows.StateMachineRunId, String, net.corda.core.flows.FlowInitiator, net.corda.core.messaging.DataFeed) @org.jetbrains.annotations.NotNull public final net.corda.core.messaging.StateMachineInfo copy(net.corda.core.flows.StateMachineRunId, String, net.corda.core.flows.FlowInitiator, net.corda.core.messaging.DataFeed, net.corda.core.context.InvocationContext) public boolean equals(Object) - @org.jetbrains.annotations.Nullable public final net.corda.core.context.InvocationContext getContext() @org.jetbrains.annotations.NotNull public final String getFlowLogicClassName() @org.jetbrains.annotations.NotNull public final net.corda.core.flows.StateMachineRunId getId() @org.jetbrains.annotations.NotNull public final net.corda.core.flows.FlowInitiator getInitiator() + @org.jetbrains.annotations.NotNull public final net.corda.core.context.InvocationContext getInvocationContext() @org.jetbrains.annotations.Nullable public final net.corda.core.messaging.DataFeed getProgressTrackerStepAndUpdates() public int hashCode() @org.jetbrains.annotations.NotNull public String toString() @@ -1708,6 +1760,25 @@ public @interface net.corda.core.messaging.RPCReturnsObservables @org.jetbrains.annotations.NotNull public abstract net.corda.core.messaging.FlowHandle startFlow(net.corda.core.flows.FlowLogic) @org.jetbrains.annotations.NotNull public abstract net.corda.core.messaging.FlowProgressHandle startTrackedFlow(net.corda.core.flows.FlowLogic) ## +@net.corda.core.serialization.CordaSerializable public final class net.corda.core.node.NetworkParameters extends java.lang.Object + public (int, List, int, int, java.time.Instant, int) + public final int component1() + @org.jetbrains.annotations.NotNull public final List component2() + public final int component3() + public final int component4() + @org.jetbrains.annotations.NotNull public final java.time.Instant component5() + public final int component6() + @org.jetbrains.annotations.NotNull public final net.corda.core.node.NetworkParameters copy(int, List, int, int, java.time.Instant, int) + public boolean equals(Object) + public final int getEpoch() + public final int getMaxMessageSize() + public final int getMaxTransactionSize() + public final int getMinimumPlatformVersion() + @org.jetbrains.annotations.NotNull public final java.time.Instant getModifiedTime() + @org.jetbrains.annotations.NotNull public final List getNotaries() + public int hashCode() + public String toString() +## @net.corda.core.serialization.CordaSerializable public final class net.corda.core.node.NodeInfo extends java.lang.Object public (List, List, int, long) @org.jetbrains.annotations.NotNull public final List component1() @@ -1727,6 +1798,17 @@ public @interface net.corda.core.messaging.RPCReturnsObservables public final boolean isLegalIdentity(net.corda.core.identity.Party) public String toString() ## +@net.corda.core.serialization.CordaSerializable public final class net.corda.core.node.NotaryInfo extends java.lang.Object + public (net.corda.core.identity.Party, boolean) + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.Party component1() + public final boolean component2() + @org.jetbrains.annotations.NotNull public final net.corda.core.node.NotaryInfo copy(net.corda.core.identity.Party, boolean) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.Party getIdentity() + public final boolean getValidating() + public int hashCode() + public String toString() +## @net.corda.core.DoNotImplement public interface net.corda.core.node.ServiceHub extends net.corda.core.node.ServicesForResolution @org.jetbrains.annotations.NotNull public abstract net.corda.core.transactions.SignedTransaction addSignature(net.corda.core.transactions.SignedTransaction) @org.jetbrains.annotations.NotNull public abstract net.corda.core.transactions.SignedTransaction addSignature(net.corda.core.transactions.SignedTransaction, java.security.PublicKey) @@ -1747,6 +1829,7 @@ public @interface net.corda.core.messaging.RPCReturnsObservables public abstract void recordTransactions(Iterable) public abstract void recordTransactions(net.corda.core.node.StatesToRecord, Iterable) public abstract void recordTransactions(boolean, Iterable) + public abstract void registerUnloadHandler(kotlin.jvm.functions.Function0) @org.jetbrains.annotations.NotNull public abstract net.corda.core.transactions.SignedTransaction signInitialTransaction(net.corda.core.transactions.TransactionBuilder) @org.jetbrains.annotations.NotNull public abstract net.corda.core.transactions.SignedTransaction signInitialTransaction(net.corda.core.transactions.TransactionBuilder, Iterable) @org.jetbrains.annotations.NotNull public abstract net.corda.core.transactions.SignedTransaction signInitialTransaction(net.corda.core.transactions.TransactionBuilder, java.security.PublicKey) @@ -1866,11 +1949,13 @@ public @interface net.corda.core.node.services.CordaService @org.jetbrains.annotations.NotNull public abstract net.corda.core.node.ServiceHub getServices() public abstract void start() public abstract void stop() + @kotlin.jvm.JvmStatic public static final void validateTimeWindow(java.time.Clock, net.corda.core.contracts.TimeWindow) public static final net.corda.core.node.services.NotaryService$Companion Companion @org.jetbrains.annotations.NotNull public static final String ID_PREFIX = "corda.notary." ## public static final class net.corda.core.node.services.NotaryService$Companion extends java.lang.Object @kotlin.Deprecated @org.jetbrains.annotations.NotNull public final String constructId(boolean, boolean, boolean, boolean) + @kotlin.jvm.JvmStatic public final void validateTimeWindow(java.time.Clock, net.corda.core.contracts.TimeWindow) ## public abstract class net.corda.core.node.services.PartyInfo extends java.lang.Object @org.jetbrains.annotations.NotNull public abstract net.corda.core.identity.Party getParty() @@ -3133,18 +3218,22 @@ public final class net.corda.core.utilities.ByteArrays extends java.lang.Object @net.corda.core.serialization.CordaSerializable public abstract class net.corda.core.utilities.ByteSequence extends java.lang.Object implements java.lang.Comparable public int compareTo(net.corda.core.utilities.ByteSequence) @org.jetbrains.annotations.NotNull public final net.corda.core.utilities.ByteSequence copy() + @org.jetbrains.annotations.NotNull public final byte[] copyBytes() public boolean equals(Object) @org.jetbrains.annotations.NotNull public abstract byte[] getBytes() - public abstract int getOffset() - public abstract int getSize() + public final int getOffset() + public final int getSize() public int hashCode() @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public static final net.corda.core.utilities.ByteSequence of(byte[]) @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public static final net.corda.core.utilities.ByteSequence of(byte[], int) @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public static final net.corda.core.utilities.ByteSequence of(byte[], int, int) @org.jetbrains.annotations.NotNull public final java.io.ByteArrayInputStream open() + @org.jetbrains.annotations.NotNull public final java.nio.ByteBuffer putTo(java.nio.ByteBuffer) + @org.jetbrains.annotations.NotNull public final java.nio.ByteBuffer slice(int, int) @org.jetbrains.annotations.NotNull public final net.corda.core.utilities.ByteSequence subSequence(int, int) @org.jetbrains.annotations.NotNull public final net.corda.core.utilities.ByteSequence take(int) @org.jetbrains.annotations.NotNull public String toString() + public final void writeTo(java.io.OutputStream) public static final net.corda.core.utilities.ByteSequence$Companion Companion ## public static final class net.corda.core.utilities.ByteSequence$Companion extends java.lang.Object @@ -3259,8 +3348,6 @@ public static final class net.corda.core.utilities.NonEmptySet$iterator$1 extend @net.corda.core.serialization.CordaSerializable public class net.corda.core.utilities.OpaqueBytes extends net.corda.core.utilities.ByteSequence public (byte[]) @org.jetbrains.annotations.NotNull public final byte[] getBytes() - public int getOffset() - public int getSize() public static final net.corda.core.utilities.OpaqueBytes$Companion Companion ## public static final class net.corda.core.utilities.OpaqueBytes$Companion extends java.lang.Object @@ -3268,8 +3355,6 @@ public static final class net.corda.core.utilities.OpaqueBytes$Companion extends @net.corda.core.serialization.CordaSerializable public final class net.corda.core.utilities.OpaqueBytesSubSequence extends net.corda.core.utilities.ByteSequence public (byte[], int, int) @org.jetbrains.annotations.NotNull public byte[] getBytes() - public int getOffset() - public int getSize() ## @net.corda.core.serialization.CordaSerializable public final class net.corda.core.utilities.ProgressTracker extends java.lang.Object public final void endWithError(Throwable) @@ -3576,12 +3661,642 @@ public static final class net.corda.client.jackson.StringToMethodCallParser$Unpa public (String) @org.jetbrains.annotations.NotNull public final String getMethodName() ## +public final class net.corda.testing.driver.Driver extends java.lang.Object + public static final Object driver(net.corda.testing.driver.DriverParameters, kotlin.jvm.functions.Function1) + public static final Object driver(net.corda.testing.driver.DriverParameters, boolean, java.nio.file.Path, net.corda.testing.driver.PortAllocation, net.corda.testing.driver.PortAllocation, Map, boolean, boolean, boolean, boolean, List, List, net.corda.testing.driver.JmxPolicy, int, kotlin.jvm.functions.Function1) +## +@net.corda.core.DoNotImplement public interface net.corda.testing.driver.DriverDSL + @org.jetbrains.annotations.NotNull public abstract java.nio.file.Path baseDirectory(net.corda.core.identity.CordaX500Name) + @org.jetbrains.annotations.NotNull public abstract net.corda.testing.driver.NotaryHandle getDefaultNotaryHandle() + @org.jetbrains.annotations.NotNull public abstract net.corda.core.identity.Party getDefaultNotaryIdentity() + @org.jetbrains.annotations.NotNull public abstract net.corda.core.concurrent.CordaFuture getDefaultNotaryNode() + @org.jetbrains.annotations.NotNull public abstract List getNotaryHandles() + @org.jetbrains.annotations.NotNull public abstract net.corda.core.concurrent.CordaFuture startNode(net.corda.testing.driver.NodeParameters) + @org.jetbrains.annotations.NotNull public abstract net.corda.core.concurrent.CordaFuture startNode(net.corda.testing.driver.NodeParameters, net.corda.core.identity.CordaX500Name, List, net.corda.node.services.config.VerifierType, Map, Boolean, String) + @org.jetbrains.annotations.NotNull public abstract net.corda.core.concurrent.CordaFuture startWebserver(net.corda.testing.driver.NodeHandle) + @org.jetbrains.annotations.NotNull public abstract net.corda.core.concurrent.CordaFuture startWebserver(net.corda.testing.driver.NodeHandle, String) +## +public final class net.corda.testing.driver.DriverParameters extends java.lang.Object + public () + public (boolean, java.nio.file.Path, net.corda.testing.driver.PortAllocation, net.corda.testing.driver.PortAllocation, Map, boolean, boolean, boolean, boolean, List, List, net.corda.testing.driver.JmxPolicy, int) + public final boolean component1() + @org.jetbrains.annotations.NotNull public final List component10() + @org.jetbrains.annotations.NotNull public final List component11() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.JmxPolicy component12() + public final int component13() + @org.jetbrains.annotations.NotNull public final java.nio.file.Path component2() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.PortAllocation component3() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.PortAllocation component4() + @org.jetbrains.annotations.NotNull public final Map component5() + public final boolean component6() + public final boolean component7() + public final boolean component8() + public final boolean component9() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.DriverParameters copy(boolean, java.nio.file.Path, net.corda.testing.driver.PortAllocation, net.corda.testing.driver.PortAllocation, Map, boolean, boolean, boolean, boolean, List, List, net.corda.testing.driver.JmxPolicy, int) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.PortAllocation getDebugPortAllocation() + @org.jetbrains.annotations.NotNull public final java.nio.file.Path getDriverDirectory() + @org.jetbrains.annotations.NotNull public final List getExtraCordappPackagesToScan() + public final boolean getInitialiseSerialization() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.JmxPolicy getJmxPolicy() + public final int getMaxTransactionSize() + @org.jetbrains.annotations.NotNull public final List getNotarySpecs() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.PortAllocation getPortAllocation() + public final boolean getStartNodesInProcess() + @org.jetbrains.annotations.NotNull public final Map getSystemProperties() + public final boolean getUseTestClock() + public final boolean getWaitForAllNodesToFinish() + public int hashCode() + public final boolean isDebug() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.DriverParameters setDebugPortAllocation(net.corda.testing.driver.PortAllocation) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.DriverParameters setDriverDirectory(java.nio.file.Path) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.DriverParameters setExtraCordappPackagesToScan(List) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.DriverParameters setInitialiseSerialization(boolean) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.DriverParameters setIsDebug(boolean) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.DriverParameters setJmxPolicy(net.corda.testing.driver.JmxPolicy) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.DriverParameters setNotarySpecs(List) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.DriverParameters setPortAllocation(net.corda.testing.driver.PortAllocation) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.DriverParameters setStartNodesInProcess(boolean) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.DriverParameters setSystemProperties(Map) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.DriverParameters setUseTestClock(boolean) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.DriverParameters setWaitForAllNodesToFinish(boolean) + public String toString() +## +public final class net.corda.testing.driver.JmxPolicy extends java.lang.Object + public () + public (boolean, net.corda.testing.driver.PortAllocation) + public final boolean component1() + @org.jetbrains.annotations.Nullable public final net.corda.testing.driver.PortAllocation component2() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.JmxPolicy copy(boolean, net.corda.testing.driver.PortAllocation) + public boolean equals(Object) + @org.jetbrains.annotations.Nullable public final net.corda.testing.driver.PortAllocation getJmxHttpServerPortAllocation() + public final boolean getStartJmxHttpServer() + public int hashCode() + public String toString() +## +@net.corda.core.DoNotImplement public abstract class net.corda.testing.driver.NodeHandle extends java.lang.Object implements java.lang.AutoCloseable + public void close() + @org.jetbrains.annotations.NotNull public abstract net.corda.node.services.config.NodeConfiguration getConfiguration() + @org.jetbrains.annotations.NotNull public abstract net.corda.core.node.NodeInfo getNodeInfo() + @org.jetbrains.annotations.NotNull public abstract net.corda.core.messaging.CordaRPCOps getRpc() + public abstract boolean getUseHTTPS() + @org.jetbrains.annotations.NotNull public abstract net.corda.core.utilities.NetworkHostAndPort getWebAddress() + @org.jetbrains.annotations.NotNull public final net.corda.client.rpc.CordaRPCClient rpcClientToNode() + @org.jetbrains.annotations.NotNull public final net.corda.client.rpc.CordaRPCClient rpcClientToNode(net.corda.nodeapi.internal.config.SSLConfiguration) + public abstract void stop() +## +public static final class net.corda.testing.driver.NodeHandle$InProcess extends net.corda.testing.driver.NodeHandle + public (net.corda.core.node.NodeInfo, net.corda.core.messaging.CordaRPCOps, net.corda.node.services.config.NodeConfiguration, net.corda.core.utilities.NetworkHostAndPort, boolean, net.corda.node.internal.StartedNode, Thread, kotlin.jvm.functions.Function0) + @org.jetbrains.annotations.NotNull public final net.corda.core.node.NodeInfo component1() + @org.jetbrains.annotations.NotNull public final net.corda.core.messaging.CordaRPCOps component2() + @org.jetbrains.annotations.NotNull public final net.corda.node.services.config.NodeConfiguration component3() + @org.jetbrains.annotations.NotNull public final net.corda.core.utilities.NetworkHostAndPort component4() + public final boolean component5() + @org.jetbrains.annotations.NotNull public final net.corda.node.internal.StartedNode component6() + @org.jetbrains.annotations.NotNull public final Thread component7() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.NodeHandle$InProcess copy(net.corda.core.node.NodeInfo, net.corda.core.messaging.CordaRPCOps, net.corda.node.services.config.NodeConfiguration, net.corda.core.utilities.NetworkHostAndPort, boolean, net.corda.node.internal.StartedNode, Thread, kotlin.jvm.functions.Function0) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public net.corda.node.services.config.NodeConfiguration getConfiguration() + @org.jetbrains.annotations.NotNull public final net.corda.node.internal.StartedNode getNode() + @org.jetbrains.annotations.NotNull public net.corda.core.node.NodeInfo getNodeInfo() + @org.jetbrains.annotations.NotNull public final Thread getNodeThread() + @org.jetbrains.annotations.NotNull public net.corda.core.messaging.CordaRPCOps getRpc() + public boolean getUseHTTPS() + @org.jetbrains.annotations.NotNull public net.corda.core.utilities.NetworkHostAndPort getWebAddress() + public int hashCode() + public void stop() + public String toString() +## +public static final class net.corda.testing.driver.NodeHandle$OutOfProcess extends net.corda.testing.driver.NodeHandle + public (net.corda.core.node.NodeInfo, net.corda.core.messaging.CordaRPCOps, net.corda.node.services.config.NodeConfiguration, net.corda.core.utilities.NetworkHostAndPort, boolean, Integer, Process, kotlin.jvm.functions.Function0) + @org.jetbrains.annotations.NotNull public final net.corda.core.node.NodeInfo component1() + @org.jetbrains.annotations.NotNull public final net.corda.core.messaging.CordaRPCOps component2() + @org.jetbrains.annotations.NotNull public final net.corda.node.services.config.NodeConfiguration component3() + @org.jetbrains.annotations.NotNull public final net.corda.core.utilities.NetworkHostAndPort component4() + public final boolean component5() + @org.jetbrains.annotations.Nullable public final Integer component6() + @org.jetbrains.annotations.NotNull public final Process component7() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.NodeHandle$OutOfProcess copy(net.corda.core.node.NodeInfo, net.corda.core.messaging.CordaRPCOps, net.corda.node.services.config.NodeConfiguration, net.corda.core.utilities.NetworkHostAndPort, boolean, Integer, Process, kotlin.jvm.functions.Function0) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public net.corda.node.services.config.NodeConfiguration getConfiguration() + @org.jetbrains.annotations.Nullable public final Integer getDebugPort() + @org.jetbrains.annotations.NotNull public net.corda.core.node.NodeInfo getNodeInfo() + @org.jetbrains.annotations.NotNull public final Process getProcess() + @org.jetbrains.annotations.NotNull public net.corda.core.messaging.CordaRPCOps getRpc() + public boolean getUseHTTPS() + @org.jetbrains.annotations.NotNull public net.corda.core.utilities.NetworkHostAndPort getWebAddress() + public int hashCode() + public void stop() + public String toString() +## +public final class net.corda.testing.driver.NodeParameters extends java.lang.Object + public () + public (net.corda.core.identity.CordaX500Name, List, net.corda.node.services.config.VerifierType, Map, Boolean, String, String) + @org.jetbrains.annotations.Nullable public final net.corda.core.identity.CordaX500Name component1() + @org.jetbrains.annotations.NotNull public final List component2() + @org.jetbrains.annotations.NotNull public final net.corda.node.services.config.VerifierType component3() + @org.jetbrains.annotations.NotNull public final Map component4() + @org.jetbrains.annotations.Nullable public final Boolean component5() + @org.jetbrains.annotations.NotNull public final String component6() + @org.jetbrains.annotations.Nullable public final String component7() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.NodeParameters copy(net.corda.core.identity.CordaX500Name, List, net.corda.node.services.config.VerifierType, Map, Boolean, String, String) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final Map getCustomOverrides() + @org.jetbrains.annotations.Nullable public final String getLogLevel() + @org.jetbrains.annotations.NotNull public final String getMaximumHeapSize() + @org.jetbrains.annotations.Nullable public final net.corda.core.identity.CordaX500Name getProvidedName() + @org.jetbrains.annotations.NotNull public final List getRpcUsers() + @org.jetbrains.annotations.Nullable public final Boolean getStartInSameProcess() + @org.jetbrains.annotations.NotNull public final net.corda.node.services.config.VerifierType getVerifierType() + public int hashCode() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.NodeParameters setCustomerOverrides(Map) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.NodeParameters setMaximumHeapSize(String) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.NodeParameters setProvidedName(net.corda.core.identity.CordaX500Name) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.NodeParameters setRpcUsers(List) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.NodeParameters setStartInSameProcess(Boolean) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.NodeParameters setVerifierType(net.corda.node.services.config.VerifierType) + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.NodeParameters ssetLogLevel(String) + public String toString() +## +public final class net.corda.testing.driver.NotaryHandle extends java.lang.Object + public (net.corda.core.identity.Party, boolean, net.corda.core.concurrent.CordaFuture) + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.Party component1() + public final boolean component2() + @org.jetbrains.annotations.NotNull public final net.corda.core.concurrent.CordaFuture component3() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.NotaryHandle copy(net.corda.core.identity.Party, boolean, net.corda.core.concurrent.CordaFuture) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.Party getIdentity() + @org.jetbrains.annotations.NotNull public final net.corda.core.concurrent.CordaFuture getNodeHandles() + public final boolean getValidating() + public int hashCode() + public String toString() +## +@net.corda.core.DoNotImplement public abstract class net.corda.testing.driver.PortAllocation extends java.lang.Object + @org.jetbrains.annotations.NotNull public final net.corda.core.utilities.NetworkHostAndPort nextHostAndPort() + public abstract int nextPort() +## +public static final class net.corda.testing.driver.PortAllocation$Incremental extends net.corda.testing.driver.PortAllocation + public (int) + @org.jetbrains.annotations.NotNull public final concurrent.atomic.AtomicInteger getPortCounter() + public int nextPort() +## +public static final class net.corda.testing.driver.PortAllocation$RandomFree extends net.corda.testing.driver.PortAllocation + public int nextPort() + public static final net.corda.testing.driver.PortAllocation$RandomFree INSTANCE +## +public final class net.corda.testing.driver.WebserverHandle extends java.lang.Object + public (net.corda.core.utilities.NetworkHostAndPort, Process) + @org.jetbrains.annotations.NotNull public final net.corda.core.utilities.NetworkHostAndPort component1() + @org.jetbrains.annotations.NotNull public final Process component2() + @org.jetbrains.annotations.NotNull public final net.corda.testing.driver.WebserverHandle copy(net.corda.core.utilities.NetworkHostAndPort, Process) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final net.corda.core.utilities.NetworkHostAndPort getListenAddress() + @org.jetbrains.annotations.NotNull public final Process getProcess() + public int hashCode() + public String toString() +## +@net.corda.core.DoNotImplement public abstract class net.corda.testing.node.ClusterSpec extends java.lang.Object + public () + public abstract int getClusterSize() +## +public static final class net.corda.testing.node.ClusterSpec$Raft extends net.corda.testing.node.ClusterSpec + public (int) + public final int component1() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.ClusterSpec$Raft copy(int) + public boolean equals(Object) + public int getClusterSize() + public int hashCode() + public String toString() +## +@javax.annotation.concurrent.ThreadSafe public final class net.corda.testing.node.InMemoryMessagingNetwork extends net.corda.core.serialization.SingletonSerializeAsToken + public (boolean, net.corda.testing.node.InMemoryMessagingNetwork$ServicePeerAllocationStrategy, org.apache.activemq.artemis.utils.ReusableLatch) + @org.jetbrains.annotations.NotNull public synchronized final List getEndpoints() + @org.jetbrains.annotations.NotNull public final rx.Observable getReceivedMessages() + @org.jetbrains.annotations.NotNull public final rx.Observable getSentMessages() + @org.jetbrains.annotations.Nullable public final net.corda.testing.node.InMemoryMessagingNetwork$MessageTransfer pumpSend(boolean) + public final void stop() + public static final net.corda.testing.node.InMemoryMessagingNetwork$Companion Companion +## +public static final class net.corda.testing.node.InMemoryMessagingNetwork$Companion extends java.lang.Object +## +public static final class net.corda.testing.node.InMemoryMessagingNetwork$InMemoryMessage extends java.lang.Object implements net.corda.node.services.messaging.Message + public (String, net.corda.core.utilities.ByteSequence, net.corda.node.services.statemachine.DeduplicationId, java.time.Instant, String) + @org.jetbrains.annotations.NotNull public final String component1() + @org.jetbrains.annotations.NotNull public final net.corda.core.utilities.ByteSequence component2() + @org.jetbrains.annotations.NotNull public final net.corda.node.services.statemachine.DeduplicationId component3() + @org.jetbrains.annotations.NotNull public final java.time.Instant component4() + @org.jetbrains.annotations.Nullable public final String component5() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.InMemoryMessagingNetwork$InMemoryMessage copy(String, net.corda.core.utilities.ByteSequence, net.corda.node.services.statemachine.DeduplicationId, java.time.Instant, String) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public net.corda.core.utilities.ByteSequence getData() + @org.jetbrains.annotations.NotNull public java.time.Instant getDebugTimestamp() + @org.jetbrains.annotations.Nullable public String getSenderUUID() + @org.jetbrains.annotations.NotNull public String getTopic() + @org.jetbrains.annotations.NotNull public net.corda.node.services.statemachine.DeduplicationId getUniqueMessageId() + public int hashCode() + @org.jetbrains.annotations.NotNull public String toString() +## +public final class net.corda.testing.node.InMemoryMessagingNetwork$InMemoryMessaging$Handler extends java.lang.Object implements net.corda.node.services.messaging.MessageHandlerRegistration + public (net.corda.testing.node.InMemoryMessagingNetwork$InMemoryMessaging, String, kotlin.jvm.functions.Function3) + @org.jetbrains.annotations.NotNull public final kotlin.jvm.functions.Function3 getCallback() + @org.jetbrains.annotations.NotNull public final String getTopicSession() +## +public static final class net.corda.testing.node.InMemoryMessagingNetwork$InMemoryMessaging$pumpReceiveInternal$1$1$acknowledgeHandle$1 extends java.lang.Object implements net.corda.node.services.messaging.AcknowledgeHandle + public void acknowledge() + public void persistDeduplicationId() +## public static interface net.corda.testing.node.InMemoryMessagingNetwork$LatencyCalculator @org.jetbrains.annotations.NotNull public abstract java.time.Duration between(net.corda.core.messaging.SingleMessageRecipient, net.corda.core.messaging.SingleMessageRecipient) ## +@net.corda.core.serialization.CordaSerializable public static final class net.corda.testing.node.InMemoryMessagingNetwork$MessageTransfer extends java.lang.Object + public (net.corda.testing.node.InMemoryMessagingNetwork$PeerHandle, net.corda.node.services.messaging.Message, net.corda.core.messaging.MessageRecipients) + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.InMemoryMessagingNetwork$PeerHandle component1() + @org.jetbrains.annotations.NotNull public final net.corda.node.services.messaging.Message component2() + @org.jetbrains.annotations.NotNull public final net.corda.core.messaging.MessageRecipients component3() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.InMemoryMessagingNetwork$MessageTransfer copy(net.corda.testing.node.InMemoryMessagingNetwork$PeerHandle, net.corda.node.services.messaging.Message, net.corda.core.messaging.MessageRecipients) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final net.corda.node.services.messaging.Message getMessage() + @org.jetbrains.annotations.NotNull public final net.corda.core.messaging.MessageRecipients getRecipients() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.InMemoryMessagingNetwork$PeerHandle getSender() + public int hashCode() + @org.jetbrains.annotations.NotNull public String toString() +## +@net.corda.core.serialization.CordaSerializable public static final class net.corda.testing.node.InMemoryMessagingNetwork$PeerHandle extends java.lang.Object implements net.corda.core.messaging.SingleMessageRecipient + public (int, net.corda.core.identity.CordaX500Name) + public final int component1() + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.CordaX500Name component2() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.InMemoryMessagingNetwork$PeerHandle copy(int, net.corda.core.identity.CordaX500Name) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.CordaX500Name getDescription() + public final int getId() + public int hashCode() + @org.jetbrains.annotations.NotNull public String toString() +## +@net.corda.core.serialization.CordaSerializable public static final class net.corda.testing.node.InMemoryMessagingNetwork$ServiceHandle extends java.lang.Object implements net.corda.core.messaging.MessageRecipientGroup + public (net.corda.core.identity.Party) + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.Party component1() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.InMemoryMessagingNetwork$ServiceHandle copy(net.corda.core.identity.Party) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.Party getParty() + public int hashCode() + @org.jetbrains.annotations.NotNull public String toString() +## +@net.corda.core.DoNotImplement public abstract static class net.corda.testing.node.InMemoryMessagingNetwork$ServicePeerAllocationStrategy extends java.lang.Object + public abstract Object pickNext(net.corda.testing.node.InMemoryMessagingNetwork$ServiceHandle, List) +## +public static final class net.corda.testing.node.InMemoryMessagingNetwork$ServicePeerAllocationStrategy$Random extends net.corda.testing.node.InMemoryMessagingNetwork$ServicePeerAllocationStrategy + public () + public (SplittableRandom) + @org.jetbrains.annotations.NotNull public final SplittableRandom getRandom() + public Object pickNext(net.corda.testing.node.InMemoryMessagingNetwork$ServiceHandle, List) +## +public static final class net.corda.testing.node.InMemoryMessagingNetwork$ServicePeerAllocationStrategy$RoundRobin extends net.corda.testing.node.InMemoryMessagingNetwork$ServicePeerAllocationStrategy + public () + public Object pickNext(net.corda.testing.node.InMemoryMessagingNetwork$ServiceHandle, List) +## +@net.corda.core.DoNotImplement public static interface net.corda.testing.node.InMemoryMessagingNetwork$TestMessagingService extends net.corda.node.services.messaging.MessagingService + @org.jetbrains.annotations.Nullable public abstract net.corda.testing.node.InMemoryMessagingNetwork$MessageTransfer pumpReceive(boolean) + public abstract void stop() +## +public static final class net.corda.testing.node.InMemoryMessagingNetwork$pumpSend$$inlined$schedule$1 extends java.util.TimerTask + public (net.corda.testing.node.InMemoryMessagingNetwork, net.corda.testing.node.InMemoryMessagingNetwork$MessageTransfer, net.corda.core.internal.concurrent.OpenFuture) + public void run() +## +public class net.corda.testing.node.MessagingServiceSpy extends java.lang.Object implements net.corda.node.services.messaging.MessagingService + public (net.corda.node.services.messaging.MessagingService) + @org.jetbrains.annotations.NotNull public net.corda.node.services.messaging.MessageHandlerRegistration addMessageHandler(String, kotlin.jvm.functions.Function3) + public void cancelRedelivery(long) + @org.jetbrains.annotations.NotNull public net.corda.node.services.messaging.Message createMessage(String, byte[], net.corda.node.services.statemachine.DeduplicationId) + @org.jetbrains.annotations.NotNull public net.corda.core.messaging.MessageRecipients getAddressOfParty(net.corda.core.node.services.PartyInfo) + @org.jetbrains.annotations.NotNull public final net.corda.node.services.messaging.MessagingService getMessagingService() + @org.jetbrains.annotations.NotNull public net.corda.core.messaging.SingleMessageRecipient getMyAddress() + public void removeMessageHandler(net.corda.node.services.messaging.MessageHandlerRegistration) + @co.paralleluniverse.fibers.Suspendable public void send(List) + @co.paralleluniverse.fibers.Suspendable public void send(net.corda.node.services.messaging.Message, net.corda.core.messaging.MessageRecipients, Long, Object) +## +public final class net.corda.testing.node.MockKeyManagementService extends net.corda.core.serialization.SingletonSerializeAsToken implements net.corda.core.node.services.KeyManagementService + @org.jetbrains.annotations.NotNull public Iterable filterMyKeys(Iterable) + @org.jetbrains.annotations.NotNull public java.security.PublicKey freshKey() + @org.jetbrains.annotations.NotNull public net.corda.core.identity.PartyAndCertificate freshKeyAndCert(net.corda.core.identity.PartyAndCertificate, boolean) + @org.jetbrains.annotations.NotNull public final net.corda.node.services.api.IdentityServiceInternal getIdentityService() + @org.jetbrains.annotations.NotNull public Set getKeys() + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.TransactionSignature sign(net.corda.core.crypto.SignableData, java.security.PublicKey) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.DigitalSignature$WithKey sign(byte[], java.security.PublicKey) +## +public class net.corda.testing.node.MockNetwork extends java.lang.Object + public (List) + public (List, net.corda.testing.node.MockNetworkParameters) + public (List, net.corda.testing.node.MockNetworkParameters, boolean, boolean, net.corda.testing.node.InMemoryMessagingNetwork$ServicePeerAllocationStrategy, kotlin.jvm.functions.Function1, boolean, List, int) + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetwork$MockNode addressToNode(net.corda.core.messaging.MessageRecipients) + @org.jetbrains.annotations.NotNull public final java.nio.file.Path baseDirectory(int) + @org.jetbrains.annotations.NotNull public final net.corda.node.internal.StartedNode createNode(net.corda.testing.node.MockNodeParameters) + @org.jetbrains.annotations.NotNull public final net.corda.node.internal.StartedNode createNode(net.corda.testing.node.MockNodeParameters, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public final net.corda.node.internal.StartedNode createPartyNode() + @org.jetbrains.annotations.NotNull public final net.corda.node.internal.StartedNode createPartyNode(net.corda.core.identity.CordaX500Name) + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetwork$MockNode createUnstartedNode(net.corda.testing.node.MockNodeParameters) + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetwork$MockNode createUnstartedNode(net.corda.testing.node.MockNodeParameters, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.Party getDefaultNotaryIdentity() + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.PartyAndCertificate getDefaultNotaryIdentityAndCert() + @org.jetbrains.annotations.NotNull public final net.corda.node.internal.StartedNode getDefaultNotaryNode() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.InMemoryMessagingNetwork getMessagingNetwork() + public final int getNextNodeId() + @org.jetbrains.annotations.NotNull public final List getNodes() + @org.jetbrains.annotations.NotNull public final List getNotaryNodes() + public final void runNetwork() + public final void runNetwork(int) + public final void startNodes() + public final void stopNodes() + public final void waitQuiescent() +## +public static class net.corda.testing.node.MockNetwork$MockNode extends net.corda.node.internal.AbstractNode + public (net.corda.testing.node.MockNodeArgs) + protected int acceptableLiveFiberCountOnStop() + protected void checkNetworkMapIsInitialized() + public final void disableDBCloseOnStop() + @org.jetbrains.annotations.NotNull protected java.security.KeyPair generateKeyPair() + public final int getAcceptableLiveFiberCountOnStop() + @org.jetbrains.annotations.NotNull public final java.math.BigInteger getCounter() + public final int getId() + @org.jetbrains.annotations.NotNull protected org.slf4j.Logger getLog() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetwork getMockNet() + @org.jetbrains.annotations.NotNull protected rx.internal.schedulers.CachedThreadScheduler getRxIoScheduler() + @org.jetbrains.annotations.NotNull public List getSerializationWhitelists() + @org.jetbrains.annotations.NotNull protected net.corda.node.utilities.AffinityExecutor$ServiceAffinityExecutor getServerThread() + @org.jetbrains.annotations.Nullable public net.corda.node.internal.StartedNode getStarted() + @org.jetbrains.annotations.NotNull public final List getTestSerializationWhitelists() + protected Object initialiseDatabasePersistence(net.corda.node.services.api.SchemaService, net.corda.core.node.services.IdentityService, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull protected net.corda.node.services.transactions.BFTSMaRt$Cluster makeBFTCluster(java.security.PublicKey, net.corda.node.services.config.BFTSMaRtConfiguration) + @org.jetbrains.annotations.NotNull protected net.corda.core.node.services.KeyManagementService makeKeyManagementService(net.corda.node.services.api.IdentityServiceInternal, Set) + @org.jetbrains.annotations.NotNull protected net.corda.node.services.messaging.MessagingService makeMessagingService(net.corda.nodeapi.internal.persistence.CordaPersistence, net.corda.core.node.NodeInfo) + @org.jetbrains.annotations.NotNull protected net.corda.node.services.transactions.InMemoryTransactionVerifierService makeTransactionVerifierService() + public final void manuallyCloseDB() + @org.jetbrains.annotations.NotNull protected List myAddresses() + public final void setAcceptableLiveFiberCountOnStop(int) + public final void setCounter(java.math.BigInteger) + public final void setMessagingServiceSpy(net.corda.testing.node.MessagingServiceSpy) + @org.jetbrains.annotations.NotNull public net.corda.node.internal.StartedNode start() + protected void startMessagingService(net.corda.core.messaging.RPCOps) + public void startShell(net.corda.core.messaging.CordaRPCOps) + public static final net.corda.testing.node.MockNetwork$MockNode$Companion Companion +## +public static final class net.corda.testing.node.MockNetwork$MockNode$Companion extends java.lang.Object +## +public static final class net.corda.testing.node.MockNetwork$MockNode$makeBFTCluster$1 extends java.lang.Object implements net.corda.node.services.transactions.BFTSMaRt$Cluster + public void waitUntilAllReplicasHaveInitialized() +## +public static final class net.corda.testing.node.MockNetwork$NotarySpec extends java.lang.Object + public (net.corda.core.identity.CordaX500Name) + public (net.corda.core.identity.CordaX500Name, boolean) + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.CordaX500Name component1() + public final boolean component2() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetwork$NotarySpec copy(net.corda.core.identity.CordaX500Name, boolean) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.CordaX500Name getName() + public final boolean getValidating() + public int hashCode() + public String toString() +## +public static final class net.corda.testing.node.MockNetwork$sharedServerThread$1 extends net.corda.node.utilities.AffinityExecutor$ServiceAffinityExecutor + public boolean awaitTermination(long, concurrent.TimeUnit) + public void shutdown() +## +public final class net.corda.testing.node.MockNetworkParameters extends java.lang.Object + public () + public (boolean, boolean, net.corda.testing.node.InMemoryMessagingNetwork$ServicePeerAllocationStrategy, kotlin.jvm.functions.Function1, boolean, List) + public final boolean component1() + public final boolean component2() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.InMemoryMessagingNetwork$ServicePeerAllocationStrategy component3() + @org.jetbrains.annotations.NotNull public final kotlin.jvm.functions.Function1 component4() + public final boolean component5() + @org.jetbrains.annotations.NotNull public final List component6() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetworkParameters copy(boolean, boolean, net.corda.testing.node.InMemoryMessagingNetwork$ServicePeerAllocationStrategy, kotlin.jvm.functions.Function1, boolean, List) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final kotlin.jvm.functions.Function1 getDefaultFactory() + public final boolean getInitialiseSerialization() + public final boolean getNetworkSendManuallyPumped() + @org.jetbrains.annotations.NotNull public final List getNotarySpecs() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.InMemoryMessagingNetwork$ServicePeerAllocationStrategy getServicePeerAllocationStrategy() + public final boolean getThreadPerNode() + public int hashCode() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetworkParameters setDefaultFactory(kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetworkParameters setInitialiseSerialization(boolean) + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetworkParameters setNetworkSendManuallyPumped(boolean) + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetworkParameters setNotarySpecs(List) + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetworkParameters setServicePeerAllocationStrategy(net.corda.testing.node.InMemoryMessagingNetwork$ServicePeerAllocationStrategy) + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetworkParameters setThreadPerNode(boolean) + public String toString() +## +public final class net.corda.testing.node.MockNodeArgs extends java.lang.Object + public (net.corda.node.services.config.NodeConfiguration, net.corda.testing.node.MockNetwork, int, java.math.BigInteger, net.corda.node.VersionInfo) + @org.jetbrains.annotations.NotNull public final net.corda.node.services.config.NodeConfiguration component1() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetwork component2() + public final int component3() + @org.jetbrains.annotations.NotNull public final java.math.BigInteger component4() + @org.jetbrains.annotations.NotNull public final net.corda.node.VersionInfo component5() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNodeArgs copy(net.corda.node.services.config.NodeConfiguration, net.corda.testing.node.MockNetwork, int, java.math.BigInteger, net.corda.node.VersionInfo) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final net.corda.node.services.config.NodeConfiguration getConfig() + @org.jetbrains.annotations.NotNull public final java.math.BigInteger getEntropyRoot() + public final int getId() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNetwork getNetwork() + @org.jetbrains.annotations.NotNull public final net.corda.node.VersionInfo getVersion() + public int hashCode() + public String toString() +## +public final class net.corda.testing.node.MockNodeKt extends java.lang.Object + @org.jetbrains.annotations.Nullable public static final net.corda.testing.node.InMemoryMessagingNetwork$MessageTransfer pumpReceive(net.corda.node.internal.StartedNode, boolean) + public static final void setMessagingServiceSpy(net.corda.node.internal.StartedNode, net.corda.testing.node.MessagingServiceSpy) +## +@net.corda.core.DoNotImplement public abstract static class net.corda.testing.node.MockNodeKt$mockNodeConfiguration$AbstractNodeConfiguration extends java.lang.Object implements net.corda.node.services.config.NodeConfiguration + public () + public long getAttachmentCacheBound() + public long getAttachmentContentCacheSizeBytes() + @org.jetbrains.annotations.NotNull public java.nio.file.Path getCertificatesDirectory() + public boolean getDetectPublicIp() + @org.jetbrains.annotations.Nullable public net.corda.node.services.config.GraphiteOptions getGraphiteOptions() + public boolean getNoLocalShell() + @org.jetbrains.annotations.NotNull public java.nio.file.Path getNodeKeystore() + @org.jetbrains.annotations.NotNull public java.nio.file.Path getSslKeystore() + public long getTransactionCacheSizeBytes() + @org.jetbrains.annotations.NotNull public java.nio.file.Path getTrustStoreFile() + public boolean getUseTestClock() + @org.jetbrains.annotations.NotNull public net.corda.nodeapi.internal.crypto.X509KeyStore loadNodeKeyStore(boolean) + @org.jetbrains.annotations.NotNull public net.corda.nodeapi.internal.crypto.X509KeyStore loadSslKeyStore(boolean) + @org.jetbrains.annotations.NotNull public net.corda.nodeapi.internal.crypto.X509KeyStore loadTrustStore(boolean) +## +public final class net.corda.testing.node.MockNodeParameters extends java.lang.Object + public () + public (Integer, net.corda.core.identity.CordaX500Name, java.math.BigInteger, kotlin.jvm.functions.Function1, net.corda.node.VersionInfo) + @org.jetbrains.annotations.Nullable public final Integer component1() + @org.jetbrains.annotations.Nullable public final net.corda.core.identity.CordaX500Name component2() + @org.jetbrains.annotations.NotNull public final java.math.BigInteger component3() + @org.jetbrains.annotations.NotNull public final kotlin.jvm.functions.Function1 component4() + @org.jetbrains.annotations.NotNull public final net.corda.node.VersionInfo component5() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNodeParameters copy(Integer, net.corda.core.identity.CordaX500Name, java.math.BigInteger, kotlin.jvm.functions.Function1, net.corda.node.VersionInfo) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final kotlin.jvm.functions.Function1 getConfigOverrides() + @org.jetbrains.annotations.NotNull public final java.math.BigInteger getEntropyRoot() + @org.jetbrains.annotations.Nullable public final Integer getForcedID() + @org.jetbrains.annotations.Nullable public final net.corda.core.identity.CordaX500Name getLegalName() + @org.jetbrains.annotations.NotNull public final net.corda.node.VersionInfo getVersion() + public int hashCode() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNodeParameters setConfigOverrides(kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNodeParameters setEntropyRoot(java.math.BigInteger) + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNodeParameters setForcedID(Integer) + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockNodeParameters setLegalName(net.corda.core.identity.CordaX500Name) + public String toString() +## +public class net.corda.testing.node.MockServices extends java.lang.Object implements net.corda.core.node.StateLoader, net.corda.core.node.ServiceHub + public (List, net.corda.core.identity.CordaX500Name) + public (List, net.corda.node.services.api.IdentityServiceInternal, net.corda.core.identity.CordaX500Name) + public (net.corda.core.identity.CordaX500Name) + public (net.corda.node.services.api.IdentityServiceInternal, net.corda.core.identity.CordaX500Name) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.SignedTransaction addSignature(net.corda.core.transactions.SignedTransaction) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.SignedTransaction addSignature(net.corda.core.transactions.SignedTransaction, java.security.PublicKey) + @org.jetbrains.annotations.NotNull public net.corda.core.serialization.SerializeAsToken cordaService(Class) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.TransactionSignature createSignature(net.corda.core.transactions.FilteredTransaction) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.TransactionSignature createSignature(net.corda.core.transactions.FilteredTransaction, java.security.PublicKey) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.TransactionSignature createSignature(net.corda.core.transactions.SignedTransaction) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.TransactionSignature createSignature(net.corda.core.transactions.SignedTransaction, java.security.PublicKey) + @org.jetbrains.annotations.NotNull public final net.corda.testing.services.MockAttachmentStorage getAttachments() + @org.jetbrains.annotations.NotNull public java.time.Clock getClock() + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.ContractUpgradeService getContractUpgradeService() + @org.jetbrains.annotations.NotNull public net.corda.core.cordapp.CordappProvider getCordappProvider() + @org.jetbrains.annotations.NotNull public final com.google.common.collect.MutableClassToInstanceMap getCordappServices() + @org.jetbrains.annotations.NotNull public net.corda.node.services.api.IdentityServiceInternal getIdentityService() + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.KeyManagementService getKeyManagementService() + @org.jetbrains.annotations.NotNull public static final net.corda.node.VersionInfo getMOCK_VERSION_INFO() + @org.jetbrains.annotations.NotNull public final net.corda.testing.services.MockCordappProvider getMockCordappProvider() + @org.jetbrains.annotations.NotNull public net.corda.core.node.NodeInfo getMyInfo() + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.NetworkMapCache getNetworkMapCache() + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.TransactionVerifierService getTransactionVerifierService() + @org.jetbrains.annotations.NotNull public net.corda.node.services.api.WritableTransactionStorage getValidatedTransactions() + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.VaultService getVaultService() + @org.jetbrains.annotations.NotNull public java.sql.Connection jdbcSession() + @org.jetbrains.annotations.NotNull public net.corda.core.contracts.TransactionState loadState(net.corda.core.contracts.StateRef) + @org.jetbrains.annotations.NotNull public Set loadStates(Set) + @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public static final Properties makeTestDataSourceProperties(String, String, kotlin.jvm.functions.Function2) + @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public static final net.corda.nodeapi.internal.persistence.DatabaseConfig makeTestDatabaseProperties(String) + public void recordTransactions(Iterable) + public void recordTransactions(net.corda.core.node.StatesToRecord, Iterable) + public void recordTransactions(boolean, Iterable) + @org.jetbrains.annotations.NotNull public Void registerUnloadHandler(kotlin.jvm.functions.Function0) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.SignedTransaction signInitialTransaction(net.corda.core.transactions.TransactionBuilder) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.SignedTransaction signInitialTransaction(net.corda.core.transactions.TransactionBuilder, Iterable) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.SignedTransaction signInitialTransaction(net.corda.core.transactions.TransactionBuilder, java.security.PublicKey) + @org.jetbrains.annotations.NotNull public net.corda.core.contracts.StateAndRef toStateAndRef(net.corda.core.contracts.StateRef) + public static final net.corda.testing.node.MockServices$Companion Companion +## +public static final class net.corda.testing.node.MockServices$Companion extends java.lang.Object + @org.jetbrains.annotations.NotNull public final net.corda.node.VersionInfo getMOCK_VERSION_INFO() + @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public final Properties makeTestDataSourceProperties(String, String, kotlin.jvm.functions.Function2) + @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public final net.corda.nodeapi.internal.persistence.DatabaseConfig makeTestDatabaseProperties(String) +## +public static final class net.corda.testing.node.MockServices$Companion$makeTestDatabaseAndMockServices$mockService$1$1 extends net.corda.testing.node.MockServices + @org.jetbrains.annotations.NotNull public net.corda.node.services.api.VaultServiceInternal getVaultService() + @org.jetbrains.annotations.NotNull public java.sql.Connection jdbcSession() + public void recordTransactions(net.corda.core.node.StatesToRecord, Iterable) +## +public final class net.corda.testing.node.MockServicesKt extends java.lang.Object + @org.jetbrains.annotations.NotNull public static final net.corda.core.serialization.SerializeAsToken createMockCordaService(net.corda.testing.node.MockServices, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public static final com.typesafe.config.Config databaseProviderDataSourceConfig(String, String) + @org.jetbrains.annotations.NotNull public static final com.typesafe.config.Config inMemoryH2DataSourceConfig(String, String) +## +public static final class net.corda.testing.node.MockServicesKt$createMockCordaService$MockAppServiceHubImpl extends java.lang.Object implements net.corda.core.node.AppServiceHub, net.corda.core.node.ServiceHub + public (net.corda.testing.node.MockServices, net.corda.testing.node.MockServices, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.SignedTransaction addSignature(net.corda.core.transactions.SignedTransaction) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.SignedTransaction addSignature(net.corda.core.transactions.SignedTransaction, java.security.PublicKey) + @org.jetbrains.annotations.NotNull public net.corda.core.serialization.SerializeAsToken cordaService(Class) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.TransactionSignature createSignature(net.corda.core.transactions.FilteredTransaction) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.TransactionSignature createSignature(net.corda.core.transactions.FilteredTransaction, java.security.PublicKey) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.TransactionSignature createSignature(net.corda.core.transactions.SignedTransaction) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.TransactionSignature createSignature(net.corda.core.transactions.SignedTransaction, java.security.PublicKey) + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.AttachmentStorage getAttachments() + @org.jetbrains.annotations.NotNull public java.time.Clock getClock() + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.ContractUpgradeService getContractUpgradeService() + @org.jetbrains.annotations.NotNull public net.corda.core.cordapp.CordappProvider getCordappProvider() + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.IdentityService getIdentityService() + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.KeyManagementService getKeyManagementService() + @org.jetbrains.annotations.NotNull public net.corda.core.node.NodeInfo getMyInfo() + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.NetworkMapCache getNetworkMapCache() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.MockServices getServiceHub() + @org.jetbrains.annotations.NotNull public final net.corda.core.serialization.SerializeAsToken getServiceInstance() + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.TransactionVerifierService getTransactionVerifierService() + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.TransactionStorage getValidatedTransactions() + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.VaultService getVaultService() + @org.jetbrains.annotations.NotNull public java.sql.Connection jdbcSession() + @org.jetbrains.annotations.NotNull public net.corda.core.contracts.TransactionState loadState(net.corda.core.contracts.StateRef) + @org.jetbrains.annotations.NotNull public Set loadStates(Set) + public void recordTransactions(Iterable) + public void recordTransactions(net.corda.core.node.StatesToRecord, Iterable) + public void recordTransactions(boolean, Iterable) + public void registerUnloadHandler(kotlin.jvm.functions.Function0) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.SignedTransaction signInitialTransaction(net.corda.core.transactions.TransactionBuilder) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.SignedTransaction signInitialTransaction(net.corda.core.transactions.TransactionBuilder, Iterable) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.SignedTransaction signInitialTransaction(net.corda.core.transactions.TransactionBuilder, java.security.PublicKey) + @org.jetbrains.annotations.NotNull public net.corda.core.messaging.FlowHandle startFlow(net.corda.core.flows.FlowLogic) + @org.jetbrains.annotations.NotNull public net.corda.core.messaging.FlowProgressHandle startTrackedFlow(net.corda.core.flows.FlowLogic) + @org.jetbrains.annotations.NotNull public net.corda.core.contracts.StateAndRef toStateAndRef(net.corda.core.contracts.StateRef) +## +public class net.corda.testing.node.MockTransactionStorage extends net.corda.core.serialization.SingletonSerializeAsToken implements net.corda.node.services.api.WritableTransactionStorage + public () + public boolean addTransaction(net.corda.core.transactions.SignedTransaction) + @org.jetbrains.annotations.Nullable public net.corda.core.transactions.SignedTransaction getTransaction(net.corda.core.crypto.SecureHash) + @org.jetbrains.annotations.NotNull public rx.Observable getUpdates() + @org.jetbrains.annotations.NotNull public net.corda.core.contracts.TransactionState loadState(net.corda.core.contracts.StateRef) + @org.jetbrains.annotations.NotNull public Set loadStates(Set) + @org.jetbrains.annotations.NotNull public net.corda.core.messaging.DataFeed track() + @org.jetbrains.annotations.NotNull public net.corda.core.concurrent.CordaFuture trackTransaction(net.corda.core.crypto.SecureHash) +## +public final class net.corda.testing.node.NodeTestUtils extends java.lang.Object + @org.jetbrains.annotations.NotNull public static final net.corda.testing.dsl.LedgerDSL ledger(net.corda.core.node.ServiceHub, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public static final net.corda.testing.dsl.LedgerDSL ledger(net.corda.core.node.ServiceHub, net.corda.core.identity.Party, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public static final net.corda.core.context.InvocationContext newContext(net.corda.node.services.api.StartedNodeServices) + @org.jetbrains.annotations.NotNull public static final net.corda.core.concurrent.CordaFuture startFlow(net.corda.node.services.api.StartedNodeServices, net.corda.core.flows.FlowLogic) + @org.jetbrains.annotations.NotNull public static final net.corda.core.context.Actor testActor(net.corda.core.identity.CordaX500Name) + @org.jetbrains.annotations.NotNull public static final net.corda.core.context.InvocationContext testContext(net.corda.core.identity.CordaX500Name) + @org.jetbrains.annotations.NotNull public static final net.corda.testing.dsl.LedgerDSL transaction(net.corda.core.node.ServiceHub, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public static final net.corda.testing.dsl.LedgerDSL transaction(net.corda.core.node.ServiceHub, net.corda.core.identity.Party, kotlin.jvm.functions.Function1) +## +public final class net.corda.testing.node.NotarySpec extends java.lang.Object + public (net.corda.core.identity.CordaX500Name, boolean, List, net.corda.node.services.config.VerifierType, net.corda.testing.node.ClusterSpec) + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.CordaX500Name component1() + public final boolean component2() + @org.jetbrains.annotations.NotNull public final List component3() + @org.jetbrains.annotations.NotNull public final net.corda.node.services.config.VerifierType component4() + @org.jetbrains.annotations.Nullable public final net.corda.testing.node.ClusterSpec component5() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.NotarySpec copy(net.corda.core.identity.CordaX500Name, boolean, List, net.corda.node.services.config.VerifierType, net.corda.testing.node.ClusterSpec) + public boolean equals(Object) + @org.jetbrains.annotations.Nullable public final net.corda.testing.node.ClusterSpec getCluster() + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.CordaX500Name getName() + @org.jetbrains.annotations.NotNull public final List getRpcUsers() + public final boolean getValidating() + @org.jetbrains.annotations.NotNull public final net.corda.node.services.config.VerifierType getVerifierType() + public int hashCode() + public String toString() +## +@javax.annotation.concurrent.ThreadSafe public final class net.corda.testing.node.TestClock extends net.corda.node.internal.MutableClock + public (java.time.Clock) + public synchronized final void advanceBy(java.time.Duration) + public synchronized final void setTo(java.time.Instant) +## +public final class net.corda.testing.node.User extends java.lang.Object + public (String, String, Set) + @org.jetbrains.annotations.NotNull public final String component1() + @org.jetbrains.annotations.NotNull public final String component2() + @org.jetbrains.annotations.NotNull public final Set component3() + @org.jetbrains.annotations.NotNull public final net.corda.testing.node.User copy(String, String, Set) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final String getPassword() + @org.jetbrains.annotations.NotNull public final Set getPermissions() + @org.jetbrains.annotations.NotNull public final String getUsername() + public int hashCode() + public String toString() +## public final class net.corda.client.rpc.CordaRPCClient extends java.lang.Object public (net.corda.core.utilities.NetworkHostAndPort) public (net.corda.core.utilities.NetworkHostAndPort, net.corda.client.rpc.CordaRPCClientConfiguration) + public (net.corda.core.utilities.NetworkHostAndPort, net.corda.client.rpc.CordaRPCClientConfiguration, net.corda.nodeapi.internal.config.SSLConfiguration) @org.jetbrains.annotations.NotNull public final net.corda.client.rpc.CordaRPCConnection start(String, String) @org.jetbrains.annotations.NotNull public final net.corda.client.rpc.CordaRPCConnection start(String, String, net.corda.core.context.Trace, net.corda.core.context.Actor) public final Object use(String, String, kotlin.jvm.functions.Function1) @@ -3626,3 +4341,483 @@ public @interface net.corda.client.rpc.RPCSinceVersion public final class net.corda.client.rpc.UtilsKt extends java.lang.Object public static final void notUsed(rx.Observable) ## +public final class net.corda.testing.contracts.DummyContract extends java.lang.Object implements net.corda.core.contracts.Contract + public () + public (Object) + @org.jetbrains.annotations.Nullable public final Object component1() + @org.jetbrains.annotations.NotNull public final net.corda.testing.contracts.DummyContract copy(Object) + public boolean equals(Object) + @org.jetbrains.annotations.Nullable public final Object getBlank() + @org.jetbrains.annotations.NotNull public final String getPROGRAM_ID() + public int hashCode() + @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public static final net.corda.core.transactions.TransactionBuilder move(List, net.corda.core.identity.AbstractParty) + @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public static final net.corda.core.transactions.TransactionBuilder move(net.corda.core.contracts.StateAndRef, net.corda.core.identity.AbstractParty) + public String toString() + public void verify(net.corda.core.transactions.LedgerTransaction) + public static final net.corda.testing.contracts.DummyContract$Companion Companion + @org.jetbrains.annotations.NotNull public static final String PROGRAM_ID = "net.corda.testing.contracts.DummyContract" +## +public static interface net.corda.testing.contracts.DummyContract$Commands extends net.corda.core.contracts.CommandData +## +public static final class net.corda.testing.contracts.DummyContract$Commands$Create extends net.corda.core.contracts.TypeOnlyCommandData implements net.corda.testing.contracts.DummyContract$Commands + public () +## +public static final class net.corda.testing.contracts.DummyContract$Commands$Move extends net.corda.core.contracts.TypeOnlyCommandData implements net.corda.testing.contracts.DummyContract$Commands + public () +## +public static final class net.corda.testing.contracts.DummyContract$Companion extends java.lang.Object + @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public final net.corda.core.transactions.TransactionBuilder move(List, net.corda.core.identity.AbstractParty) + @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull public final net.corda.core.transactions.TransactionBuilder move(net.corda.core.contracts.StateAndRef, net.corda.core.identity.AbstractParty) +## +public static final class net.corda.testing.contracts.DummyContract$MultiOwnerState extends java.lang.Object implements net.corda.testing.contracts.DummyContract$State + public (int, List) + public final int component1() + @org.jetbrains.annotations.NotNull public final List component2() + @org.jetbrains.annotations.NotNull public final net.corda.testing.contracts.DummyContract$MultiOwnerState copy(int, List) + public boolean equals(Object) + public int getMagicNumber() + @org.jetbrains.annotations.NotNull public final List getOwners() + @org.jetbrains.annotations.NotNull public List getParticipants() + public int hashCode() + public String toString() +## +public static final class net.corda.testing.contracts.DummyContract$SingleOwnerState extends java.lang.Object implements net.corda.testing.contracts.DummyContract$State, net.corda.core.contracts.OwnableState + public (int, net.corda.core.identity.AbstractParty) + public final int component1() + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.AbstractParty component2() + @org.jetbrains.annotations.NotNull public final net.corda.testing.contracts.DummyContract$SingleOwnerState copy(int, net.corda.core.identity.AbstractParty) + public boolean equals(Object) + public int getMagicNumber() + @org.jetbrains.annotations.NotNull public net.corda.core.identity.AbstractParty getOwner() + @org.jetbrains.annotations.NotNull public List getParticipants() + public int hashCode() + public String toString() + @org.jetbrains.annotations.NotNull public net.corda.core.contracts.CommandAndState withNewOwner(net.corda.core.identity.AbstractParty) +## +@net.corda.core.DoNotImplement public static interface net.corda.testing.contracts.DummyContract$State extends net.corda.core.contracts.ContractState + public abstract int getMagicNumber() +## +public final class net.corda.testing.contracts.DummyContractV2 extends java.lang.Object implements net.corda.core.contracts.UpgradedContract + public () + @org.jetbrains.annotations.NotNull public String getLegacyContract() + @org.jetbrains.annotations.NotNull public net.corda.testing.contracts.DummyContractV2$State upgrade(net.corda.testing.contracts.DummyContract$State) + public void verify(net.corda.core.transactions.LedgerTransaction) + public static final net.corda.testing.contracts.DummyContractV2$Companion Companion + @org.jetbrains.annotations.NotNull public static final String PROGRAM_ID = "net.corda.testing.contracts.DummyContractV2" +## +public static interface net.corda.testing.contracts.DummyContractV2$Commands extends net.corda.core.contracts.CommandData +## +public static final class net.corda.testing.contracts.DummyContractV2$Commands$Create extends net.corda.core.contracts.TypeOnlyCommandData implements net.corda.testing.contracts.DummyContractV2$Commands + public () +## +public static final class net.corda.testing.contracts.DummyContractV2$Commands$Move extends net.corda.core.contracts.TypeOnlyCommandData implements net.corda.testing.contracts.DummyContractV2$Commands + public () +## +public static final class net.corda.testing.contracts.DummyContractV2$Companion extends java.lang.Object +## +public static final class net.corda.testing.contracts.DummyContractV2$State extends java.lang.Object implements net.corda.core.contracts.ContractState + public (int, List) + public final int component1() + @org.jetbrains.annotations.NotNull public final List component2() + @org.jetbrains.annotations.NotNull public final net.corda.testing.contracts.DummyContractV2$State copy(int, List) + public boolean equals(Object) + public final int getMagicNumber() + @org.jetbrains.annotations.NotNull public final List getOwners() + @org.jetbrains.annotations.NotNull public List getParticipants() + public int hashCode() + public String toString() +## +public final class net.corda.testing.contracts.DummyState extends java.lang.Object implements net.corda.core.contracts.ContractState + public () + public (int) + public final int component1() + @org.jetbrains.annotations.NotNull public final net.corda.testing.contracts.DummyState copy(int) + public boolean equals(Object) + public final int getMagicNumber() + @org.jetbrains.annotations.NotNull public List getParticipants() + public int hashCode() + public String toString() +## +public final class net.corda.testing.core.DummyCommandData extends net.corda.core.contracts.TypeOnlyCommandData + public static final net.corda.testing.core.DummyCommandData INSTANCE +## +public final class net.corda.testing.core.Expect extends java.lang.Object + public (Class, kotlin.jvm.functions.Function1, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public final Class component1() + @org.jetbrains.annotations.NotNull public final kotlin.jvm.functions.Function1 component2() + @org.jetbrains.annotations.NotNull public final kotlin.jvm.functions.Function1 component3() + @org.jetbrains.annotations.NotNull public final net.corda.testing.core.Expect copy(Class, kotlin.jvm.functions.Function1, kotlin.jvm.functions.Function1) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public final Class getClazz() + @org.jetbrains.annotations.NotNull public final kotlin.jvm.functions.Function1 getExpectClosure() + @org.jetbrains.annotations.NotNull public final kotlin.jvm.functions.Function1 getMatch() + public int hashCode() + public String toString() +## +@net.corda.core.DoNotImplement public abstract class net.corda.testing.core.ExpectCompose extends java.lang.Object +## +public static final class net.corda.testing.core.ExpectCompose$Parallel extends net.corda.testing.core.ExpectCompose + public (List) + @org.jetbrains.annotations.NotNull public final List getParallel() +## +public static final class net.corda.testing.core.ExpectCompose$Sequential extends net.corda.testing.core.ExpectCompose + public (List) + @org.jetbrains.annotations.NotNull public final List getSequence() +## +public static final class net.corda.testing.core.ExpectCompose$Single extends net.corda.testing.core.ExpectCompose + public (net.corda.testing.core.Expect) + @org.jetbrains.annotations.NotNull public final net.corda.testing.core.Expect getExpect() +## +public static final class net.corda.testing.core.ExpectComposeState$Companion extends java.lang.Object + @org.jetbrains.annotations.NotNull public final net.corda.testing.core.ExpectComposeState fromExpectCompose(net.corda.testing.core.ExpectCompose) +## +public static final class net.corda.testing.core.ExpectComposeState$Finished extends net.corda.testing.core.ExpectComposeState + public () + @org.jetbrains.annotations.NotNull public List getExpectedEvents() + @org.jetbrains.annotations.Nullable public Void nextState(Object) +## +public static final class net.corda.testing.core.ExpectComposeState$Parallel extends net.corda.testing.core.ExpectComposeState + public (net.corda.testing.core.ExpectCompose$Parallel, List) + @org.jetbrains.annotations.NotNull public List getExpectedEvents() + @org.jetbrains.annotations.NotNull public final net.corda.testing.core.ExpectCompose$Parallel getParallel() + @org.jetbrains.annotations.NotNull public final List getStates() + @org.jetbrains.annotations.Nullable public kotlin.Pair nextState(Object) +## +public static final class net.corda.testing.core.ExpectComposeState$Sequential extends net.corda.testing.core.ExpectComposeState + public (net.corda.testing.core.ExpectCompose$Sequential, int, net.corda.testing.core.ExpectComposeState) + @org.jetbrains.annotations.NotNull public List getExpectedEvents() + public final int getIndex() + @org.jetbrains.annotations.NotNull public final net.corda.testing.core.ExpectCompose$Sequential getSequential() + @org.jetbrains.annotations.NotNull public final net.corda.testing.core.ExpectComposeState getState() + @org.jetbrains.annotations.Nullable public kotlin.Pair nextState(Object) +## +public static final class net.corda.testing.core.ExpectComposeState$Single extends net.corda.testing.core.ExpectComposeState + public (net.corda.testing.core.ExpectCompose$Single) + @org.jetbrains.annotations.NotNull public List getExpectedEvents() + @org.jetbrains.annotations.NotNull public final net.corda.testing.core.ExpectCompose$Single getSingle() + @org.jetbrains.annotations.Nullable public kotlin.Pair nextState(Object) +## +public final class net.corda.testing.core.ExpectKt extends java.lang.Object + @org.jetbrains.annotations.NotNull public static final net.corda.testing.core.ExpectCompose expect(Class, kotlin.jvm.functions.Function1, kotlin.jvm.functions.Function1) + public static final void expectEvents(Iterable, boolean, kotlin.jvm.functions.Function0) + public static final void expectEvents(rx.Observable, boolean, kotlin.jvm.functions.Function0) + public static final void genericExpectEvents(Object, boolean, kotlin.jvm.functions.Function2, kotlin.jvm.functions.Function0) + @org.jetbrains.annotations.NotNull public static final net.corda.testing.core.ExpectCompose parallel(List) + @org.jetbrains.annotations.NotNull public static final net.corda.testing.core.ExpectCompose replicate(int, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public static final net.corda.testing.core.ExpectCompose sequence(List) +## +public static final class net.corda.testing.core.ExpectKt$expectEvents$1$lock$1 extends java.lang.Object +## +@net.corda.core.DoNotImplement public interface net.corda.testing.core.GlobalSerializationEnvironment extends net.corda.core.serialization.internal.SerializationEnvironment + public abstract void unset() +## +public final class net.corda.testing.core.SerializationEnvironmentRule extends java.lang.Object implements org.junit.rules.TestRule + public () + public (boolean) + @org.jetbrains.annotations.NotNull public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement, org.junit.runner.Description) + @org.jetbrains.annotations.NotNull public final net.corda.core.serialization.SerializationContext getCheckpointContext() + @org.jetbrains.annotations.NotNull public final net.corda.core.serialization.SerializationFactory getSerializationFactory() + public static final net.corda.testing.core.SerializationEnvironmentRule$Companion Companion +## +public static final class net.corda.testing.core.SerializationEnvironmentRule$Companion extends java.lang.Object + public final Object run(String, kotlin.jvm.functions.Function1) +## +public static final class net.corda.testing.core.SerializationEnvironmentRule$apply$1 extends org.junit.runners.model.Statement + public void evaluate() +## +public final class net.corda.testing.core.SerializationTestHelpersKt extends java.lang.Object + @org.jetbrains.annotations.NotNull public static final net.corda.testing.core.GlobalSerializationEnvironment setGlobalSerialization(boolean) +## +public static final class net.corda.testing.core.SerializationTestHelpersKt$createTestSerializationEnv$1 extends net.corda.core.serialization.internal.SerializationEnvironmentImpl + @org.jetbrains.annotations.NotNull public String toString() +## +public static final class net.corda.testing.core.SerializationTestHelpersKt$setGlobalSerialization$1 extends java.lang.Object implements net.corda.testing.core.GlobalSerializationEnvironment, net.corda.core.serialization.internal.SerializationEnvironment + @org.jetbrains.annotations.NotNull public net.corda.core.serialization.SerializationContext getCheckpointContext() + @org.jetbrains.annotations.NotNull public net.corda.core.serialization.SerializationContext getP2pContext() + @org.jetbrains.annotations.NotNull public net.corda.core.serialization.SerializationContext getRpcClientContext() + @org.jetbrains.annotations.NotNull public net.corda.core.serialization.SerializationContext getRpcServerContext() + @org.jetbrains.annotations.NotNull public net.corda.core.serialization.SerializationFactory getSerializationFactory() + @org.jetbrains.annotations.NotNull public net.corda.core.serialization.SerializationContext getStorageContext() + public void unset() +## +public final class net.corda.testing.core.TestConstants extends java.lang.Object + @org.jetbrains.annotations.NotNull public static final net.corda.nodeapi.internal.crypto.CertificateAndKeyPair getDEV_INTERMEDIATE_CA() + @org.jetbrains.annotations.NotNull public static final net.corda.nodeapi.internal.crypto.CertificateAndKeyPair getDEV_ROOT_CA() + @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.CordaX500Name ALICE_NAME + @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.CordaX500Name BOB_NAME + @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.CordaX500Name BOC_NAME + @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.CordaX500Name CHARLIE_NAME + @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.CordaX500Name DUMMY_BANK_A_NAME + @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.CordaX500Name DUMMY_BANK_B_NAME + @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.CordaX500Name DUMMY_BANK_C_NAME + @kotlin.jvm.JvmField @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.CordaX500Name DUMMY_NOTARY_NAME + public static final int MAX_MESSAGE_SIZE = 10485760 + @kotlin.jvm.JvmField public static final java.time.Instant TEST_TX_TIME +## +public final class net.corda.testing.core.TestIdentity extends java.lang.Object + public (net.corda.core.identity.CordaX500Name) + public (net.corda.core.identity.CordaX500Name, long) + public (net.corda.core.identity.CordaX500Name, java.security.KeyPair) + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.PartyAndCertificate getIdentity() + @org.jetbrains.annotations.NotNull public final java.security.KeyPair getKeyPair() + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.CordaX500Name getName() + @org.jetbrains.annotations.NotNull public final net.corda.core.identity.Party getParty() + @org.jetbrains.annotations.NotNull public final java.security.PublicKey getPublicKey() + public static final net.corda.testing.core.TestIdentity$Companion Companion +## +public static final class net.corda.testing.core.TestIdentity$Companion extends java.lang.Object + @org.jetbrains.annotations.NotNull public final net.corda.testing.core.TestIdentity fresh(String) +## +public final class net.corda.testing.core.TestUtils extends java.lang.Object + @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.Party chooseIdentity(net.corda.core.node.NodeInfo) + @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.PartyAndCertificate chooseIdentityAndCert(net.corda.core.node.NodeInfo) + @org.jetbrains.annotations.NotNull public static final net.corda.core.utilities.NetworkHostAndPort freeLocalHostAndPort() + public static final int freePort() + @org.jetbrains.annotations.NotNull public static final net.corda.core.contracts.StateRef generateStateRef() + @org.jetbrains.annotations.NotNull public static final List getFreeLocalPorts(String, int) + @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.PartyAndCertificate getTestPartyAndCertificate(net.corda.core.identity.CordaX500Name, java.security.PublicKey) + @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.PartyAndCertificate getTestPartyAndCertificate(net.corda.core.identity.Party) + @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.Party singleIdentity(net.corda.core.node.NodeInfo) + @org.jetbrains.annotations.NotNull public static final net.corda.core.identity.PartyAndCertificate singleIdentityAndCert(net.corda.core.node.NodeInfo) +## +public final class net.corda.testing.database.DatabaseConstants extends java.lang.Object + @org.jetbrains.annotations.NotNull public static final String DATA_SOURCE_CLASSNAME = "dataSourceProperties.dataSourceClassName" + @org.jetbrains.annotations.NotNull public static final String DATA_SOURCE_PASSWORD = "dataSourceProperties.dataSource.password" + @org.jetbrains.annotations.NotNull public static final String DATA_SOURCE_URL = "dataSourceProperties.dataSource.url" + @org.jetbrains.annotations.NotNull public static final String DATA_SOURCE_USER = "dataSourceProperties.dataSource.user" + public static final net.corda.testing.database.DatabaseConstants INSTANCE + @org.jetbrains.annotations.NotNull public static final String SCHEMA = "database.schema" + @org.jetbrains.annotations.NotNull public static final String TRANSACTION_ISOLATION_LEVEL = "database.transactionIsolationLevel" +## +public final class net.corda.testing.database.DbScriptRunner extends java.lang.Object + @org.jetbrains.annotations.NotNull public final List merge(List, String) + @org.jetbrains.annotations.NotNull public final List merge(List, List) + public final void runDbScript(String, String, List) + public static final net.corda.testing.database.DbScriptRunner INSTANCE +## +public final class net.corda.testing.database.ListPopulator extends java.lang.Object implements org.springframework.jdbc.datasource.init.DatabasePopulator + public (boolean, boolean, List) + public void populate(java.sql.Connection) +## +public final class net.corda.testing.dsl.AttachmentResolutionException extends net.corda.core.flows.FlowException + public (net.corda.core.crypto.SecureHash) +## +public final class net.corda.testing.dsl.DoubleSpentInputs extends net.corda.core.flows.FlowException + public (List) +## +public final class net.corda.testing.dsl.DuplicateOutputLabel extends net.corda.core.flows.FlowException + public (String) +## +@net.corda.core.DoNotImplement public abstract class net.corda.testing.dsl.EnforceVerifyOrFail extends java.lang.Object +## +public static final class net.corda.testing.dsl.EnforceVerifyOrFail$Token extends net.corda.testing.dsl.EnforceVerifyOrFail + public static final net.corda.testing.dsl.EnforceVerifyOrFail$Token INSTANCE +## +public final class net.corda.testing.dsl.LedgerDSL extends java.lang.Object implements net.corda.testing.dsl.LedgerDSLInterpreter + public (net.corda.testing.dsl.LedgerDSLInterpreter, net.corda.core.identity.Party) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.WireTransaction _transaction(String, net.corda.core.transactions.TransactionBuilder, kotlin.jvm.functions.Function1) + public void _tweak(kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.WireTransaction _unverifiedTransaction(String, net.corda.core.transactions.TransactionBuilder, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.SecureHash attachment(java.io.InputStream) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail fails() + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail fails with(String) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail failsWith(String) + @org.jetbrains.annotations.NotNull public final net.corda.testing.dsl.LedgerDSLInterpreter getInterpreter() + @org.jetbrains.annotations.NotNull public final net.corda.core.contracts.ContractState retrieveOutput(Class, String) + @org.jetbrains.annotations.NotNull public net.corda.core.contracts.StateAndRef retrieveOutputStateAndRef(Class, String) + @org.jetbrains.annotations.NotNull public final net.corda.core.transactions.WireTransaction transaction(String, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public final net.corda.core.transactions.WireTransaction transaction(String, net.corda.core.transactions.TransactionBuilder, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public final net.corda.core.transactions.WireTransaction transaction(kotlin.jvm.functions.Function1) + public final void tweak(kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public final net.corda.core.transactions.WireTransaction unverifiedTransaction(String, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public final net.corda.core.transactions.WireTransaction unverifiedTransaction(String, net.corda.core.transactions.TransactionBuilder, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public final net.corda.core.transactions.WireTransaction unverifiedTransaction(kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail verifies() +## +@net.corda.core.DoNotImplement public interface net.corda.testing.dsl.LedgerDSLInterpreter extends net.corda.testing.dsl.OutputStateLookup, net.corda.testing.dsl.Verifies + @org.jetbrains.annotations.NotNull public abstract net.corda.core.transactions.WireTransaction _transaction(String, net.corda.core.transactions.TransactionBuilder, kotlin.jvm.functions.Function1) + public abstract void _tweak(kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public abstract net.corda.core.transactions.WireTransaction _unverifiedTransaction(String, net.corda.core.transactions.TransactionBuilder, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public abstract net.corda.core.crypto.SecureHash attachment(java.io.InputStream) +## +@net.corda.core.DoNotImplement public interface net.corda.testing.dsl.OutputStateLookup + @org.jetbrains.annotations.NotNull public abstract net.corda.core.contracts.StateAndRef retrieveOutputStateAndRef(Class, String) +## +public final class net.corda.testing.dsl.TestLedgerDSLInterpreter extends java.lang.Object implements net.corda.testing.dsl.LedgerDSLInterpreter + public (net.corda.core.node.ServiceHub) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.WireTransaction _transaction(String, net.corda.core.transactions.TransactionBuilder, kotlin.jvm.functions.Function1) + public void _tweak(kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public net.corda.core.transactions.WireTransaction _unverifiedTransaction(String, net.corda.core.transactions.TransactionBuilder, kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.SecureHash attachment(java.io.InputStream) + @org.jetbrains.annotations.NotNull public final net.corda.core.node.ServiceHub component1() + @org.jetbrains.annotations.NotNull public final net.corda.testing.dsl.TestLedgerDSLInterpreter copy(net.corda.core.node.ServiceHub, HashMap, HashMap, HashMap) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail fails() + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail fails with(String) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail failsWith(String) + @org.jetbrains.annotations.NotNull public final net.corda.core.node.ServiceHub getServices() + @org.jetbrains.annotations.NotNull public final List getTransactionsToVerify() + @org.jetbrains.annotations.NotNull public final List getTransactionsUnverified() + @org.jetbrains.annotations.NotNull public final List getWireTransactions() + public int hashCode() + @org.jetbrains.annotations.Nullable public final String outputToLabel(net.corda.core.contracts.ContractState) + @org.jetbrains.annotations.NotNull public net.corda.core.contracts.StateAndRef retrieveOutputStateAndRef(Class, String) + public String toString() + @org.jetbrains.annotations.Nullable public final String transactionName(net.corda.core.crypto.SecureHash) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail verifies() + public static final net.corda.testing.dsl.TestLedgerDSLInterpreter$Companion Companion +## +public static final class net.corda.testing.dsl.TestLedgerDSLInterpreter$Companion extends java.lang.Object +## +public static final class net.corda.testing.dsl.TestLedgerDSLInterpreter$TypeMismatch extends java.lang.Exception + public (Class, Class) +## +public static final class net.corda.testing.dsl.TestLedgerDSLInterpreter$VerifiesFailed extends java.lang.Exception + public (String, Throwable) +## +public static final class net.corda.testing.dsl.TestLedgerDSLInterpreter$WireTransactionWithLocation extends java.lang.Object + public (String, net.corda.core.transactions.WireTransaction, String) + @org.jetbrains.annotations.Nullable public final String component1() + @org.jetbrains.annotations.NotNull public final net.corda.core.transactions.WireTransaction component2() + @org.jetbrains.annotations.Nullable public final String component3() + @org.jetbrains.annotations.NotNull public final net.corda.testing.dsl.TestLedgerDSLInterpreter$WireTransactionWithLocation copy(String, net.corda.core.transactions.WireTransaction, String) + public boolean equals(Object) + @org.jetbrains.annotations.Nullable public final String getLabel() + @org.jetbrains.annotations.Nullable public final String getLocation() + @org.jetbrains.annotations.NotNull public final net.corda.core.transactions.WireTransaction getTransaction() + public int hashCode() + public String toString() +## +public final class net.corda.testing.dsl.TestTransactionDSLInterpreter extends java.lang.Object implements net.corda.testing.dsl.TransactionDSLInterpreter, net.corda.testing.dsl.OutputStateLookup + public (net.corda.testing.dsl.TestLedgerDSLInterpreter, net.corda.core.transactions.TransactionBuilder) + public void _attachment(String) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail _tweak(kotlin.jvm.functions.Function1) + public void attachment(net.corda.core.crypto.SecureHash) + public void command(List, net.corda.core.contracts.CommandData) + @org.jetbrains.annotations.NotNull public final net.corda.testing.dsl.TestLedgerDSLInterpreter component1() + @org.jetbrains.annotations.NotNull public final net.corda.core.transactions.TransactionBuilder component2() + @org.jetbrains.annotations.NotNull public final net.corda.testing.dsl.TestTransactionDSLInterpreter copy(net.corda.testing.dsl.TestLedgerDSLInterpreter, net.corda.core.transactions.TransactionBuilder, HashMap) + public boolean equals(Object) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail fails() + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail fails with(String) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail failsWith(String) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.TestLedgerDSLInterpreter getLedgerInterpreter() + @org.jetbrains.annotations.NotNull public final net.corda.core.node.ServicesForResolution getServices() + @org.jetbrains.annotations.NotNull public final net.corda.core.transactions.TransactionBuilder getTransactionBuilder() + public int hashCode() + public void input(net.corda.core.contracts.StateRef) + public void output(String, String, net.corda.core.identity.Party, Integer, net.corda.core.contracts.AttachmentConstraint, net.corda.core.contracts.ContractState) + @org.jetbrains.annotations.NotNull public net.corda.core.contracts.StateAndRef retrieveOutputStateAndRef(Class, String) + public void timeWindow(net.corda.core.contracts.TimeWindow) + public String toString() + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail verifies() +## +public static final class net.corda.testing.dsl.TestTransactionDSLInterpreter$services$1 extends java.lang.Object implements net.corda.core.node.ServicesForResolution + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.AttachmentStorage getAttachments() + @org.jetbrains.annotations.NotNull public net.corda.core.cordapp.CordappProvider getCordappProvider() + @org.jetbrains.annotations.NotNull public net.corda.core.node.services.IdentityService getIdentityService() + @org.jetbrains.annotations.NotNull public net.corda.core.contracts.TransactionState loadState(net.corda.core.contracts.StateRef) + @org.jetbrains.annotations.NotNull public Set loadStates(Set) +## +public final class net.corda.testing.dsl.TransactionDSL extends java.lang.Object implements net.corda.testing.dsl.TransactionDSLInterpreter + public (net.corda.testing.dsl.TransactionDSLInterpreter, net.corda.core.identity.Party) + public void _attachment(String) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail _tweak(kotlin.jvm.functions.Function1) + public final void attachment(String) + public void attachment(net.corda.core.crypto.SecureHash) + public final void command(java.security.PublicKey, net.corda.core.contracts.CommandData) + public void command(List, net.corda.core.contracts.CommandData) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail fails() + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail fails with(String) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail failsWith(String) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.LedgerDSLInterpreter getLedgerInterpreter() + public final void input(String) + public final void input(String, String) + public final void input(String, net.corda.core.contracts.ContractState) + public void input(net.corda.core.contracts.StateRef) + public final void output(String, int, net.corda.core.contracts.ContractState) + public final void output(String, String, int, net.corda.core.contracts.ContractState) + public final void output(String, String, net.corda.core.contracts.ContractState) + public void output(String, String, net.corda.core.identity.Party, Integer, net.corda.core.contracts.AttachmentConstraint, net.corda.core.contracts.ContractState) + public final void output(String, String, net.corda.core.identity.Party, net.corda.core.contracts.ContractState) + public final void output(String, net.corda.core.contracts.ContractState) + public final void output(String, net.corda.core.identity.Party, net.corda.core.contracts.ContractState) + @org.jetbrains.annotations.NotNull public net.corda.core.contracts.StateAndRef retrieveOutputStateAndRef(Class, String) + public final void timeWindow(java.time.Instant) + public final void timeWindow(java.time.Instant, java.time.Duration) + public void timeWindow(net.corda.core.contracts.TimeWindow) + @org.jetbrains.annotations.NotNull public final net.corda.testing.dsl.EnforceVerifyOrFail tweak(kotlin.jvm.functions.Function1) + @org.jetbrains.annotations.NotNull public net.corda.testing.dsl.EnforceVerifyOrFail verifies() +## +@net.corda.core.DoNotImplement public interface net.corda.testing.dsl.TransactionDSLInterpreter extends net.corda.testing.dsl.OutputStateLookup, net.corda.testing.dsl.Verifies + public abstract void _attachment(String) + @org.jetbrains.annotations.NotNull public abstract net.corda.testing.dsl.EnforceVerifyOrFail _tweak(kotlin.jvm.functions.Function1) + public abstract void attachment(net.corda.core.crypto.SecureHash) + public abstract void command(List, net.corda.core.contracts.CommandData) + @org.jetbrains.annotations.NotNull public abstract net.corda.testing.dsl.LedgerDSLInterpreter getLedgerInterpreter() + public abstract void input(net.corda.core.contracts.StateRef) + public abstract void output(String, String, net.corda.core.identity.Party, Integer, net.corda.core.contracts.AttachmentConstraint, net.corda.core.contracts.ContractState) + public abstract void timeWindow(net.corda.core.contracts.TimeWindow) +## +@net.corda.core.DoNotImplement public interface net.corda.testing.dsl.Verifies + @org.jetbrains.annotations.NotNull public abstract net.corda.testing.dsl.EnforceVerifyOrFail fails() + @org.jetbrains.annotations.NotNull public abstract net.corda.testing.dsl.EnforceVerifyOrFail fails with(String) + @org.jetbrains.annotations.NotNull public abstract net.corda.testing.dsl.EnforceVerifyOrFail failsWith(String) + @org.jetbrains.annotations.NotNull public abstract net.corda.testing.dsl.EnforceVerifyOrFail verifies() +## +public final class net.corda.testing.http.HttpApi extends java.lang.Object + public (java.net.URL, com.fasterxml.jackson.databind.ObjectMapper) + @org.jetbrains.annotations.NotNull public final com.fasterxml.jackson.databind.ObjectMapper getMapper() + @org.jetbrains.annotations.NotNull public final java.net.URL getRoot() + public final void postJson(String, Object) + public final void postPlain(String, String) + public final void putJson(String, Object) + public static final net.corda.testing.http.HttpApi$Companion Companion +## +public static final class net.corda.testing.http.HttpApi$Companion extends java.lang.Object + @org.jetbrains.annotations.NotNull public final net.corda.testing.http.HttpApi fromHostAndPort(net.corda.core.utilities.NetworkHostAndPort, String, String, com.fasterxml.jackson.databind.ObjectMapper) +## +public final class net.corda.testing.http.HttpUtils extends java.lang.Object + @org.jetbrains.annotations.NotNull public final com.fasterxml.jackson.databind.ObjectMapper getDefaultMapper() + public final void postJson(java.net.URL, String) + public final void postPlain(java.net.URL, String) + public final void putJson(java.net.URL, String) + public static final net.corda.testing.http.HttpUtils INSTANCE +## +public final class net.corda.testing.services.FlowStackSnapshotFactoryImpl extends java.lang.Object implements net.corda.node.services.statemachine.FlowStackSnapshotFactory + public () + @co.paralleluniverse.fibers.Suspendable @org.jetbrains.annotations.NotNull public net.corda.core.flows.FlowStackSnapshot getFlowStackSnapshot(Class) + public void persistAsJsonFile(Class, java.nio.file.Path, net.corda.core.flows.StateMachineRunId) +## +public static final class net.corda.testing.services.FlowStackSnapshotFactoryImpl$ThreadLocalIndex$Companion extends java.lang.Object + @org.jetbrains.annotations.NotNull public final ThreadLocal getCurrentIndex() +## +public static final class net.corda.testing.services.FlowStackSnapshotFactoryImpl$ThreadLocalIndex$Companion$currentIndex$1 extends java.lang.ThreadLocal + @org.jetbrains.annotations.NotNull protected Integer initialValue() +## +public final class net.corda.testing.services.FlowStackSnapshotKt extends java.lang.Object +## +public final class net.corda.testing.services.MockAttachmentStorage extends net.corda.core.serialization.SingletonSerializeAsToken implements net.corda.core.node.services.AttachmentStorage + public () + @org.jetbrains.annotations.NotNull public final kotlin.Pair getAttachmentIdAndBytes(java.io.InputStream) + @org.jetbrains.annotations.NotNull public final HashMap getFiles() + public boolean hasAttachment(net.corda.core.crypto.SecureHash) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.SecureHash importAttachment(java.io.InputStream) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.SecureHash importAttachment(java.io.InputStream, String, String) + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.SecureHash importOrGetAttachment(java.io.InputStream) + @org.jetbrains.annotations.Nullable public net.corda.core.contracts.Attachment openAttachment(net.corda.core.crypto.SecureHash) + @org.jetbrains.annotations.NotNull public List queryAttachments(net.corda.core.node.services.vault.AttachmentQueryCriteria, net.corda.core.node.services.vault.AttachmentSort) + public static final net.corda.testing.services.MockAttachmentStorage$Companion Companion +## +public static final class net.corda.testing.services.MockAttachmentStorage$Companion extends java.lang.Object + public final byte[] getBytes(java.io.InputStream) +## +public static final class net.corda.testing.services.MockAttachmentStorage$openAttachment$1 extends net.corda.core.internal.AbstractAttachment + @org.jetbrains.annotations.NotNull public net.corda.core.crypto.SecureHash getId() +## +public final class net.corda.testing.services.MockCordappProvider extends net.corda.node.internal.cordapp.CordappProviderImpl + public (net.corda.node.internal.cordapp.CordappLoader, net.corda.core.node.services.AttachmentStorage) + public final void addMockCordapp(String, net.corda.testing.services.MockAttachmentStorage) + @org.jetbrains.annotations.Nullable public net.corda.core.crypto.SecureHash getContractAttachmentID(String) + @org.jetbrains.annotations.NotNull public final List getCordappRegistry() +## diff --git a/.gitignore b/.gitignore index 754141b827..f82219eeff 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ tags .DS_Store *.log *.orig +corda-docs-only-build # Created by .ignore support plugin (hsz.mobi) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 3bae340100..827ac604d2 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -87,6 +87,7 @@ + diff --git a/build.gradle b/build.gradle index 206335645f..cde8e505ec 100644 --- a/build.gradle +++ b/build.gradle @@ -37,7 +37,7 @@ buildscript { * https://issues.apache.org/jira/browse/ARTEMIS-1559 */ ext.artemis_version = '2.2.0' - ext.jackson_version = '2.9.2' + ext.jackson_version = '2.9.3' ext.jetty_version = '9.4.7.v20170914' ext.jersey_version = '2.25' ext.jolokia_version = '1.3.7' @@ -71,6 +71,10 @@ buildscript { ext.liquibase_version = '3.5.3' ext.shadow_version = '2.0.2' ext.hikari_version = '2.5.1' + ext.snake_yaml_version = constants.getProperty('snakeYamlVersion') + ext.docker_compose_rule_version = '0.33.0' + ext.selenium_version = '3.8.1' + ext.ghostdriver_version = '2.1.0' // Update 121 is required for ObjectInputFilter and at time of writing 131 was latest: ext.java8_minUpdateVersion = '131' @@ -79,6 +83,7 @@ buildscript { mavenLocal() mavenCentral() jcenter() + // This repository is needed for Dokka until 0.9.16 is released. maven { url 'https://dl.bintray.com/kotlin/kotlin-eap/' } @@ -378,8 +383,12 @@ task generateApi(type: net.corda.plugins.GenerateApi){ } // This exists to reduce CI build time when the envvar is set (can save up to 40 minutes) -if(System.getenv('CORDA_DOCS_ONLY_BUILD') != null) { - logger.info("Tests are disabled due to presence of envvar CORDA_DOCS_ONLY_BUILD") +if(file('corda-docs-only-build').exists() || (System.getenv('CORDA_DOCS_ONLY_BUILD') != null)) { + if(file('corda-docs-only-build').exists()) { + logger.info("Tests are disabled due to presence of file 'corda-docs-only-build' in the project root") + } else { + logger.info("Tests are disabled due to the presence of envvar CORDA_DOCS_ONLY_BUILD") + } allprojects { test { diff --git a/client/jackson/build.gradle b/client/jackson/build.gradle index fadfdf9975..2fd7eb9dc7 100644 --- a/client/jackson/build.gradle +++ b/client/jackson/build.gradle @@ -8,11 +8,11 @@ dependencies { compile project(':core') testCompile project(':test-utils') - compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version" + compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version" // Jackson and its plugins: parsing to/from JSON and other textual formats. - compile "com.fasterxml.jackson.module:jackson-module-kotlin:${jackson_version}" + compile "com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_version" // Yaml is useful for parsing strings to method calls. compile "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jackson_version" // This adds support for java.time types. diff --git a/client/jfx/src/integration-test/kotlin/net/corda/client/jfx/NodeMonitorModelTest.kt b/client/jfx/src/integration-test/kotlin/net/corda/client/jfx/NodeMonitorModelTest.kt index 47f2c95983..213de5bcbd 100644 --- a/client/jfx/src/integration-test/kotlin/net/corda/client/jfx/NodeMonitorModelTest.kt +++ b/client/jfx/src/integration-test/kotlin/net/corda/client/jfx/NodeMonitorModelTest.kt @@ -2,7 +2,7 @@ package net.corda.client.jfx import net.corda.client.jfx.model.NodeMonitorModel import net.corda.client.jfx.model.ProgressTrackingEvent -import net.corda.core.context.Origin +import net.corda.core.context.InvocationOrigin import net.corda.core.contracts.Amount import net.corda.core.contracts.ContractState import net.corda.core.crypto.isFulfilledBy @@ -158,8 +158,8 @@ class NodeMonitorModelTest : IntegrationTest() { // ISSUE expect { add: StateMachineUpdate.Added -> issueSmId = add.id - val context = add.stateMachineInfo.context() - require(context.origin is Origin.RPC && context.principal().name == "user1") + val context = add.stateMachineInfo.invocationContext + require(context.origin is InvocationOrigin.RPC && context.principal().name == "user1") }, expect { remove: StateMachineUpdate.Removed -> require(remove.id == issueSmId) @@ -167,8 +167,8 @@ class NodeMonitorModelTest : IntegrationTest() { // MOVE - N.B. There are other framework flows that happen in parallel for the remote resolve transactions flow expect(match = { it.stateMachineInfo.flowLogicClassName == CashPaymentFlow::class.java.name }) { add: StateMachineUpdate.Added -> moveSmId = add.id - val context = add.stateMachineInfo.context() - require(context.origin is Origin.RPC && context.principal().name == "user1") + val context = add.stateMachineInfo.invocationContext + require(context.origin is InvocationOrigin.RPC && context.principal().name == "user1") }, expect(match = { it is StateMachineUpdate.Removed && it.id == moveSmId }) { } @@ -179,8 +179,8 @@ class NodeMonitorModelTest : IntegrationTest() { sequence( // MOVE expect { add: StateMachineUpdate.Added -> - val context = add.stateMachineInfo.context() - require(context.origin is Origin.Peer && aliceNode.isLegalIdentity(aliceNode.identityFromX500Name((context.origin as Origin.Peer).party))) + val context = add.stateMachineInfo.invocationContext + require(context.origin is InvocationOrigin.Peer && aliceNode.isLegalIdentity(aliceNode.identityFromX500Name((context.origin as InvocationOrigin.Peer).party))) } ) } diff --git a/client/rpc/src/integration-test/kotlin/net/corda/client/rpc/CordaRPCClientTest.kt b/client/rpc/src/integration-test/kotlin/net/corda/client/rpc/CordaRPCClientTest.kt index 5cc07758b9..8979824d87 100644 --- a/client/rpc/src/integration-test/kotlin/net/corda/client/rpc/CordaRPCClientTest.kt +++ b/client/rpc/src/integration-test/kotlin/net/corda/client/rpc/CordaRPCClientTest.kt @@ -162,11 +162,11 @@ class CordaRPCClientTest : NodeBasedTest(listOf("net.corda.finance.contracts", C }, expect { update: StateMachineUpdate.Added -> checkRpcNotification(update.stateMachineInfo, rpcUser.username, historicalIds, externalTrace, impersonatedActor) - sessionId = update.stateMachineInfo.context().trace.sessionId + sessionId = update.stateMachineInfo.invocationContext.trace.sessionId }, expect { update: StateMachineUpdate.Added -> checkRpcNotification(update.stateMachineInfo, rpcUser.username, historicalIds, externalTrace, impersonatedActor) - assertThat(update.stateMachineInfo.context().trace.sessionId).isEqualTo(sessionId) + assertThat(update.stateMachineInfo.invocationContext.trace.sessionId).isEqualTo(sessionId) } ) } @@ -174,15 +174,13 @@ class CordaRPCClientTest : NodeBasedTest(listOf("net.corda.finance.contracts", C } private fun checkShellNotification(info: StateMachineInfo) { - - val context = info.context() - assertThat(context.origin).isInstanceOf(Origin.Shell::class.java) + val context = info.invocationContext + assertThat(context.origin).isInstanceOf(InvocationOrigin.Shell::class.java) } private fun checkRpcNotification(info: StateMachineInfo, rpcUsername: String, historicalIds: MutableSet, externalTrace: Trace?, impersonatedActor: Actor?) { - - val context = info.context() - assertThat(context.origin).isInstanceOf(Origin.RPC::class.java) + val context = info.invocationContext + assertThat(context.origin).isInstanceOf(InvocationOrigin.RPC::class.java) assertThat(context.externalTrace).isEqualTo(externalTrace) assertThat(context.impersonatedActor).isEqualTo(impersonatedActor) assertThat(context.actor?.id?.value).isEqualTo(rpcUsername) diff --git a/client/rpc/src/main/kotlin/net/corda/client/rpc/internal/KryoClientSerializationScheme.kt b/client/rpc/src/main/kotlin/net/corda/client/rpc/internal/KryoClientSerializationScheme.kt index 5a6adc58b9..67eab59f15 100644 --- a/client/rpc/src/main/kotlin/net/corda/client/rpc/internal/KryoClientSerializationScheme.kt +++ b/client/rpc/src/main/kotlin/net/corda/client/rpc/internal/KryoClientSerializationScheme.kt @@ -2,22 +2,22 @@ package net.corda.client.rpc.internal import com.esotericsoftware.kryo.pool.KryoPool import net.corda.core.serialization.SerializationContext +import net.corda.nodeapi.internal.serialization.CordaSerializationMagic import net.corda.core.serialization.internal.SerializationEnvironment import net.corda.core.serialization.internal.SerializationEnvironmentImpl import net.corda.core.serialization.internal.nodeSerializationEnv -import net.corda.core.utilities.ByteSequence import net.corda.nodeapi.internal.serialization.KRYO_P2P_CONTEXT import net.corda.nodeapi.internal.serialization.KRYO_RPC_CLIENT_CONTEXT import net.corda.nodeapi.internal.serialization.SerializationFactoryImpl import net.corda.nodeapi.internal.serialization.amqp.AMQPClientSerializationScheme import net.corda.nodeapi.internal.serialization.kryo.AbstractKryoSerializationScheme import net.corda.nodeapi.internal.serialization.kryo.DefaultKryoCustomizer -import net.corda.nodeapi.internal.serialization.kryo.KryoHeaderV0_1 +import net.corda.nodeapi.internal.serialization.kryo.kryoMagic import net.corda.nodeapi.internal.serialization.kryo.RPCKryo class KryoClientSerializationScheme : AbstractKryoSerializationScheme() { - override fun canDeserializeVersion(byteSequence: ByteSequence, target: SerializationContext.UseCase): Boolean { - return byteSequence == KryoHeaderV0_1 && (target == SerializationContext.UseCase.RPCClient || target == SerializationContext.UseCase.P2P) + override fun canDeserializeVersion(magic: CordaSerializationMagic, target: SerializationContext.UseCase): Boolean { + return magic == kryoMagic && (target == SerializationContext.UseCase.RPCClient || target == SerializationContext.UseCase.P2P) } override fun rpcClientKryoPool(context: SerializationContext): KryoPool { diff --git a/confidential-identities/src/test/kotlin/net/corda/confidential/IdentitySyncFlowTests.kt b/confidential-identities/src/test/kotlin/net/corda/confidential/IdentitySyncFlowTests.kt index 698d5fe6f0..aae595ca7f 100644 --- a/confidential-identities/src/test/kotlin/net/corda/confidential/IdentitySyncFlowTests.kt +++ b/confidential-identities/src/test/kotlin/net/corda/confidential/IdentitySyncFlowTests.kt @@ -58,12 +58,12 @@ class IdentitySyncFlowTests { val anonymous = true val ref = OpaqueBytes.of(0x01) val issueFlow = aliceNode.services.startFlow(CashIssueAndPaymentFlow(1000.DOLLARS, ref, alice, anonymous, notary)) - val issueTx = issueFlow.resultFuture.getOrThrow().stx + val issueTx = issueFlow.getOrThrow().stx val confidentialIdentity = issueTx.tx.outputs.map { it.data }.filterIsInstance().single().owner assertNull(bobNode.database.transaction { bobNode.services.identityService.wellKnownPartyFromAnonymous(confidentialIdentity) }) // Run the flow to sync up the identities - aliceNode.services.startFlow(Initiator(bob, issueTx.tx)).resultFuture.getOrThrow() + aliceNode.services.startFlow(Initiator(bob, issueTx.tx)).getOrThrow() val expected = aliceNode.database.transaction { aliceNode.services.identityService.wellKnownPartyFromAnonymous(confidentialIdentity) } @@ -88,7 +88,7 @@ class IdentitySyncFlowTests { val anonymous = true val ref = OpaqueBytes.of(0x01) val issueFlow = charlieNode.services.startFlow(CashIssueAndPaymentFlow(1000.DOLLARS, ref, charlie, anonymous, notary)) - val issueTx = issueFlow.resultFuture.getOrThrow().stx + val issueTx = issueFlow.getOrThrow().stx val confidentialIdentity = issueTx.tx.outputs.map { it.data }.filterIsInstance().single().owner val confidentialIdentCert = charlieNode.services.identityService.certificateFromKey(confidentialIdentity.owningKey)!! @@ -97,11 +97,11 @@ class IdentitySyncFlowTests { assertNotNull(aliceNode.database.transaction { aliceNode.services.identityService.wellKnownPartyFromAnonymous(confidentialIdentity) }) // Generate a payment from Charlie to Alice, including the confidential state - val payTx = charlieNode.services.startFlow(CashPaymentFlow(1000.DOLLARS, alice, anonymous)).resultFuture.getOrThrow().stx + val payTx = charlieNode.services.startFlow(CashPaymentFlow(1000.DOLLARS, alice, anonymous)).getOrThrow().stx // Run the flow to sync up the identities, and confirm Charlie's confidential identity doesn't leak assertNull(bobNode.database.transaction { bobNode.services.identityService.wellKnownPartyFromAnonymous(confidentialIdentity) }) - aliceNode.services.startFlow(Initiator(bob, payTx.tx)).resultFuture.getOrThrow() + aliceNode.services.startFlow(Initiator(bob, payTx.tx)).getOrThrow() assertNull(bobNode.database.transaction { bobNode.services.identityService.wellKnownPartyFromAnonymous(confidentialIdentity) }) } diff --git a/confidential-identities/src/test/kotlin/net/corda/confidential/SwapIdentitiesFlowTests.kt b/confidential-identities/src/test/kotlin/net/corda/confidential/SwapIdentitiesFlowTests.kt index f1e2efe9ae..f8fbc6668d 100644 --- a/confidential-identities/src/test/kotlin/net/corda/confidential/SwapIdentitiesFlowTests.kt +++ b/confidential-identities/src/test/kotlin/net/corda/confidential/SwapIdentitiesFlowTests.kt @@ -30,7 +30,7 @@ class SwapIdentitiesFlowTests { val requesterFlow = aliceNode.services.startFlow(SwapIdentitiesFlow(bob)) // Get the results - val actual: Map = requesterFlow.resultFuture.getOrThrow().toMap() + val actual: Map = requesterFlow.getOrThrow().toMap() assertEquals(2, actual.size) // Verify that the generated anonymous identities do not match the well known identities val aliceAnonymousIdentity = actual[alice] ?: throw IllegalStateException() diff --git a/constants.properties b/constants.properties index aa6e223ca6..930a39acd2 100644 --- a/constants.properties +++ b/constants.properties @@ -1,8 +1,9 @@ gradlePluginsVersion=3.0.5 -kotlinVersion=1.1.60 -platformVersion=3 +kotlinVersion=1.2.20 +platformVersion=2 guavaVersion=21.0 bouncycastleVersion=1.57 typesafeConfigVersion=1.3.1 jsr305Version=3.0.2 -artifactoryPluginVersion=4.4.18 \ No newline at end of file +artifactoryPluginVersion=4.4.18 +snakeYamlVersion=1.19 \ No newline at end of file diff --git a/core/build.gradle b/core/build.gradle index 778c169d64..0b6b615236 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -107,7 +107,7 @@ dependencies { // Apache JEXL: An embeddable expression evaluation library. // This may be temporary until we experiment with other ways to do on-the-fly contract specialisation via an API. compile "org.apache.commons:commons-jexl3:3.0" - + compile 'commons-lang:commons-lang:2.6' // For JSON compile "com.fasterxml.jackson.core:jackson-databind:${jackson_version}" diff --git a/core/src/main/kotlin/net/corda/core/CordaInternal.kt b/core/src/main/kotlin/net/corda/core/CordaInternal.kt new file mode 100644 index 0000000000..40f145fdec --- /dev/null +++ b/core/src/main/kotlin/net/corda/core/CordaInternal.kt @@ -0,0 +1,11 @@ +package net.corda.core + +/** + * These methods are not part of Corda's API compatibility guarantee and applications should not use them. + * + * These fields are only meant to be used by Corda internally, and are not intended to be part of the public API. + */ +@Retention(AnnotationRetention.BINARY) +@Target(AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER) +@MustBeDocumented +annotation class CordaInternal \ No newline at end of file diff --git a/core/src/main/kotlin/net/corda/core/context/AuthServiceId.kt b/core/src/main/kotlin/net/corda/core/context/AuthServiceId.kt deleted file mode 100644 index 9edc2680ca..0000000000 --- a/core/src/main/kotlin/net/corda/core/context/AuthServiceId.kt +++ /dev/null @@ -1,9 +0,0 @@ -package net.corda.core.context - -import net.corda.core.serialization.CordaSerializable - -/** - * Authentication / Authorisation Service ID. - */ -@CordaSerializable -data class AuthServiceId(val value: String) \ No newline at end of file diff --git a/core/src/main/kotlin/net/corda/core/context/InvocationContext.kt b/core/src/main/kotlin/net/corda/core/context/InvocationContext.kt index 9ca93033c0..58c1544c21 100644 --- a/core/src/main/kotlin/net/corda/core/context/InvocationContext.kt +++ b/core/src/main/kotlin/net/corda/core/context/InvocationContext.kt @@ -9,52 +9,50 @@ import java.security.Principal * Models the information needed to trace an invocation in Corda. * Includes initiating actor, origin, trace information, and optional external trace information to correlate clients' IDs. * - * @param origin origin of the invocation. - * @param trace Corda invocation trace. - * @param actor acting agent of the invocation, used to derive the security principal. - * @param externalTrace optional external invocation trace for cross-system logs correlation. - * @param impersonatedActor optional impersonated actor, used for logging but not for authorisation. + * @property origin Origin of the invocation. + * @property trace Corda invocation trace. + * @property actor Acting agent of the invocation, used to derive the security principal. + * @property externalTrace Optional external invocation trace for cross-system logs correlation. + * @property impersonatedActor Optional impersonated actor, used for logging but not for authorisation. */ @CordaSerializable -data class InvocationContext(val origin: Origin, val trace: Trace, val actor: Actor?, val externalTrace: Trace? = null, val impersonatedActor: Actor? = null) { - +data class InvocationContext(val origin: InvocationOrigin, val trace: Trace, val actor: Actor?, val externalTrace: Trace? = null, val impersonatedActor: Actor? = null) { companion object { - /** * Creates an [InvocationContext] with a [Trace] that defaults to a [java.util.UUID] as value and [java.time.Instant.now] timestamp. */ @JvmStatic - fun newInstance(origin: Origin, trace: Trace = Trace.newInstance(), actor: Actor? = null, externalTrace: Trace? = null, impersonatedActor: Actor? = null) = InvocationContext(origin, trace, actor, externalTrace, impersonatedActor) + fun newInstance(origin: InvocationOrigin, trace: Trace = Trace.newInstance(), actor: Actor? = null, externalTrace: Trace? = null, impersonatedActor: Actor? = null) = InvocationContext(origin, trace, actor, externalTrace, impersonatedActor) /** - * Creates an [InvocationContext] with [Origin.RPC] origin. + * Creates an [InvocationContext] with [InvocationOrigin.RPC] origin. */ @JvmStatic - fun rpc(actor: Actor, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null, impersonatedActor: Actor? = null): InvocationContext = newInstance(Origin.RPC(actor), trace, actor, externalTrace, impersonatedActor) + fun rpc(actor: Actor, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null, impersonatedActor: Actor? = null): InvocationContext = newInstance(InvocationOrigin.RPC(actor), trace, actor, externalTrace, impersonatedActor) /** - * Creates an [InvocationContext] with [Origin.Peer] origin. + * Creates an [InvocationContext] with [InvocationOrigin.Peer] origin. */ @JvmStatic - fun peer(party: CordaX500Name, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null, impersonatedActor: Actor? = null): InvocationContext = newInstance(Origin.Peer(party), trace, null, externalTrace, impersonatedActor) + fun peer(party: CordaX500Name, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null, impersonatedActor: Actor? = null): InvocationContext = newInstance(InvocationOrigin.Peer(party), trace, null, externalTrace, impersonatedActor) /** - * Creates an [InvocationContext] with [Origin.Service] origin. + * Creates an [InvocationContext] with [InvocationOrigin.Service] origin. */ @JvmStatic - fun service(serviceClassName: String, owningLegalIdentity: CordaX500Name, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext = newInstance(Origin.Service(serviceClassName, owningLegalIdentity), trace, null, externalTrace) + fun service(serviceClassName: String, owningLegalIdentity: CordaX500Name, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext = newInstance(InvocationOrigin.Service(serviceClassName, owningLegalIdentity), trace, null, externalTrace) /** - * Creates an [InvocationContext] with [Origin.Scheduled] origin. + * Creates an [InvocationContext] with [InvocationOrigin.Scheduled] origin. */ @JvmStatic - fun scheduled(scheduledState: ScheduledStateRef, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext = newInstance(Origin.Scheduled(scheduledState), trace, null, externalTrace) + fun scheduled(scheduledState: ScheduledStateRef, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext = newInstance(InvocationOrigin.Scheduled(scheduledState), trace, null, externalTrace) /** - * Creates an [InvocationContext] with [Origin.Shell] origin. + * Creates an [InvocationContext] with [InvocationOrigin.Shell] origin. */ @JvmStatic - fun shell(trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext = InvocationContext(Origin.Shell, trace, null, externalTrace) + fun shell(trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext = InvocationContext(InvocationOrigin.Shell, trace, null, externalTrace) } /** @@ -83,11 +81,10 @@ data class Actor(val id: Id, val serviceId: AuthServiceId, val owningLegalIdenti } /** - * Invocation origin for tracing purposes. + * Represents the source of an action such as a flow start, an RPC, a shell command etc. */ @CordaSerializable -sealed class Origin { - +sealed class InvocationOrigin { /** * Returns the [Principal] for a given [Actor]. */ @@ -96,32 +93,28 @@ sealed class Origin { /** * Origin was an RPC call. */ - data class RPC(private val actor: Actor) : Origin() { - + data class RPC(private val actor: Actor) : InvocationOrigin() { override fun principal() = Principal { actor.id.value } } /** * Origin was a message sent by a [Peer]. */ - data class Peer(val party: CordaX500Name) : Origin() { - + data class Peer(val party: CordaX500Name) : InvocationOrigin() { override fun principal() = Principal { party.toString() } } /** * Origin was a Corda Service. */ - data class Service(val serviceClassName: String, val owningLegalIdentity: CordaX500Name) : Origin() { - + data class Service(val serviceClassName: String, val owningLegalIdentity: CordaX500Name) : InvocationOrigin() { override fun principal() = Principal { serviceClassName } } /** * Origin was a scheduled activity. */ - data class Scheduled(val scheduledState: ScheduledStateRef) : Origin() { - + data class Scheduled(val scheduledState: ScheduledStateRef) : InvocationOrigin() { override fun principal() = Principal { "Scheduler" } } @@ -129,8 +122,13 @@ sealed class Origin { /** * Origin was the Shell. */ - object Shell : Origin() { - + object Shell : InvocationOrigin() { override fun principal() = Principal { "Shell User" } } -} \ No newline at end of file +} + +/** + * Authentication / Authorisation Service ID. + */ +@CordaSerializable +data class AuthServiceId(val value: String) \ No newline at end of file diff --git a/core/src/main/kotlin/net/corda/core/contracts/Attachment.kt b/core/src/main/kotlin/net/corda/core/contracts/Attachment.kt index 641e730417..654fd51a89 100644 --- a/core/src/main/kotlin/net/corda/core/contracts/Attachment.kt +++ b/core/src/main/kotlin/net/corda/core/contracts/Attachment.kt @@ -50,4 +50,9 @@ interface Attachment : NamedByHash { * Can be empty, for example non-contract attachments won't be necessarily be signed. */ val signers: List + + /** + * Attachment size in bytes. + */ + val size: Int } diff --git a/core/src/main/kotlin/net/corda/core/contracts/ContractState.kt b/core/src/main/kotlin/net/corda/core/contracts/ContractState.kt index f797254f21..b9f3d48fc4 100644 --- a/core/src/main/kotlin/net/corda/core/contracts/ContractState.kt +++ b/core/src/main/kotlin/net/corda/core/contracts/ContractState.kt @@ -1,7 +1,6 @@ package net.corda.core.contracts import net.corda.core.identity.AbstractParty -import net.corda.core.identity.Party import net.corda.core.serialization.CordaSerializable // DOCSTART 1 diff --git a/core/src/main/kotlin/net/corda/core/contracts/Structures.kt b/core/src/main/kotlin/net/corda/core/contracts/Structures.kt index cc1abb0d56..42b8eff91f 100644 --- a/core/src/main/kotlin/net/corda/core/contracts/Structures.kt +++ b/core/src/main/kotlin/net/corda/core/contracts/Structures.kt @@ -46,7 +46,7 @@ interface NamedByHash { @CordaSerializable data class Issued(val issuer: PartyAndReference, val product: P) { init { - require(issuer.reference.bytes.size <= MAX_ISSUER_REF_SIZE) { "Maximum issuer reference size is $MAX_ISSUER_REF_SIZE." } + require(issuer.reference.size <= MAX_ISSUER_REF_SIZE) { "Maximum issuer reference size is $MAX_ISSUER_REF_SIZE." } } override fun toString() = "$product issued by $issuer" } diff --git a/core/src/main/kotlin/net/corda/core/crypto/CompositeKey.kt b/core/src/main/kotlin/net/corda/core/crypto/CompositeKey.kt index 1fe4103d4f..98bac0dae0 100644 --- a/core/src/main/kotlin/net/corda/core/crypto/CompositeKey.kt +++ b/core/src/main/kotlin/net/corda/core/crypto/CompositeKey.kt @@ -1,6 +1,5 @@ package net.corda.core.crypto -import net.corda.core.crypto.CompositeKey.NodeAndWeight import net.corda.core.serialization.CordaSerializable import net.corda.core.utilities.exactAdd import net.corda.core.utilities.sequence @@ -12,7 +11,7 @@ import java.util.* /** * A tree data structure that enables the representation of composite public keys, which are used to represent - * the signing requirements for multisignature scenarios such as RAFT notary services. A composite key is a list + * the signing requirements for multi-signature scenarios such as RAFT notary services. A composite key is a list * of leaf keys and their contributing weight, and each leaf can be a conventional single key or a composite key. * Keys contribute their weight to the total if they are matched by the signature. * @@ -53,9 +52,19 @@ class CompositeKey private constructor(val threshold: Int, children: List({ -it.weight }, { it.node.encoded.sequence() }) } - val children: List = children.sorted() + /** + * Τhe order of the children may not be the same to what was provided in the builder. + */ + val children: List = children.sortedWith(descWeightComparator) init { // TODO: replace with the more extensive, but slower, checkValidity() test. @@ -103,9 +112,9 @@ class CompositeKey private constructor(val threshold: Int, children: List() visitedMap.put(this, true) cycleDetection(visitedMap) // Graph cycle testing on the root node. @@ -143,6 +152,7 @@ class CompositeKey private constructor(val threshold: Int, children: List): Boolean { - if (keysToCheck.any { it is CompositeKey }) return false - val totalWeight = children.map { (node, weight) -> + var totalWeight = 0 + children.forEach { (node, weight) -> if (node is CompositeKey) { - if (node.checkFulfilledBy(keysToCheck)) weight else 0 + if (node.checkFulfilledBy(keysToCheck)) totalWeight += weight } else { - if (keysToCheck.contains(node)) weight else 0 + if (node in keysToCheck) totalWeight += weight } - }.sum() - return totalWeight >= threshold + if (totalWeight >= threshold) return true + } + return false } /** @@ -201,8 +212,8 @@ class CompositeKey private constructor(val threshold: Int, children: List): Boolean { // We validate keys only when checking if they're matched, as this checks subkeys as a result. // Doing these checks at deserialization/construction time would result in duplicate checks. - if (!validated) - checkValidity() // TODO: remove when checkValidity() will be eventually invoked during/after deserialization. + checkValidity() + if (keysToCheck.any { it is CompositeKey }) return false return checkFulfilledBy(keysToCheck) } diff --git a/core/src/main/kotlin/net/corda/core/crypto/Crypto.kt b/core/src/main/kotlin/net/corda/core/crypto/Crypto.kt index 98c150b5b8..cac653fbc6 100644 --- a/core/src/main/kotlin/net/corda/core/crypto/Crypto.kt +++ b/core/src/main/kotlin/net/corda/core/crypto/Crypto.kt @@ -55,7 +55,7 @@ import javax.crypto.spec.SecretKeySpec * However, only the schemes returned by {@link #listSupportedSignatureSchemes()} are supported. * Note that Corda currently supports the following signature schemes by their code names: *