Class MetaDataService
- java.lang.Object
-
- io.vertx.mutiny.ext.auth.webauthn.MetaDataService
-
public class MetaDataService extends Object
Factory interface for creating FIDO2 MetaDataService. NOTE: This class has been automatically generated from theoriginal
non Mutiny-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 MetaDataService
addStatement(io.vertx.core.json.JsonObject statement)
boolean
equals(Object o)
io.smallrye.mutiny.Uni<Boolean>
fetchTOC()
Fetches the FIDO2 MDS3 TOC and process the entries to the metadata store.io.smallrye.mutiny.Uni<Boolean>
fetchTOC(String url)
Fetches the FIDO2 TOC for the given URL and process the entries to the metadata store.Boolean
fetchTOCAndAwait()
Blocking variant offetchTOC(java.lang.String)
.Boolean
fetchTOCAndAwait(String url)
Blocking variant offetchTOC(String)
.MetaDataService
fetchTOCAndForget()
Variant offetchTOC(java.lang.String)
that ignores the result of the operation.MetaDataService
fetchTOCAndForget(String url)
Variant offetchTOC(String)
that ignores the result of the operation.MetaDataService
flush()
io.vertx.ext.auth.webauthn.MetaDataService
getDelegate()
int
hashCode()
static MetaDataService
newInstance(io.vertx.ext.auth.webauthn.MetaDataService arg)
String
toString()
io.vertx.core.json.JsonObject
verify(io.vertx.ext.auth.webauthn.Authenticator 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
@CheckReturnValue public io.smallrye.mutiny.Uni<Boolean> 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 returntrue
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.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
url
- the url to the TOC- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
fetchTOCAndAwait
public Boolean fetchTOCAndAwait(String url)
Blocking variant offetchTOC(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
url
- the url to the TOC- Returns:
- the Boolean instance produced by the operation.
-
fetchTOCAndForget
public MetaDataService fetchTOCAndForget(String url)
Variant offetchTOC(String)
that ignores the result of the operation.This method subscribes on the result of
fetchTOC(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromfetchTOC(String)
but you don't need to compose it with other operations.- Parameters:
url
- the url to the TOC- Returns:
- the instance of MetaDataService to chain method calls.
-
fetchTOC
@CheckReturnValue public io.smallrye.mutiny.Uni<Boolean> fetchTOC()
Fetches the FIDO2 MDS3 TOC and process the entries to the metadata store. Only valid entries will be stored. The operation will returntrue
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.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
fetchTOCAndAwait
public Boolean fetchTOCAndAwait()
Blocking variant offetchTOC(java.lang.String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the Boolean instance produced by the operation.
-
fetchTOCAndForget
public MetaDataService fetchTOCAndForget()
Variant offetchTOC(java.lang.String)
that ignores the result of the operation.This method subscribes on the result of
fetchTOC(java.lang.String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromfetchTOC(java.lang.String)
but you don't need to compose it with other operations.- Returns:
- the instance of MetaDataService to chain method calls.
-
addStatement
public MetaDataService addStatement(io.vertx.core.json.JsonObject statement)
- Parameters:
statement
- the json statement- Returns:
- fluent self
-
flush
public MetaDataService flush()
- Returns:
- fluent self
-
verify
public io.vertx.core.json.JsonObject verify(io.vertx.ext.auth.webauthn.Authenticator authenticator)
- 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)
-
-