Skip to main content

Class: AbstractKeyProvider

Hierarchy

Constructors

constructor

new AbstractKeyProvider(keyProviderConfig): AbstractKeyProvider

Parameters

NameType
keyProviderConfigKeyProviderConfig

Returns

AbstractKeyProvider

Defined in

packages/backend/server/src/crypto/abstract-key-provider.ts:25

Properties

connectorKeys

Protected connectorKeys: null | ConnectorKeys = null

Defined in

packages/backend/server/src/crypto/abstract-key-provider.ts:20


keyProviderConfig

Protected keyProviderConfig: KeyProviderConfig

Defined in

packages/backend/server/src/crypto/abstract-key-provider.ts:19


onActiveKeyUpdate

Protected onActiveKeyUpdate: null | Listener<Promise<void>> = null

Defined in

packages/backend/server/src/crypto/abstract-key-provider.ts:21


updateOidcServer

Protected updateOidcServer: Listener<Promise<void>> | () => boolean

Defined in

packages/backend/server/src/crypto/abstract-key-provider.ts:22

Methods

generateKeys

generateKeys(): Promise<ConnectorKeys>

Returns

Promise<ConnectorKeys>

Defined in

packages/backend/server/src/crypto/abstract-key-provider.ts:33


getActiveKeys

getActiveKeys(): Promise<ConnectorKeys>

Returns

Promise<ConnectorKeys>

Defined in

packages/backend/server/src/crypto/abstract-key-provider.ts:35


getPublicKeys

getPublicKeys(): Promise<JWK[]>

Returns

Promise<JWK[]>

Defined in

packages/backend/server/src/crypto/abstract-key-provider.ts:40


isConnectorKeys

isConnectorKeys(obj): obj is ConnectorKeys

Parameters

NameType
objunknown

Returns

obj is ConnectorKeys

Defined in

packages/backend/server/src/crypto/abstract-key-provider.ts:42


registerCallbacks

registerCallbacks(onActiveKeyUpdate, updateOidcServer): void

Parameters

NameType
onActiveKeyUpdateListener<Promise<any>>
updateOidcServerListener<Promise<any>>

Returns

void

Defined in

packages/backend/server/src/crypto/abstract-key-provider.ts:76


createKeys

createKeys(alg?, options?): Promise<ConnectorKeys>

Parameters

NameTypeDefault value
algstringKeycloakConnector.REQUIRED_ALGO
options?GenerateKeyPairOptionsundefined

Returns

Promise<ConnectorKeys>

Defined in

packages/backend/server/src/crypto/abstract-key-provider.ts:44