| _getIssuanceCert | ||||||
_getIssuanceCert(entity: TrustedEntity)
|
||||||
|
Get the issuance certificate from a TrustedEntity.
Parameters :
Returns :
TrustedEntityServiceCert | undefined
|
| findServiceByType | |||||||||
findServiceByType(entity: TrustedEntity, serviceType: ServiceTypeIdentifier)
|
|||||||||
|
Helper to find a specific service type within a TrustedEntity.
Parameters :
Returns :
TrustedEntityServiceCert | undefined
|
| getRevocationCert | ||||||
getRevocationCert(entity: TrustedEntity)
|
||||||
|
Get the revocation certificate from a TrustedEntity.
Parameters :
Returns :
TrustedEntityServiceCert | undefined
|
| _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
|
| 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
|
| toCredentialConfigurationSupported | ||||||
toCredentialConfigurationSupported(config: TypedCredentialConfig)
|
||||||
|
Converts a TypedCredentialConfig to CredentialConfigurationSupported This is a type assertion helper since our types are derived from the SDK
Parameters :
|
| _transformIaeActions |
_transformIaeActions()
|
|
Helper function to validate and transform IAE actions array.
Returns :
ReturnType<unknown>
|
| 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
|
| base64url | ||||||
base64url(input: string)
|
||||||
|
Parameters :
Returns :
string
|
| base64UrlOrBase64ToBytes | ||||||
base64UrlOrBase64ToBytes(s: string)
|
||||||
|
Parameters :
Returns :
Uint8Array
|
| pemToDer | ||||||
pemToDer(pem: string)
|
||||||
|
Parameters :
Returns :
ArrayBuffer
|
| stripPrivateComponents | ||||||
stripPrivateComponents(jwk: JWK)
|
||||||
|
Parameters :
Returns :
JWK
|
| vaultKeyType | ||||||
vaultKeyType(alg: KmsSigningAlg)
|
||||||
|
Parameters :
Returns :
string
|
| base64UrlToBytes | ||||||
base64UrlToBytes(encoded: string)
|
||||||
|
Convert base64url or base64 string to Uint8Array.
Parameters :
Returns :
Uint8Array
|
| 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
|
| buildClaims | ||||
buildClaims(fields)
|
||||
|
Parameters :
Returns :
Record<string, unknown>
|
| buildClaimsByNamespace | ||||
buildClaimsByNamespace(fields)
|
||||
|
Parameters :
Returns :
Record<string, Record<string, unknown>>
|
| buildClaimsMetadata | ||||
buildClaimsMetadata(fields)
|
||||
|
Parameters :
Returns :
ClaimMetadata[]
|
| buildDisclosureFrame | ||||
buildDisclosureFrame(fields)
|
||||
|
Parameters :
Returns :
Record | undefined
|
| buildJsonSchema | ||||
buildJsonSchema(fields)
|
||||
|
Parameters :
Returns :
JsonSchema
|
| ensureFrameNode | |||||||||
ensureFrameNode(root: Record, path)
|
|||||||||
|
Parameters :
Returns :
Record<string, unknown>
|
| ensureSchemaNode | |||||||||
ensureSchemaNode(root: JsonSchema, path: Array)
|
|||||||||
|
Parameters :
Returns :
JsonSchema
|
| getDisplayTitle | ||||
getDisplayTitle(display)
|
||||
|
Parameters :
Returns :
string | undefined
|
| getOrCreateChild |
getOrCreateChild(target: Record, key: string, nextIsArray: boolean)
|
|
Returns :
Record | []
|
| normalizeDisplayInfo | ||||
normalizeDisplayInfo(display)
|
||||
|
Parameters :
Returns :
[] | undefined
|
| segmentToKey | ||||||
segmentToKey(segment: Segment)
|
||||||
|
Parameters :
Returns :
string
|
| setValueAtPath | ||||||||||||
setValueAtPath(target: Record, path, value)
|
||||||||||||
|
Parameters :
Returns :
void
|
| loadPkcs11 |
loadPkcs11()
|
|
Returns :
Promise<Pkcs11Module>
|
| toConstants | ||||||
toConstants(mod: Pkcs11Module)
|
||||||
|
Parameters :
Returns :
Pkcs11Constants
|
| unwrapEcPoint | ||||||
unwrapEcPoint(raw: Buffer)
|
||||||
|
CKA_EC_POINT is specified as a DER-encoded OCTET STRING wrapping the raw ECPoint. Some HSM vendors return the unwrapped ECPoint directly, so we accept both.
Parameters :
Returns :
Buffer
|
| buildPostgresSslOptions | ||||
buildPostgresSslOptions(readValue)
|
||||
|
Build PostgreSQL SSL settings from environment/config values. Supported variables:
Parameters :
Returns :
boolean | TlsOptions
|
| parseBoolean | ||||
parseBoolean(value)
|
||||
|
Parameters :
Returns :
boolean | undefined
|
| parseOptionalString | ||||
parseOptionalString(value)
|
||||
|
Parameters :
Returns :
string | undefined
|
| readOptionalFile |
readOptionalFile(path: string, variableName: string)
|
|
Returns :
Buffer
|
| bytesEqual | |||||||||
bytesEqual(a: Uint8Array, b: Uint8Array)
|
|||||||||
|
Parameters :
Returns :
boolean
|
| defaultConfig |
defaultConfig()
|
|
Returns :
KmsConfigDto
|
| resolveEnvPlaceholders | ||||||
resolveEnvPlaceholders(value: T)
|
||||||
|
Parameters :
Returns :
T
|
| derEcdsaToRaw | |||||||||
derEcdsaToRaw(der: Uint8Array, coordLength: number)
|
|||||||||
|
Convert an ASN.1 DER-encoded ECDSA-Sig-Value (
Parameters :
Returns :
Uint8Array
|
| 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
|
| extractRawTokenFromSubmission | |||||||||
extractRawTokenFromSubmission(id: string, payload)
|
|||||||||
|
Extracts the raw cryptographic token from the presentation payload. Supporting Multi-Credential-Flows by evaluating the descriptor_map or falling back to ID-mapping.
Parameters :
Returns :
string | undefined
|
| extractRequestMeta | ||||||
extractRequestMeta(req?: Request)
|
||||||
|
Parameters :
|
| getChangedFields | |||||||||
getChangedFields(before?: Record, after?: Record)
|
|||||||||
|
Parameters :
Returns :
string[]
|
| getChangedFieldsForKeys | ||||||||||||
getChangedFieldsForKeys(before: T, after: T, keys: Array)
|
||||||||||||
|
Parameters :
Returns :
string[]
|
| resolveAuditActor | ||||||
resolveAuditActor(token: TokenPayload)
|
||||||
|
Parameters :
Returns :
AuditLogActor
|
| filterOpenApiPaths | |||||||||
filterOpenApiPaths(document: OpenAPIObject, predicate)
|
|||||||||
|
Filter an OpenAPI document to only include paths matching (or not matching) a given predicate. Also prunes the tag list to only include tags that are actually referenced by the remaining paths.
Parameters :
Returns :
OpenAPIObject
|
| 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
|
| importPublicCryptoKey | ||||||||||||
importPublicCryptoKey(publicJwk: JWK, alg: KmsSigningAlg)
|
||||||||||||
|
Convenience: derive a real WebCrypto public CryptoKey from a public JWK. Used by the cert builder to populate SubjectPublicKeyInfo / compute Subject- and AuthorityKeyIdentifier extensions.
Parameters :
Returns :
Promise<CryptoKey>
|
| isKmsKey | ||||||
isKmsKey(key: CryptoKey)
|
||||||
|
Parameters :
Returns :
unknown
|
| makeKmsSigningKey | ||||||||||||||||
makeKmsSigningKey(adapter: KmsAdapter, ref: KmsKeyRef, alg: KmsSigningAlg)
|
||||||||||||||||
|
Build an opaque CryptoKey-shaped value that routes WebCrypto The returned object is NEVER usable for export, verify or any other
native subtle operation — only for signing, and only when the
KmsCryptoProvider is active (which is the default once the
Parameters :
Returns :
CryptoKey
|
| IsTransactionData | ||||||
IsTransactionData(validationOptions?: ValidationOptions)
|
||||||
|
Parameters :
|
| loadConfigDto | |||||||||
loadConfigDto(filePath: string, validationClass: ClassConstructor)
|
|||||||||
|
Parameters :
Returns :
T
|
| loadJsonFile | ||||||
loadJsonFile(filePath: string)
|
||||||
|
Parameters :
Returns :
T
|
| requireTenantContext | ||||||
requireTenantContext(user: TokenPayload)
|
||||||
|
Parameters :
Returns :
string
|
| Secured | ||||
Secured(roles)
|
||||
|
Parameters :
|
| signatureAlgFor | ||||||
signatureAlgFor(alg: KmsSigningAlg)
|
||||||
|
Parameters :
|
| stripPrivateComponents | ||||||
stripPrivateComponents(jwk: JWK)
|
||||||
|
Parameters :
Returns :
JWK
|