forked from corda/corda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move CompositeSignaturesWithKeys into net.corda.core.crypto package.
* Rename and move CordaPluginRegistry to reflect its real purpose now. * Docs: docsite improvements * Remove discussion of webserver from 'writing a cordapp' page. * Fixup some flow docs. * Add a couple more package descriptions. * Review comments - always apply default whitelist and no longer load it via ServiceLoader * Added wording about renaming services resource file
- Loading branch information
Showing
31 changed files
with
114 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
core/src/main/kotlin/net/corda/core/crypto/CompositeSignature.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
.../composite/CompositeSignaturesWithKeys.kt → ...ore/crypto/CompositeSignaturesWithKeys.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
core/src/main/kotlin/net/corda/core/node/CordaPluginRegistry.kt
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
core/src/main/kotlin/net/corda/core/serialization/SerializationCustomization.kt
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
core/src/main/kotlin/net/corda/core/serialization/SerializationWhitelist.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package net.corda.core.serialization | ||
|
||
/** | ||
* Provide a subclass of this via the [java.util.ServiceLoader] mechanism to be able to whitelist types for | ||
* serialisation that you cannot otherwise annotate. The name of the class must appear in a text file on the | ||
* classpath under the path META-INF/services/net.corda.core.serialization.SerializationWhitelist | ||
*/ | ||
interface SerializationWhitelist { | ||
/** | ||
* Optionally whitelist types for use in object serialization, as we lock down the types that can be serialized. | ||
* | ||
* For example, if you add a new [net.corda.core.contracts.ContractState] it needs to be whitelisted. You can do that | ||
* either by adding the [net.corda.core.serialization.CordaSerializable] annotation or via this method. | ||
*/ | ||
val whitelist: List<Class<*>> | ||
} |
3 changes: 1 addition & 2 deletions
3
core/src/test/kotlin/net/corda/core/crypto/CompositeKeyTests.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
finance/isolated/src/main/kotlin/net/corda/finance/contracts/isolated/IsolatedPlugin.kt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...nce/isolated/src/main/resources/META-INF/services/net.corda.core.node.CordaPluginRegistry
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.