Skip to content

Commit

Permalink
Use byte array for certificate instead of file
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeuffer committed May 17, 2021
1 parent 46b8021 commit 232f15e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Expand Up @@ -27,12 +27,10 @@
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.nio.file.Path;

@AllArgsConstructor
@Getter
public class Pkcs12ClientCertificateCredential implements Credential {

private final Path certificate;
private final byte[] certificate;
private final char[] password;
}
Expand Up @@ -95,7 +95,7 @@ public TrustManager getTrustManager(SVNURL url) {

private SVNSSLAuthentication createTlsAuth(SVNURL url, Pkcs12ClientCertificateCredential c) {
return SVNSSLAuthentication.newInstance(
c.getCertificate().toFile(),
c.getCertificate(),
c.getPassword(),
false,
url,
Expand Down

0 comments on commit 232f15e

Please sign in to comment.