private Object writeReplace() {
return Channel.current().export(SVNAuthenticationBuilderProvider.class, this);
}
public SVNAuthenticationBuilder getBuilder(String realm) {
Credentials c = credentialsByRealm.get(realm);
if (c == null) {
c = defaultCredentials;
}
if (c instanceof CertificateCredentials) {
return new SVNCertificateAuthenticationBuilder((CertificateCredentials) c);