Package web5.sdk.dids.methods.web
Object DidWeb.Companion
-
- All Implemented Interfaces:
public class DidWeb.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static DidWeb.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final BearerDidcreate(String domain, DidWebCreateOptions options)Creates a new "did:web" DID for a given domain using the provided options. -
-
Method Detail
-
create
final BearerDid create(String domain, DidWebCreateOptions options)
Creates a new "did:web" DID for a given domain using the provided options.
This method generates a "did:web" DID by creating a key pair, constructing a DID document, and associating it with a web domain. The DID can include services, verification methods, and controllers.
- Parameters:
domain- The domain for which to create the "did:web" DID.options- The options to configure the DID creation.- Returns:
A BearerDid object representing the newly created "did:web" DID.
-
-
-
-