type

fun type(vararg types: CredentialType)

Add credential type(s) using type-safe CredentialType instances. "VerifiableCredential" is automatically added.

Parameters

types

One or more CredentialType instances (e.g., CredentialType.Education, CredentialType.Custom("MyType"))


fun type(vararg types: String)

Add credential type(s) using string values (for backward compatibility). "VerifiableCredential" is automatically added.

Parameters

types

One or more credential type strings (e.g., "EducationCredential", "PersonCredential")