(options)
| 248 | } |
| 249 | |
| 250 | export(options) { |
| 251 | const handle = getKeyObjectHandle(this); |
| 252 | if (options !== undefined) { |
| 253 | validateObject(options, 'options'); |
| 254 | validateOneOf( |
| 255 | options.format, 'options.format', [undefined, 'buffer', 'jwk']); |
| 256 | if (options.format === 'jwk') { |
| 257 | return handle.exportJwk({}, false); |
| 258 | } |
| 259 | } |
| 260 | return handle.export(); |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | class AsymmetricKeyObject extends KeyObject { |