📃
OmniOne Developer Site
  • Introduction
  • Manager console guide
    • To begin with...
      • Wallet Settings
      • Select an Account
      • The Issuer/SP account creation
      • Issue access token for the OmniOne Agent
    • Issuer Console
      • Claim
      • VC Type
      • VC Format
      • Issue the VC Information
      • My request list
    • SP Console
      • Service List
      • Token Transaction History
      • My service request
  • Server system construction
    • To begin with...
      • Server Wallet creation and Key settings
      • Collect the Issuer and SP's DID
      • application.properties settings
    • Server default environment configuration per IDE
      • Spring Tool Suite 4
      • IntelliJ IDEA
    • Building the Issuer system
      • Issuer server guide(JAVA)
    • Building the SP system
      • SP server guide (JAVA)
  • Checking Blockchain data
    • Check Agent API
      • bp
      • Committee
      • DID
      • executor
      • key
      • pDID
      • player
      • policy
      • txinfo
      • txissue
      • vc
      • version
      • response codes
  • SDK instruction guide
    • Core SDK Guide
      • Java Wallet
        • IWKeyManager
        • IWDIDManager
        • IWRecoveryManager
        • ZkpException
        • IWException
      • iOS Wallet
        • IWKeyManager
        • IWDidManager
        • IWClaimManager
        • IWRecoveryManager
        • IWErrorManager
        • Enum
    • Server SDK Guide
      • Java
        • ServerInfo
        • IssuerApi
        • SpApi
        • VcResult
        • VcInitParam
        • VCRegParam
        • VcVerifyParam
        • SpProfileParam
    • Omni App Link SDK
      • Server
      • Android
      • IOS
  • Node creation
    • Full Node creation
      • Full Node by using Docker
        • Docker Installation
        • Building Full Node
        • Full Node settings
      • Installation type Full Node
        • Full Node installation
    • BP Node creation
      • BP Node by using Docker
        • Docker Installation
        • Building BP Node
        • BP Node settings
          • keosd/BP Node executing simultaneously
      • Installation type BP
        • Node Installation
        • Executing Node
        • Node settings
        • BP Vote
Powered by GitBook
On this page
  • IWDIDManager
  • isExistDID
  • saveToFile
  • makeRequestDIDsRead
  • deleteDidFile
  • genDid
  • genDid(prefix)
  • makeRequestDIDsCreate
  • makeRequestDIDsAdd
  • makeRequestDIDsDelete
  • makeDIDAssertion
  • makeDIDRevokeAssertion
  • makeProof

Was this helpful?

  1. SDK instruction guide
  2. Core SDK Guide
  3. Java Wallet

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

public String makeRequestDIDsRead() throws IWException

Description

  • Searches the DID Document

Return

  • String : Did Document(JSON)

Throws

  • IWException

deleteDidFile

public void deleteDIDFile()

Description

  • Deletes Did Document file

genDid

 public String genDID() throws IWException

Description

  • Creates the DID

    ex) did:omn:~

Return

  • String: created DID

Throws

  • IWException

genDid(prefix)

 public String genDID(String prefix) throws IWException

Description

  • Create prefix-attatched DID

    ex) did:omn:prefix:~

Parameter

Type

Name

Description

String

prefix

prefix

Return

  • String: created DID

Throws

  • IWException

makeRequestDIDsCreate

String makeRequestDIDsCreate(String did, List<String> createKeyIds, IWKeyManager keyManager) throws IWException

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

public String makeRequestDIDsAdd(String addKeyId, IWKeyManager keyManager) throws IWException

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

public String makeRequestDIDsDelete(String deleteKeyId) throws IWException

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

 public String makeDIDAssertion(String type, String signKeyId, byte[] source, IWKeyManager keyManager) throws IWException

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

 public String makeDIDAssertion(String type, String signKeyId, DIDRevoke didRevoke, byte[] nonce, IWKeyManager keyManager) throws IWException

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

 public String makeProof(String didsJSON, String signKeyId, byte[] nonce, IWKeyManager keyManager) throws IWException

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

PreviousIWKeyManagerNextIWRecoveryManager

Last updated 4 years ago

Was this helpful?