Skip to content

Documentation


Documentation / @blazetrails/activesupport / EncryptedConfiguration

Class: EncryptedConfiguration ​

Defined in: packages/activesupport/lib/encrypted-configuration.ts:34

Extends ​

Constructors ​

Constructor ​

new EncryptedConfiguration(__namedParameters): EncryptedConfiguration

Defined in: packages/activesupport/lib/encrypted-configuration.ts:46

Parameters ​

ParameterType
__namedParameters{ configPath: string; envKey: string; keyPath: string; raiseIfMissingKey: boolean; }
__namedParameters.configPathstring
__namedParameters.envKeystring
__namedParameters.keyPathstring
__namedParameters.raiseIfMissingKeyboolean

Returns ​

EncryptedConfiguration

Inherited from ​

EncryptedFile.constructor

Properties ​

contentPath ​

readonly contentPath: string

Defined in: packages/activesupport/lib/encrypted-file.ts:47

Inherited from ​

EncryptedFile.contentPath


envKey ​

readonly envKey: string

Defined in: packages/activesupport/lib/encrypted-file.ts:49

Inherited from ​

EncryptedFile.envKey


keyPath ​

readonly keyPath: string

Defined in: packages/activesupport/lib/encrypted-file.ts:48

Inherited from ​

EncryptedFile.keyPath


raiseIfMissingKey ​

readonly raiseIfMissingKey: boolean

Defined in: packages/activesupport/lib/encrypted-file.ts:50

Inherited from ​

EncryptedFile.raiseIfMissingKey


name ​

static name: string = "ActiveSupport::EncryptedConfiguration"

Defined in: packages/activesupport/lib/encrypted-configuration.ts:41

Returns the name of the function. Function names are read-only and can not be changed.

Methods ​

change() ​

change(block): Promise<void>

Defined in: packages/activesupport/lib/encrypted-file.ts:102

Parameters ​

ParameterType
block(tmpPath) => void | Promise<void>

Returns ​

Promise<void>

Inherited from ​

EncryptedFile.change


config() ​

config(): Promise<Record<string, unknown>>

Defined in: packages/activesupport/lib/encrypted-configuration.ts:80

Returns ​

Promise<Record<string, unknown>>


dig() ​

dig(key, ...identifiers): unknown

Defined in: packages/activesupport/lib/encrypted-configuration.ts:35

Parameters ​

ParameterType
keystring
...identifiers(string | number)[]

Returns ​

unknown


fetch() ​

fetch(key, ...rest): unknown

Defined in: packages/activesupport/lib/encrypted-configuration.ts:36

Parameters ​

ParameterType
keystring
...rest[] | [unknown]

Returns ​

unknown


inspect() ​

inspect(): string

Defined in: packages/activesupport/lib/encrypted-configuration.ts:84

Returns ​

string


isKey() ​

isKey(): Promise<boolean>

Defined in: packages/activesupport/lib/encrypted-file.ts:81

Returns ​

Promise<boolean>

Inherited from ​

EncryptedFile.isKey


key() ​

key(): Promise<string | null>

Defined in: packages/activesupport/lib/encrypted-file.ts:73

Returns ​

Promise<string | null>

Inherited from ​

EncryptedFile.key


read() ​

read(): Promise<string>

Defined in: packages/activesupport/lib/encrypted-configuration.ts:60

Returns ​

Promise<string>

Missing Rails Name ​

strip — PERMANENT

Inherited from ​

EncryptedFile.read


validateBang() ​

validateBang(): Promise<void>

Defined in: packages/activesupport/lib/encrypted-configuration.ts:69

Returns ​

Promise<void>


write() ​

write(contents): Promise<void>

Defined in: packages/activesupport/lib/encrypted-file.ts:96

Parameters ​

ParameterType
contentsstring

Returns ​

Promise<void>

Inherited from ​

EncryptedFile.write


expectedKeyLength() ​

static expectedKeyLength(): number

Defined in: packages/activesupport/lib/encrypted-file.ts:68

Returns ​

number

Inherited from ​

EncryptedFile.expectedKeyLength


generateKey() ​

static generateKey(): string

Defined in: packages/activesupport/lib/encrypted-file.ts:64

Returns ​

string

Inherited from ​

EncryptedFile.generateKey