Class MetaDataService

java.lang.Object
io.vertx.mutiny.ext.auth.webauthn.MetaDataService
All Implemented Interfaces:
MutinyDelegate

public class MetaDataService extends Object implements MutinyDelegate
Factory interface for creating FIDO2 MetaDataService.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

  • Constructor Details

    • MetaDataService

      public MetaDataService(io.vertx.ext.auth.webauthn.MetaDataService delegate)
    • MetaDataService

      public MetaDataService(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.auth.webauthn.MetaDataService getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 return 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.

      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 of fetchTOC(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 of fetchTOC(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 from fetchTOC(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 return 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.

      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 of fetchTOC(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 of fetchTOC(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 from fetchTOC(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)