PBCAgent2G添加无参构造
This commit is contained in:
parent
bb1b7fa828
commit
7a9cdac10a
@ -53,19 +53,37 @@
|
|||||||
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<finalName>${project.artifactId}-${project.version}</finalName>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<version>3.4.2</version>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
<version>3.7.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<archive>
|
<archive>
|
||||||
<manifest>
|
<manifest>
|
||||||
<mainClass>cn.com.infosec.netsign.agent.Main</mainClass>
|
<mainClass>cn.com.infosec.netsign.agent.Main</mainClass>
|
||||||
</manifest>
|
</manifest>
|
||||||
</archive>
|
</archive>
|
||||||
|
|
||||||
<descriptorRefs>
|
<descriptorRefs>
|
||||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||||
</descriptorRefs>
|
</descriptorRefs>
|
||||||
|
|
||||||
|
<appendAssemblyId>false</appendAssemblyId>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>make-assembly</id>
|
<id>make-assembly</id>
|
||||||
|
|||||||
@ -34,6 +34,12 @@ public class PBCAgent2G{
|
|||||||
this.properties = SignServerPropertiesLoader.getProperties();
|
this.properties = SignServerPropertiesLoader.getProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PBCAgent2G(boolean usingSingleServiceList) {
|
||||||
|
this.okHttpClient = OkHttpClientHolder.getClient();
|
||||||
|
this.objectMapper = new ObjectMapper();
|
||||||
|
this.properties = SignServerPropertiesLoader.getProperties();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public String rawSign(byte[] origBytes, String dn) {
|
public String rawSign(byte[] origBytes, String dn) {
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user