| arrayBufferToHex | ||||||
arrayBufferToHex(buffer: ArrayBuffer)
|
||||||
|
Parameters :
Returns :
string
|
| certFromBase64Der | ||||||
certFromBase64Der(val: string)
|
||||||
|
Parse a certificate from a Base64-encoded DER string (as used in LoTE trust lists). Converts to PEM format which is more reliably parsed by
Parameters :
Returns :
x509.X509Certificate
|
| bootstrap |
bootstrap()
|
|
Bootstrap function to initialize the NestJS application. |
| loadTlsOptions |
loadTlsOptions()
|
|
Load TLS options from certificate and key files. Returns undefined if TLS is not enabled or files are not found.
Returns :
TlsOptions | undefined
|
| buildMsoMdocConfig | |||||||||||||||
buildMsoMdocConfig(doctype: string, options: BuildCredentialConfigOptions, metadata?: CredentialMetadataInput, scope?: string)
|
|||||||||||||||
|
Build an mso_mdoc credential configuration
Parameters :
Returns :
MsoMdocCredentialConfig
|
| buildSdJwtDcConfig | |||||||||||||||
buildSdJwtDcConfig(vct: string, options: BuildCredentialConfigOptions, metadata?: CredentialMetadataInput, scope?: string)
|
|||||||||||||||
|
Build a dc+sd-jwt credential configuration
Parameters :
Returns :
SdJwtDcCredentialConfig
|
| isMsoMdocConfig | ||||
isMsoMdocConfig(config)
|
||||
|
Type guard to check if a config is for mso_mdoc format
Parameters :
Returns :
MsoMdocCredentialConfig
|
| isSdJwtDcConfig | ||||
isSdJwtDcConfig(config)
|
||||
|
Type guard to check if a config is for dc+sd-jwt format
Parameters :
Returns :
SdJwtDcCredentialConfig
|
| toCredentialConfigurationSupported | ||||||
toCredentialConfigurationSupported(config: TypedCredentialConfig)
|
||||||
|
Converts a TypedCredentialConfig to CredentialConfigurationSupported This is a type assertion helper since our types are derived from the SDK
Parameters :
|
| extractConditionsFromKeyDesc | ||||||||
extractConditionsFromKeyDesc(keyDesc: any)
|
||||||||
|
Extracts the conditions from a given key description.
Parameters :
Returns :
string[]
An array of strings representing the extracted conditions. |
| flattenMetas | ||||||||
flattenMetas(desc: any)
|
||||||||
|
Flattens the meta information from a given description object.
Parameters :
Returns :
Record<string, any>
A record containing the flattened meta information. |
| isEffectivelyRequired | ||||||||||||
isEffectivelyRequired(key: string, rawEnv: Record)
|
||||||||||||
|
Tests if a config key is effectively required in the current environment.
Parameters :
Returns :
boolean
True if the key is effectively required, false otherwise. |
| summarizeFlags | ||||||||
summarizeFlags(flags?: any)
|
||||||||
|
Summarizes the flags for a given configuration key.
Parameters :
Returns :
string
A string representation of the flags. |
| summarizeSchemaShape | ||||||||
summarizeSchemaShape(s?: any)
|
||||||||
|
Summarizes the shape of a given schema.
Parameters :
Returns :
string
A string representation of the schema shape. |
| summarizeWhenEntry | ||||||||
summarizeWhenEntry(w: any)
|
||||||||
|
Summarizes the conditions for a given "when" entry.
Parameters :
Returns :
string
A string representation of the "when" entry. |
| extractDpopJkt | ||||||
extractDpopJkt(dpopJwt?: string)
|
||||||
|
Extract DPoP JWK thumbprint from DPoP JWT. Returns undefined if parsing fails or DPoP is not provided.
Parameters :
Returns :
string | undefined
|
| findServiceByType | |||||||||
findServiceByType(entity: TrustedEntity, serviceType: ServiceTypeIdentifier)
|
|||||||||
|
Helper to find a specific service type within a TrustedEntity.
Parameters :
Returns :
TrustedEntityServiceCert | undefined
|
| getIssuanceCert | ||||||
getIssuanceCert(entity: TrustedEntity)
|
||||||
|
Get the issuance certificate from a TrustedEntity.
Parameters :
Returns :
TrustedEntityServiceCert | undefined
|
| getRevocationCert | ||||||
getRevocationCert(entity: TrustedEntity)
|
||||||
|
Get the revocation certificate from a TrustedEntity.
Parameters :
Returns :
TrustedEntityServiceCert | undefined
|
| getEncryptionService |
getEncryptionService()
|
|
Get the encryption service instance. Throws if not initialized.
Returns :
EncryptionService
|
| initializeEncryptionTransformer | ||||||
initializeEncryptionTransformer(service: EncryptionService)
|
||||||
|
Initialize the encryption transformer with an EncryptionService instance. Must be called during application bootstrap before any database operations.
Parameters :
Returns :
void
|
| getHeadersFromRequest | ||||||
getHeadersFromRequest(req: Request)
|
||||||
|
Utility function to extract headers from an Express request
Parameters :
Returns :
globalThis.Headers
|
| Secured | ||||
Secured(roles)
|
||||
|
Parameters :
|
| transformIaeActions |
transformIaeActions()
|
|
Helper function to validate and transform IAE actions array.
Returns :
ReturnType<unknown>
|