< prev index next >

src/java.base/share/classes/sun/security/x509/X509CertImpl.java

Print this page
rev 51972 : 8215694: keytool cannot generate RSASSA-PSS certificates
Reviewed-by: xuelei
rev 51973 : 8215694 resolve

*** 1,7 **** /* ! * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 40,50 **** import java.util.*; import java.util.concurrent.ConcurrentHashMap; import javax.security.auth.x500.X500Principal; - import java.util.Base64; import sun.security.util.*; import sun.security.provider.X509Factory; /** * The X509CertImpl class represents an X.509 certificate. These certificates --- 40,49 ----
*** 603,620 **** else sigEngine = Signature.getInstance(algorithm, provider); sigEngine.initSign(key); ! // set parameters after Signature.initSign/initVerify call, so ! // the deferred provider selection happens when the key is set ! try { sigEngine.setParameter(signingParams); - } catch (UnsupportedOperationException e) { - // for backward compatibility, only re-throw when - // parameters is not null - if (signingParams != null) throw e; } // in case the name is reset if (signingParams != null) { algId = AlgorithmId.get(sigEngine.getParameters()); --- 602,615 ---- else sigEngine = Signature.getInstance(algorithm, provider); sigEngine.initSign(key); ! if (signingParams != null) { ! // set parameters after Signature.initSign/initVerify call, so ! // the deferred provider selection happens when the key is set sigEngine.setParameter(signingParams); } // in case the name is reset if (signingParams != null) { algId = AlgorithmId.get(sigEngine.getParameters());
< prev index next >