Class SignJarTask
- java.lang.Object
-
- pro.gravit.launchserver.binary.tasks.SignJarTask
-
- All Implemented Interfaces:
LauncherBuildTask
public class SignJarTask extends java.lang.Object implements LauncherBuildTask
-
-
Constructor Summary
Constructors Constructor Description SignJarTask(LaunchServerConfig.JarSignerConf config, LaunchServer srv)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowDelete()static org.bouncycastle.cms.CMSSignedDataGeneratorgen(LaunchServerConfig.JarSignerConf config, java.security.KeyStore c)java.lang.StringgetName()java.nio.file.Pathprocess(java.nio.file.Path inputFile)voidsign(LaunchServerConfig.JarSignerConf config, java.nio.file.Path inputFile, java.nio.file.Path signedFile)
-
-
-
Constructor Detail
-
SignJarTask
public SignJarTask(LaunchServerConfig.JarSignerConf config, LaunchServer srv)
-
-
Method Detail
-
gen
public static org.bouncycastle.cms.CMSSignedDataGenerator gen(LaunchServerConfig.JarSignerConf config, java.security.KeyStore c)
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceLauncherBuildTask
-
process
public java.nio.file.Path process(java.nio.file.Path inputFile) throws java.io.IOException- Specified by:
processin interfaceLauncherBuildTask- Throws:
java.io.IOException
-
sign
public void sign(LaunchServerConfig.JarSignerConf config, java.nio.file.Path inputFile, java.nio.file.Path signedFile) throws java.io.IOException
- Throws:
java.io.IOException
-
allowDelete
public boolean allowDelete()
- Specified by:
allowDeletein interfaceLauncherBuildTask
-
-