@contentauth/c2pa-node / LocalSigner
Class: LocalSigner
Defined in: Signer.ts:24
A signer that uses a local certificate and private key to sign data
Implements
Constructors
Constructor
new LocalSigner(
localSigner):LocalSigner
Defined in: Signer.ts:25
Parameters
localSigner
unknown
Returns
LocalSigner
Methods
alg()
alg():
SigningAlg
Defined in: Signer.ts:46
Returns
Implementation of
certs()
certs():
Buffer<ArrayBufferLike>[]
Defined in: Signer.ts:50
Returns
Buffer<ArrayBufferLike>[]
Implementation of
reserveSize()
reserveSize():
number
Defined in: Signer.ts:54
Returns
number
Implementation of
LocalSignerInterface.reserveSize
sign()
sign(
data):Buffer
Defined in: Signer.ts:42
Parameters
data
Buffer
Returns
Buffer
Implementation of
signer()
signer():
unknown
Defined in: Signer.ts:62
Returns
unknown
Implementation of
timeAuthorityUrl()
timeAuthorityUrl():
undefined|string
Defined in: Signer.ts:58
Returns
undefined | string
Implementation of
LocalSignerInterface.timeAuthorityUrl
newSigner()
staticnewSigner(certificate,privateKey,algorithm,tsaUrl?):LocalSigner
Defined in: Signer.ts:27
Parameters
certificate
Buffer
privateKey
Buffer
algorithm
tsaUrl?
string
Returns
LocalSigner