@request-seal/core API
Preparing search index...
custody/ssh-agent
createSshAgent
Function createSshAgent
createSshAgent
(
algorithm
:
unknown
,
socketPath
:
unknown
,
publicKey
:
unknown
,
options
?:
unknown
,
)
:
Promise
<
Result
<
Readonly
<
{
algorithm
:
CustodyAlgorithm
;
capabilities
:
readonly
(
"sign"
|
"verify"
|
"unwrap"
)
[]
;
identity
:
(
context
?:
Readonly
<
{
deadline
:
number
;
signal
:
AbortSignal
}
>
,
)
=>
Promise
<
Result
<
KeyIdentity
>
>
;
publicKey
:
(
context
?:
Readonly
<
{
deadline
:
number
;
signal
:
AbortSignal
}
>
,
)
=>
Promise
<
Result
<
PublicKey
>
>
;
release
:
()
=>
Promise
<
Result
<
true
>
>
;
sign
:
(
algorithm
:
unknown
,
data
:
unknown
,
context
:
Context
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
Uint8Array
<
ArrayBuffer
>
>
>
;
unwrap
:
(
algorithm
:
unknown
,
wrappedKey
:
unknown
,
context
:
Context
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
Readonly
<
{
decrypt
:
(
ciphertext
:
unknown
,
options
:
unknown
,
context
:
Context
,
)
=>
Promise
<
(...)
>
;
length
:
128
|
256
;
release
:
()
=>
Promise
<
(...)
>
;
}
,
>
,
>
,
>
;
verify
:
(
algorithm
:
unknown
,
signature
:
unknown
,
data
:
unknown
,
context
:
Context
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
true
>
>
;
}
,
>
,
>
,
>
Caller-selected local socket and trusted public components; no environment discovery.
Parameters
algorithm
:
unknown
socketPath
:
unknown
publicKey
:
unknown
options
:
unknown
= {}
Returns
Promise
<
Result
<
Readonly
<
{
algorithm
:
CustodyAlgorithm
;
capabilities
:
readonly
(
"sign"
|
"verify"
|
"unwrap"
)
[]
;
identity
:
(
context
?:
Readonly
<
{
deadline
:
number
;
signal
:
AbortSignal
}
>
,
)
=>
Promise
<
Result
<
KeyIdentity
>
>
;
publicKey
:
(
context
?:
Readonly
<
{
deadline
:
number
;
signal
:
AbortSignal
}
>
,
)
=>
Promise
<
Result
<
PublicKey
>
>
;
release
:
()
=>
Promise
<
Result
<
true
>
>
;
sign
:
(
algorithm
:
unknown
,
data
:
unknown
,
context
:
Context
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
Uint8Array
<
ArrayBuffer
>
>
>
;
unwrap
:
(
algorithm
:
unknown
,
wrappedKey
:
unknown
,
context
:
Context
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
Readonly
<
{
decrypt
:
(
ciphertext
:
unknown
,
options
:
unknown
,
context
:
Context
,
)
=>
Promise
<
(...)
>
;
length
:
128
|
256
;
release
:
()
=>
Promise
<
(...)
>
;
}
,
>
,
>
,
>
;
verify
:
(
algorithm
:
unknown
,
signature
:
unknown
,
data
:
unknown
,
context
:
Context
,
options
?:
unknown
,
)
=>
Promise
<
Result
<
true
>
>
;
}
,
>
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@request-seal/core API
Loading...
Caller-selected local socket and trusted public components; no environment discovery.