KEYCLOAK-6009 Fix incorrect String.format usage
This commit is contained in:
parent
c9b218db71
commit
d7a90817f2
2 changed files with 2 additions and 2 deletions
|
@ -300,7 +300,7 @@ public class CertificateValidator {
|
|||
logger.debugf("Loading CRL from %s", f.getAbsolutePath());
|
||||
|
||||
if (!f.canRead()) {
|
||||
throw new IOException(String.format("Unable to read CRL from \"%path\"", f.getAbsolutePath()));
|
||||
throw new IOException(String.format("Unable to read CRL from \"%s\"", f.getAbsolutePath()));
|
||||
}
|
||||
X509CRL crl = loadFromStream(cf, new FileInputStream(f.getAbsolutePath()));
|
||||
return Collections.singleton(crl);
|
||||
|
|
|
@ -124,7 +124,7 @@ public abstract class AbstractClientCertificateFromHttpHeadersLookup implements
|
|||
// Get the certificate of the client certificate chain
|
||||
for (int i = 0; i < certificateChainLength; i++) {
|
||||
try {
|
||||
String s = String.format("{0}_{1}", sslCertChainHttpHeaderPrefix, i);
|
||||
String s = String.format("%s_%s", sslCertChainHttpHeaderPrefix, i);
|
||||
cert = getCertificateFromHttpHeader(httpRequest, s);
|
||||
if (cert != null) {
|
||||
chain.add(cert);
|
||||
|
|
Loading…
Reference in a new issue