Class CustomCordapp
-
- All Implemented Interfaces:
public final class CustomCordapp extends TestCordappInternal
Represents a completely custom CorDapp comprising of resources taken from packages on the existing classpath, even including individual disparate classes. The CorDapp metadata that's present in the MANIFEST can also be tailored.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
CustomCordapp.SigningInfo
public class
CustomCordapp.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Path
jarFile
private final Set<String>
packages
private final String
name
private final Integer
versionId
private final Integer
targetPlatformVersion
private final Set<Class<?>>
classes
private final List<<Error class: unknown class>>
fixups
private final CustomCordapp.SigningInfo
signingInfo
private final Map<String, Object>
config
public final static CustomCordapp.Companion
Companion
-
Method Summary
Modifier and Type Method Description Path
getJarFile()
The jar file this CorDapp represents. final Set<String>
getPackages()
final String
getName()
final Integer
getVersionId()
final Integer
getTargetPlatformVersion()
final Set<Class<?>>
getClasses()
final List<<Error class: unknown class>>
getFixups()
final CustomCordapp.SigningInfo
getSigningInfo()
Map<String, Object>
getConfig()
Returns the config for on this CorDapp, defaults to empty if not specified. CustomCordapp
withConfig(Map<String, Object> config)
Returns a copy of this TestCordapp but with the specified CorDapp config. CustomCordapp
withOnlyJarContents()
Return a copy of this TestCordappInternal but without any metadata, such as configs and signing information. CustomCordapp
asSigned()
Returns a copy of this TestCordapp signed with a development signing key. final CustomCordapp
signed(Path keyStorePath, Integer numberOfSignatures, String keyAlgorithm)
-
-
Method Detail
-
getJarFile
Path getJarFile()
The jar file this CorDapp represents. Different CorDapps may point to the same file.
-
getPackages
final Set<String> getPackages()
-
getVersionId
final Integer getVersionId()
-
getTargetPlatformVersion
final Integer getTargetPlatformVersion()
-
getClasses
final Set<Class<?>> getClasses()
-
getSigningInfo
final CustomCordapp.SigningInfo getSigningInfo()
-
getConfig
Map<String, Object> getConfig()
Returns the config for on this CorDapp, defaults to empty if not specified.
-
withConfig
CustomCordapp withConfig(Map<String, Object> config)
Returns a copy of this TestCordapp but with the specified CorDapp config.
-
withOnlyJarContents
CustomCordapp withOnlyJarContents()
Return a copy of this TestCordappInternal but without any metadata, such as configs and signing information.
-
asSigned
CustomCordapp asSigned()
Returns a copy of this TestCordapp signed with a development signing key. The same signing key will be used for all signed TestCordapps. If the CorDapp jar is already signed, then the new jar created will its signing key replaced by the development key.
-
signed
final CustomCordapp signed(Path keyStorePath, Integer numberOfSignatures, String keyAlgorithm)
-
-
-
-