SP server guide (JAVA)
This is the SP SDK(Java) Server Application guide document.
SP API guide document
Unlock KeyManager
Use the KeyManager class to get the secrete key.
Read DID document
SP DID document can get it through the IWDID File class.
Use getData() function to transfer to the Jason string.
BlockChain node settings
The RPC address of the blockchain node can be set.
Agent Server settings
The RPC address of the Agent Server INFO can be set.
Send Callback confirmation URL to mobile app
callBackUrl
: URL to VC 검증 restApiqueryParameter
: Key(txid), value(Unique key)PC web : create QR code image
mobile web : send URL Scheme
VC verification API
To request the validity verification regarding the mobile app, it should be requested by the JSON format of SpProfile type. SpProfile includes the submit URL(CallBackUrl) of the VC copy.
makeSpProfile: creates the entered data and SpProfile JSON
spVerify
:VC information copay verification API
SP profile
Profile
callBackUrl
: URL for submitting the VC copynonce
: Random value (txid)spName
: SP name
SpProfileParam class : SpProfile data
serverInfo
: Blockchain node server URLkeyManager
: Private key (secrete key) Wallet managermainKeyId
: The stored key on the KeyManager for signing.serviceCode
: SP service code(The registered information on the SP Console)profile
: Profile objectspDid
: SP's DID ID
SpApi.makeSpProfile
makeSpProfile (SpProfileParam spProfileParam)
Return String
spProfileJson
: SP profile JSON String
VC Verification
The API for final registration for VC on BlockChain
VC CallBack JSON Structure
vcEncHex
- Encrypted VC copy informationvcId
- VC IDsessionId
- Same value as the SpProfile nonce valueuserDID
- The user's DID ID
VcVerifyParam Class - Registeration data
serverInfo
-Blockchain node server URL URLagentServerInfo
- Agent server URLkeyManager
- private key (Secreate key) Wallet managermainKeyId
- Stored key on the KeyManager for signingvcEncHex
- Encrypted VC copy informationvcId
- VC IDsessionId
- Same value as the SpProfile nonce valueuserDID
- The user's DID IDdidDocuemntPath
- SP DID document file path
SpApi.spVerify Class - reset API
spVerify(vcVerifyParam)
VcResult class - result class
status
- Status information0 = VC creation incomplete
1 = VC creation completed
vcComplete
- Completed VC object
Last updated