mirror of
https://codeberg.org/PGPainless/wkd-java.git
synced 2024-12-22 05:37:58 +01:00
Remove unused getHu()
This commit is contained in:
parent
d58fd85e5b
commit
a91b6660bb
1 changed files with 2 additions and 14 deletions
|
@ -25,8 +25,6 @@ public abstract class WkdDirectoryStructure {
|
|||
openpgpkey = new File(wellKnown, "openpgpkey");
|
||||
}
|
||||
|
||||
public abstract File getHu();
|
||||
|
||||
public abstract Path getRelativeCertificatePath(String mailAddress);
|
||||
|
||||
public abstract void mkdirs() throws IOException;
|
||||
|
@ -64,17 +62,12 @@ public abstract class WkdDirectoryStructure {
|
|||
this.policy = new File(openpgpkey, "policy");
|
||||
}
|
||||
|
||||
@Override
|
||||
public File getHu() {
|
||||
return hu;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Path getRelativeCertificatePath(String mailAddress) {
|
||||
WKDAddress address = WKDAddress.fromEmail(mailAddress);
|
||||
String path = address.getDirectMethodURI().getPath();
|
||||
String fileName = path.substring(path.lastIndexOf('/') + 1);
|
||||
return rootDir.toPath().relativize(new File(getHu(), fileName).toPath());
|
||||
return rootDir.toPath().relativize(new File(hu, fileName).toPath());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -111,17 +104,12 @@ public abstract class WkdDirectoryStructure {
|
|||
this.policy = new File(domainFile, "policy");
|
||||
}
|
||||
|
||||
@Override
|
||||
public File getHu() {
|
||||
return hu;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Path getRelativeCertificatePath(String mailAddress) {
|
||||
WKDAddress address = WKDAddress.fromEmail(mailAddress);
|
||||
String path = address.getAdvancedMethodURI().getPath();
|
||||
String fileName = path.substring(path.lastIndexOf('/') + 1);
|
||||
return rootDir.toPath().relativize(new File(getHu(), fileName).toPath());
|
||||
return rootDir.toPath().relativize(new File(hu, fileName).toPath());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue