File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
parsec-jca-java/src/main/java/org/parallaxsecond/parsec/jce/provider Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 5
5
import org .parallaxsecond .parsec .client .exceptions .ClientException ;
6
6
import org .parallaxsecond .parsec .client .exceptions .ServiceException ;
7
7
import org .parallaxsecond .parsec .protocol .operations .NativeResult ;
8
+ import org .slf4j .Logger ;
8
9
import sun .security .jca .Providers ;
9
10
10
11
import java .security .*;
@@ -17,6 +18,7 @@ public final class ParsecSignature extends SignatureSpi {
17
18
private String keyName ;
18
19
private MessageDigest messageDigest ;
19
20
private Signature verifyerDelegate ;
21
+ private Logger logger ;
20
22
21
23
@ Override
22
24
protected void engineInitSign (PrivateKey privateKey ) throws InvalidKeyException {
@@ -68,6 +70,8 @@ protected byte[] engineSign() throws SignatureException {
68
70
parsecClientAccessor
69
71
.get ()
70
72
.psaSignHash (keyName , digest , signatureInfo .getParsecAlgorithm ());
73
+ logger .info ("Signed with algorithm {)" , signatureInfo .getAlgorithmName ());
74
+
71
75
return r .getSignature ();
72
76
} catch (ServiceException | ClientException e ) {
73
77
throw new SignatureException ("error signing value, signatureInfo: " + signatureInfo , e );
You can’t perform that action at this time.
0 commit comments