Skip to content

Commit

Permalink
Changes in TimeStamp Token provider to permit HTTPS and monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro Souza Costa committed Feb 5, 2018
1 parent 1349990 commit fac34cd
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/target
.classpath
.project
.settings
target/
/.idea
/out
nb-configuration.xml
14 changes: 13 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.googlecode.xades4j</groupId>
<artifactId>xades4j</artifactId>
<packaging>jar</packaging>
<version>1.3.3-SILEGIS-SNAPSHOT</version>
<version>1.3.3-SILEGISMG-SNAPSHOT</version>
<name>xades4j</name>
<url>https://github.com/luisgoncalves/xades4j</url>

Expand Down Expand Up @@ -197,6 +197,18 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private static ASN1ObjectIdentifier identifierForDigest(String digestAlgUri) {
}

@Override
public final TimeStampTokenRes getTimeStampToken(byte[] tsDigestInput, String digestAlgUri) throws TimeStampTokenGenerationException {
public TimeStampTokenRes getTimeStampToken(byte[] tsDigestInput, String digestAlgUri) throws TimeStampTokenGenerationException {
byte[] digest;
try {
MessageDigest md = messageDigestProvider.getEngine(digestAlgUri);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected byte[] getResponse(byte[] encodedRequest) throws TimeStampTokenGenerat
}
}

private HttpURLConnection createHttpConnection() throws IOException {
protected HttpURLConnection createHttpConnection() throws IOException {
HttpURLConnection connection = (HttpURLConnection) new URL(this.temporaryGetTSAUrl()).openConnection();

if (this.base64TsaUsrAndPwd != null) {
Expand Down

0 comments on commit fac34cd

Please sign in to comment.