参考
https://stackoverflow.com/questions/56618734/copy-file-using-last-smb-jcifs-ng-jar
jcifs-ng
jcifsでsmbにアクセスできるが、SMBv2、SMBv3にアクセスするときはjcifs-ngを使う。
使い方はほとんど同じ
BaseContext baseCxt = null;
Properties jcifsProperties = new Properties();
jcifsProperties.setProperty("jcifs.smb.client.enableSMB2", "true");
jcifsProperties.setProperty("jcifs.smb.client.dfs.disabled","true");
Configuration config = new PropertyConfiguration(jcifsProperties);
baseCxt = new BaseContext(config);
auth = baseCxt.withCredentials(new NtlmPasswordAuthenticator(DomainIP, DomainUser,
DomainPassword));
SmbFile smbRemoteFile = new SmbFile("smb:" + remoteFile.replace("\\", "/"), auth);
[カテゴリ: プログラミング言語 > Java]
[通知用URL]
Tweet
最終更新時間:2024年05月03日 19時22分19秒