APIdia Launch Partner
Top Description Fields Methods
io.github.spannm.jackcess.util

public Interface LinkResolver

Known Direct Implementers
io.github.spannm.jackcess.util.CustomLinkResolver
Annotations
@FunctionalInterface
Imports
io.github.spannm.jackcess.Database, .DatabaseBuilder, io.github.spannm.jackcess.impl.DatabaseImpl, java.io.File, .IOException, java.nio.file.AccessDeniedException

Resolver for linked databases.

Field Summary

Modifier and TypeField and Description
public static final LinkResolver
DEFAULT

Default link resolver used if none is provided.

public static final LinkResolver
UNRESTRICTED

Legacy unrestricted link resolver.

Method Summary

Modifier and TypeMethod and Description
public Database
resolveLinkedDatabase(Database linkerDb, String linkeeFileName)

Returns the appropriate Database instance for the linkeeFileName from the given linkerDb.

Field Detail

DEFAULTback to summary
public static final LinkResolver DEFAULT

Default link resolver used if none is provided.

Automatic linked database resolution is disabled to prevent an untrusted database from initiating a network connection or opening an arbitrary local database. Applications which intentionally use trusted linked databases must explicitly configure UNRESTRICTED or a custom resolver which enforces an application-specific policy.

UNRESTRICTEDback to summary
public static final LinkResolver UNRESTRICTED

Legacy unrestricted link resolver.

Security warning: This resolver opens paths obtained directly from the database file, including UNC/network paths and arbitrary local paths. Do not use this resolver for untrusted database files.

Method Detail

resolveLinkedDatabaseback to summary
public Database resolveLinkedDatabase(Database linkerDb, String linkeeFileName) throws IOException

Returns the appropriate Database instance for the linkeeFileName from the given linkerDb.