Class MetaDataService
- java.lang.Object
-
- io.vertx.reactivex.ext.auth.webauthn.MetaDataService
-
public class MetaDataService extends Object
Factory interface for creating FIDO2 MetaDataService. NOTE: This class has been automatically generated from theoriginalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<MetaDataService>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description MetaDataService(io.vertx.ext.auth.webauthn.MetaDataService delegate)MetaDataService(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaDataServiceaddStatement(io.vertx.core.json.JsonObject statement)Manually feed a Meta Data Statement to the service.booleanequals(Object o)MetaDataServicefetchTOC()Fetches the FIDO2 MDS3 TOC and process the entries to the metadata store.MetaDataServicefetchTOC(io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> handler)Fetches the FIDO2 MDS3 TOC and process the entries to the metadata store.MetaDataServicefetchTOC(String url)Fetches the FIDO2 TOC for the given URL and process the entries to the metadata store.MetaDataServicefetchTOC(String url, io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> handler)Fetches the FIDO2 TOC for the given URL and process the entries to the metadata store.MetaDataServiceflush()Clears all loaded statements, both from the TOC and manually inserted.io.vertx.ext.auth.webauthn.MetaDataServicegetDelegate()inthashCode()static MetaDataServicenewInstance(io.vertx.ext.auth.webauthn.MetaDataService arg)io.reactivex.Single<Boolean>rxFetchTOC()Fetches the FIDO2 MDS3 TOC and process the entries to the metadata store.io.reactivex.Single<Boolean>rxFetchTOC(String url)Fetches the FIDO2 TOC for the given URL and process the entries to the metadata store.StringtoString()io.vertx.core.json.JsonObjectverify(io.vertx.ext.auth.webauthn.Authenticator authenticator)Verify the metadata for a given authenticator.
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<MetaDataService> __TYPE_ARG
-
-
Constructor Detail
-
MetaDataService
public MetaDataService(io.vertx.ext.auth.webauthn.MetaDataService delegate)
-
MetaDataService
public MetaDataService(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.auth.webauthn.MetaDataService getDelegate()
-
fetchTOC
public MetaDataService fetchTOC(String url, io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> handler)
Fetches the FIDO2 TOC for the given URL and process the entries to the metadata store. Only valid entries will be stored. The operation will returntrueonly if all entries have been added.falseif they have been processed but at least one was invalid. The operation will only fail on network problems.- Parameters:
url- the url to the TOChandler- the async handler to process the response- Returns:
- fluent self
-
fetchTOC
public MetaDataService fetchTOC(String url)
Fetches the FIDO2 TOC for the given URL and process the entries to the metadata store. Only valid entries will be stored. The operation will returntrueonly if all entries have been added.falseif they have been processed but at least one was invalid. The operation will only fail on network problems.- Parameters:
url- the url to the TOC- Returns:
- fluent self
-
rxFetchTOC
public io.reactivex.Single<Boolean> rxFetchTOC(String url)
Fetches the FIDO2 TOC for the given URL and process the entries to the metadata store. Only valid entries will be stored. The operation will returntrueonly if all entries have been added.falseif they have been processed but at least one was invalid. The operation will only fail on network problems.- Parameters:
url- the url to the TOC- Returns:
- fluent self
-
fetchTOC
public MetaDataService fetchTOC(io.vertx.core.Handler<io.vertx.core.AsyncResult<Boolean>> handler)
Fetches the FIDO2 MDS3 TOC and process the entries to the metadata store. Only valid entries will be stored. The operation will returntrueonly if all entries have been added.falseif they have been processed but at least one was invalid. The operation will only fail on network problems.- Parameters:
handler- the async handler to process the response- Returns:
- fluent self
-
fetchTOC
public MetaDataService fetchTOC()
Fetches the FIDO2 MDS3 TOC and process the entries to the metadata store. Only valid entries will be stored. The operation will returntrueonly if all entries have been added.falseif they have been processed but at least one was invalid. The operation will only fail on network problems.- Returns:
- fluent self
-
rxFetchTOC
public io.reactivex.Single<Boolean> rxFetchTOC()
Fetches the FIDO2 MDS3 TOC and process the entries to the metadata store. Only valid entries will be stored. The operation will returntrueonly if all entries have been added.falseif they have been processed but at least one was invalid. The operation will only fail on network problems.- Returns:
- fluent self
-
addStatement
public MetaDataService addStatement(io.vertx.core.json.JsonObject statement)
Manually feed a Meta Data Statement to the service.- Parameters:
statement- the json statement- Returns:
- fluent self
-
flush
public MetaDataService flush()
Clears all loaded statements, both from the TOC and manually inserted. The flush operation will not cancel any in-flight TOC download/processing.- Returns:
- fluent self
-
verify
public io.vertx.core.json.JsonObject verify(io.vertx.ext.auth.webauthn.Authenticator authenticator)
Verify the metadata for a given authenticator. The MDS will lookup the metadata by the AAGUID. If no AAGUID is known, the result will benull. When a statement is found, the statement will be used to verify the certificate chain. A failure during this verification will throw aRuntimeException.- Parameters:
authenticator- authenticator to verify- Returns:
- an MDS statement for this authenticator or
null.
-
newInstance
public static MetaDataService newInstance(io.vertx.ext.auth.webauthn.MetaDataService arg)
-
-