Abstract
Constructor for the RelationRoleModel
The leute model
The app of the role
The relation of the role
Optional
config: {The config of the role
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.
Create a certificate
The person Id
Optional
issuerId: SHA256IdHash<Person>The issuer id
The certificate
Get the certificates for a person
The person id
The certificates
************* Semi-abstracts **************
Get the person id from the role certificate
The role certificate
The person id
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
Check if the certificate is a role relation certificate
The certificate
Optional
rolePersonId: SHA256IdHash<Person>The role person id
True if the certificate is a role relation certificate, 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.
Application of CertificateRoleModel for relation certificates.