Class: AbstractKeyProvider
Hierarchy
-
AbstractKeyProvider
Constructors
constructor
• new AbstractKeyProvider(keyProviderConfig
): AbstractKeyProvider
Parameters
Name | Type |
---|---|
keyProviderConfig | KeyProviderConfig |
Returns
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
Name | Type |
---|---|
obj | unknown |
Returns
obj is ConnectorKeys
Defined in
packages/backend/server/src/crypto/abstract-key-provider.ts:42
registerCallbacks
▸ registerCallbacks(onActiveKeyUpdate
, updateOidcServer
): void
Parameters
Name | Type |
---|---|
onActiveKeyUpdate | Listener <Promise <any >> |
updateOidcServer | Listener <Promise <any >> |
Returns
void
Defined in
packages/backend/server/src/crypto/abstract-key-provider.ts:76
createKeys
▸ createKeys(alg?
, options?
): Promise
<ConnectorKeys
>
Parameters
Name | Type | Default value |
---|---|---|
alg | string | KeycloakConnector.REQUIRED_ALGO |
options? | GenerateKeyPairOptions | undefined |
Returns
Promise
<ConnectorKeys
>
Defined in
packages/backend/server/src/crypto/abstract-key-provider.ts:44