use of com.webauthn4j.metadata.LocalFileMetadataBLOBProvider in project webauthn4j by webauthn4j.
the class MetadataBLOBBasedTrustAnchorRepositoryTest method createWithBlob.
private MetadataBLOBBasedTrustAnchorRepository createWithBlob(String filePath) {
try {
Path blobPath = new File(filePath).toPath();
Path dstPath = tempDir.resolve("blob.jwt");
Files.copy(blobPath, dstPath);
LocalFileMetadataBLOBProvider localFileMetadataBLOBProvider = new LocalFileMetadataBLOBProvider(new ObjectConverter(), dstPath);
return new MetadataBLOBBasedTrustAnchorRepository(localFileMetadataBLOBProvider);
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
use of com.webauthn4j.metadata.LocalFileMetadataBLOBProvider in project webauthn4j by webauthn4j.
the class MetadataBLOBTest method getMetadataBLOB.
private MetadataBLOB getMetadataBLOB() {
try {
Path blobPath = new File("src/test/resources/integration/component/blob.jwt").toPath();
Path dstPath = tempDir.resolve("blob.jwt");
Files.copy(blobPath, dstPath);
LocalFileMetadataBLOBProvider target = new LocalFileMetadataBLOBProvider(new ObjectConverter(), dstPath);
return target.provide();
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
Aggregations