IWDIDManager

API - IWDIDManager

IWDIDManager

public IWDIDManager(String pathWithName)

Descriptor

  • Constructor

Parameter

Type

Name

Description

String

pathWithName

DID Document Name (Path included)

isExistDID

public boolean isExistDID()

Description

  • Checks if the DID Document exists in the local

Return

  • boolean: true, if exist

saveToFile

public boolean saveToFile(String didsJSON) throws IWException

Description

  • Saves the DID Document(JSON)

Parameter

Type

Name

Description

String

didsJSON

Did Document(JSON)

Return

  • boolean: true, if save is successful

Throws

  • IWException

makeRequestDIDsRead

Description

  • Searches the DID Document

Return

  • String : Did Document(JSON)

Throws

  • IWException

deleteDidFile

Description

  • Deletes Did Document file

genDid

Description

  • Creates the DID

    ex) did:omn:~

Return

  • String: created DID

Throws

  • IWException

genDid(prefix)

Description

  • Create prefix-attatched DID

    ex) did:omn:prefix:~

Parameter

Type

Name

Description

String

prefix

prefix

Return

  • String: created DID

Throws

  • IWException

makeRequestDIDsCreate

Description

  • Create a request to register DID Document(JSON) in the blockchain

Parameter

Type

Name

Description

String

did

DID

List< String >

createKeyIds

KeyID list of Keys for public key and authentication

IWKeyManager

keyManager

Key Manager with an unlocked status

Return

  • String: request full-text(JSON)

Throws

  • IWException

makeRequestDIDsAdd

Description

  • Add keyId to DID Document then Make DID Document (JSON) for registration to Blockchain

Parameter

Type

Name

Description

String

addKeyId

a key Id to add

IWKeyManager

keyManager

Key Manager with an unlocked status

Return

  • String: request full-text (JSON)

Throws

  • IWException

makeRequestDIDsDelete

Description

  • Remove keyId from Did Document then Make Did Document Json for registration to Blockchain

Parameter

Type

Name

Description

String

deleteKeyId

a key Id to delete

Return

  • String: request full-text (JSON)

Throws

  • IWException

makeDIDAssertion

Description

  • Create the DID Assertion(JSON) and Proof

Parameter

Type

Name

Description

String

type

Assertion type (currently only "default" is supported)

String

signKeyId

a Key Id to sign

byte[]

source

Random value

IWKeyManager

keyManager

Key manager with an unlocked status

Return

  • String: DID Assertion(JSON) and Proof

Throws

  • IWException

makeDIDRevokeAssertion

Description

  • Create DID Document(JSON) and Proof to register in the blockchain.

Parameter

Type

Name

Description

String

type

DID Assertion Type. "revoke"

String

signKeyId

a key Id to sign

DIDRevoke

didRevoke

Revoke Object

byte[]

nonce

Random value

IWKeyManager

keyManager

Key manager with an unlocked status

Return

  • String: Assertion(JSON) and Proof

Throws

  • IWException

makeProof

Description

  • create DID Document (JSON) and Proof to register on the blockchain.

Parameter

Type

Name

Description

String

didsJSON

Did Document(JSON)

String

signKeyId

a key Id to sign

byte[]

nonce

Random value

IWKeyManager

keyManager

Key Manager with an unlocked status

Return

  • String: Did Document(JSON) and Proof

Throws

  • IWException

Last updated

Was this helpful?