Abstract
Constructor for the CertificateRoleModel.
The leute model.
Checks if the role can be created.
The role name or static role class to check.
True if the role can be created, false otherwise.
Abstract
createAbstract
getAbstract
get************* Semi-abstracts **************
Abstract
get************* Abstracts **************
Returns the name of the role.
The name of the role.
Returns the role person ids.
The role person ids.
Get the signature hash for a person
The person id
The signature hash
Checks if the data is affirmed by the role person ids.
The data to check.
Optional
byPersonId: SHA256IdHash<Person>The personId that should be trusting the data.
True if the data is affirmed, false otherwise.
Check if the person has a certificate
The person id
True if the person has a certificate, false otherwise
Check if the person has multiple certificates
The person id
True if the person has multiple certificates, false otherwise
Checks if the data is signed by the role person ids.
The data to check.
Optional
byPersonId: SHA256IdHash<Person>The personId that should be signing the data.
True if the data is signed, false otherwise.
Initializes the CertificateRoleModel.
Returns true if the role is initialised.
True if the role is initialised, false otherwise.
Check if the person is an issuer
The person id
True if the person is an issuer or no issuers are set, false otherwise
Checks if the person is a role person.
Optional
personId: SHA256IdHash<Person>The personId to check. Default is the current person.
True if the person is a role person, false otherwise.
Share the issuers with the person ids
The role person id
The person ids to share with
Shares the role with the given person ids.
The person ids to share with.
Optional
forcePropagate?: booleanWhether to force the role person id from options.rolePersonId to propagate. Default is false.
Optional
rolePersonId?: SHA256IdHash<Person>The role person id. Default is the current person.
Shuts down the CertificateRoleModel.
A model that represents an affirmed role.
Note: Depends on the reverse maps of the LeuteModel to be able to find the someone from the personId and objectEvents to listen for new instances/signatures.