id

fun id(idString: String)

Set the subject ID.

Parameters

idString

Subject identifier as a string (DID, URI, URN, etc.)

Throws

if idString is blank or not a valid IRI format


fun id(did: Did)

Set the subject ID from a DID.


fun id(iri: Iri)

Set the subject ID from an IRI.