Constructors
constructor
- new GroupManager(__namedParameters: { cardManager: CardManager; groupLocalStorage: GroupLocalStorage; identity: string; privateKeyLoader: PrivateKeyLoader }): GroupManager
-
Parameters
-
__namedParameters: { cardManager: CardManager; groupLocalStorage: GroupLocalStorage; identity: string; privateKeyLoader: PrivateKeyLoader }
-
cardManager: CardManager
-
-
identity: string
-
privateKeyLoader: PrivateKeyLoader
Methods
addAccess
- addAccess(sessionId: string, allowedCards: ICard[]): Promise<void>
-
Parameters
-
sessionId: string
-
allowedCards: ICard[]
Returns Promise<void>
delete
- delete(sessionId: string): Promise<void>
-
Parameters
Returns Promise<void>
pull
- pull(sessionId: string, initiatorCard: ICard): Promise<Group>
-
Parameters
-
sessionId: string
-
initiatorCard: ICard
Returns Promise<Group>
reAddAccess
- reAddAccess(sessionId: string, allowedCard: ICard): Promise<void>
-
Parameters
-
sessionId: string
-
allowedCard: ICard
Returns Promise<void>
removeAccess
- removeAccess(sessionId: string, forbiddenIdentities: string[]): Promise<void>
-
Parameters
-
sessionId: string
-
forbiddenIdentities: string[]
Returns Promise<void>
retrieve
- retrieve(sessionId: string, epochNumber?: number): Promise<Group>
-
Parameters
-
sessionId: string
-
Optional epochNumber: number
Returns Promise<Group>
store
-
Parameters
Returns Promise<Group>