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 55import org .parallaxsecond .parsec .client .exceptions .ClientException ;
66import org .parallaxsecond .parsec .client .exceptions .ServiceException ;
77import org .parallaxsecond .parsec .protocol .operations .NativeResult ;
8+ import org .slf4j .Logger ;
89import sun .security .jca .Providers ;
910
1011import 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 );
You can’t perform that action at this time.
0 commit comments