Constructors
Methods
addPattern
- addPattern(id: string, pattern: Pattern): void
Returns void
addRule
- addRule(packetId: string, signerId: string): void
Parameters
- packetId: string
- signerId: string
Returns void
getPattern
- getPattern(id: string): Pattern
- getPattern(id: string, optional: true): undefined | Pattern
Returns undefined | Pattern
hasRule
- hasRule(packetId: string, signerId: string): boolean
Parameters
- packetId: string
- signerId: string
Returns boolean
listPatterns
- listPatterns(): Iterable<[id: string, pattern: Pattern], any, any>
Returns Iterable<[id: string, pattern: Pattern], any, any>
listRules
- listRules(): Iterable<[packetId: string, signerId: string], any, any>
Returns Iterable<[packetId: string, signerId: string], any, any>
Policy in a trust schema.