public interface MetaDataService
Modifier and Type | Method and Description |
---|---|
MetaDataService |
addStatement(JsonObject statement)
Manually feed a Meta Data Statement to the service.
|
default Future<Boolean> |
fetchTOC()
Fetches the FIDO2 MDS3 TOC and process the entries to the metadata store.
|
default MetaDataService |
fetchTOC(Handler<AsyncResult<Boolean>> handler)
Fetches the FIDO2 MDS3 TOC and process the entries to the metadata store.
|
Future<Boolean> |
fetchTOC(String url)
Fetches the FIDO2 TOC for the given URL and process the entries to the metadata store.
|
default MetaDataService |
fetchTOC(String url,
Handler<AsyncResult<Boolean>> handler)
Fetches the FIDO2 TOC for the given URL and process the entries to the metadata store.
|
MetaDataService |
flush()
Clears all loaded statements, both from the TOC and manually inserted.
|
JsonObject |
verify(Authenticator authenticator)
Verify the metadata for a given authenticator.
|
default MetaDataService fetchTOC(String url, Handler<AsyncResult<Boolean>> handler)
true
only if all
entries have been added. false
if they have been processed but at least one was
invalid.
The operation will only fail on network problems.url
- the url to the TOChandler
- the async handler to process the responsedefault MetaDataService fetchTOC(Handler<AsyncResult<Boolean>> handler)
true
only if all
entries have been added. false
if they have been processed but at least one was
invalid.
The operation will only fail on network problems.handler
- the async handler to process the responseFuture<Boolean> fetchTOC(String url)
true
only if all
entries have been added. false
if they have been processed but at least one was
invalid.
The operation will only fail on network problems.url
- the url to the TOCdefault Future<Boolean> fetchTOC()
true
only if all
entries have been added. false
if they have been processed but at least one was
invalid.
The operation will only fail on network problems.MetaDataService addStatement(JsonObject statement)
statement
- the json statementMetaDataService flush()
JsonObject verify(Authenticator authenticator)
null
.
When a statement is found, the statement will be used to verify the certificate chain. A failure during this
verification will throw a RuntimeException
.authenticator
- authenticator to verifynull
.RuntimeException
- if the verification fails.Copyright © 2024 Eclipse. All rights reserved.