Skip to content

Commit c934f29

Browse files
samspychergrealish
authored andcommitted
change logging statement
1 parent 0b069d4 commit c934f29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

parsec-jca-java/src/main/java/org/parallaxsecond/parsec/jce/provider/ParsecSignature.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.parallaxsecond.parsec.client.exceptions.ClientException;
66
import org.parallaxsecond.parsec.client.exceptions.ServiceException;
77
import org.parallaxsecond.parsec.protocol.operations.NativeResult;
8+
import org.slf4j.Logger;
89
import sun.security.jca.Providers;
910

1011
import java.security.*;
@@ -17,6 +18,7 @@ public final class ParsecSignature extends SignatureSpi {
1718
private String keyName;
1819
private MessageDigest messageDigest;
1920
private Signature verifyerDelegate;
21+
private Logger logger;
2022

2123
@Override
2224
protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException {
@@ -68,6 +70,8 @@ protected byte[] engineSign() throws SignatureException {
6870
parsecClientAccessor
6971
.get()
7072
.psaSignHash(keyName, digest, signatureInfo.getParsecAlgorithm());
73+
logger.info("Signed with algorithm {)", signatureInfo.getAlgorithmName());
74+
7175
return r.getSignature();
7276
} catch (ServiceException | ClientException e) {
7377
throw new SignatureException("error signing value, signatureInfo: " + signatureInfo, e);

0 commit comments

Comments
 (0)