8031191: Warning exception when XMLSignature logging is enabled
Reviewed-by: mullan, chegar
This commit is contained in:
parent
629f38682e
commit
9f89f1d4da
@ -699,15 +699,15 @@ public final class XMLSignature extends SignatureElementProxy {
|
|||||||
//create a SignatureAlgorithms from the SignatureMethod inside
|
//create a SignatureAlgorithms from the SignatureMethod inside
|
||||||
//SignedInfo. This is used to validate the signature.
|
//SignedInfo. This is used to validate the signature.
|
||||||
SignatureAlgorithm sa = si.getSignatureAlgorithm();
|
SignatureAlgorithm sa = si.getSignatureAlgorithm();
|
||||||
if (log.isLoggable(java.util.logging.Level.FINE)) {
|
|
||||||
log.log(java.util.logging.Level.FINE, "signatureMethodURI = " + sa.getAlgorithmURI());
|
|
||||||
log.log(java.util.logging.Level.FINE, "jceSigAlgorithm = " + sa.getJCEAlgorithmString());
|
|
||||||
log.log(java.util.logging.Level.FINE, "jceSigProvider = " + sa.getJCEProviderName());
|
|
||||||
log.log(java.util.logging.Level.FINE, "PublicKey = " + pk);
|
|
||||||
}
|
|
||||||
byte sigBytes[] = null;
|
byte sigBytes[] = null;
|
||||||
try {
|
try {
|
||||||
sa.initVerify(pk);
|
sa.initVerify(pk);
|
||||||
|
if (log.isLoggable(java.util.logging.Level.FINE)) {
|
||||||
|
log.log(java.util.logging.Level.FINE, "signatureMethodURI = " + sa.getAlgorithmURI());
|
||||||
|
log.log(java.util.logging.Level.FINE, "jceSigAlgorithm = " + sa.getJCEAlgorithmString());
|
||||||
|
log.log(java.util.logging.Level.FINE, "jceSigProvider = " + sa.getJCEProviderName());
|
||||||
|
log.log(java.util.logging.Level.FINE, "PublicKey = " + pk);
|
||||||
|
}
|
||||||
|
|
||||||
// Get the canonicalized (normalized) SignedInfo
|
// Get the canonicalized (normalized) SignedInfo
|
||||||
SignerOutputStream so = new SignerOutputStream(sa);
|
SignerOutputStream so = new SignerOutputStream(sa);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user