所有方法 实例方法 具体方法
| 限定符和类型 |
方法和说明 |
String |
commitCred(String cred,
String ownerOntId,
Account payer,
long gasLimit,
long gasPrice,
OntSdk sdk) |
String |
commitCred(VerifiableCredential cred,
String ownerOntId,
Account payer,
long gasLimit,
long gasPrice,
OntSdk sdk) |
String |
commitCredById(String credId,
String ownerOntId,
Account payer,
long gasLimit,
long gasPrice,
OntSdk sdk) |
VerifiableCredential |
createCred(String[] context,
String[] type,
Object issuer,
Object credentialSubject,
Date expiration,
CredentialStatusType credentialStatusType,
ProofPurpose proofPurpose) |
String |
createJWTCred(String[] context,
String[] type,
Object issuer,
Object credentialSubject,
Date expiration,
CredentialStatusType statusType,
ProofPurpose purpose) |
String |
createJWTPresentation(String[] creds,
String[] context,
String[] type,
Object holder,
String challenge,
Object domain,
ProofPurpose purpose) |
VerifiablePresentation |
createPresentation(VerifiableCredential[] creds,
String[] context,
String[] type,
List<String> challenge,
List<Object> domain,
Object holder,
OntIdSigner[] otherSigners,
ProofPurpose proofPurpose) |
String |
createPresentationFromOldCred(String[] creds,
String[] context,
String[] type,
Object holder,
String challenge,
Object domain,
ProofPurpose purpose) |
SignRequest |
genSignReq(Object credentialSubject,
ProofPurpose proofPurpose,
boolean hasSignature) |
CredentialRecord |
getCredRecord() |
OntId |
getOntIdContract() |
OntIdSigner |
getSigner() |
String |
removeCredById(String credId,
Account payer,
long gasLimit,
long gasPrice,
OntSdk sdk) |
String |
removeJWTCred(String cred,
Account payer,
long gasLimit,
long gasPrice,
OntSdk sdk) |
String |
revokeCred(VerifiableCredential cred,
Account payer,
long gasLimit,
long gasPrice,
OntSdk sdk) |
String |
revokeCredById(String credId,
Account payer,
long gasLimit,
long gasPrice,
OntSdk sdk) |
String |
revokeJWTCred(String cred,
Account payer,
long gasLimit,
long gasPrice,
OntSdk sdk) |
void |
setCredRecord(CredentialRecord credRecord) |
void |
setOntIdAndSigner(OntIdSigner signer) |
void |
setOntIdContract(OntId ontIdContract) |
void |
updateOntIdAndSigner(String ontId,
Account signer) |
boolean |
verifyCred(String[] credibleOntIds,
VerifiableCredential cred) |
boolean |
verifyCredDate(VerifiableCredential cred) |
boolean |
verifyCredExp(VerifiableCredential cred) |
boolean |
verifyCredIssuanceDate(VerifiableCredential cred) |
boolean |
verifyCredNotRevoked(VerifiableCredential cred) |
boolean |
verifyCredOntIdCredible(String[] credibleOntIds,
VerifiableCredential cred) |
boolean |
verifyCredSignature(VerifiableCredential cred) |
boolean |
verifyJWTCred(String[] credibleOntIds,
String cred) |
boolean |
verifyJWTCredDate(String cred) |
boolean |
verifyJWTCredExp(String cred) |
boolean |
verifyJWTCredIssuanceDate(String cred) |
boolean |
verifyJWTCredNotRevoked(String cred) |
boolean |
verifyJWTCredOntIdCredible(String[] credibleOntIds,
String cred) |
boolean |
verifyJWTCredSignature(String cred) |
boolean |
verifyJWTPresentation(String[] credibleOntIds,
String presentation) |
boolean |
verifyOntIdSignature(String ontId,
byte[] needSignData,
byte[] signature) |
boolean |
verifyPresentationProof(VerifiablePresentation presentation,
int proofIndex) |
boolean |
verifyPubKeyIdSignature(String pubKeyId,
byte[] needSignData,
byte[] signature) |
boolean |
verifyPubKeyIdSignature(String ontId,
String pubKeyId,
byte[] needSignData,
byte[] signature) |
boolean |
verifySignReq(SignRequest req) |