X509Certificates
X509 Certificate collection
Extends
Array<X509Certificate>
Implements
Indexable
[n: number]: X509Certificate
Constructors
Constructor
new X509Certificates():
X509Certificates
Creates a new instance
Returns
X509Certificates
Overrides
Array<X509Certificate>.constructor
Constructor
new X509Certificates(
raw,options?):X509Certificates
Creates a new instance from encoded PKCS7 buffer
Parameters
raw
Encoded PKCS7 buffer. Supported formats are DER, PEM, HEX, Base64, or Base64Url
options?
any
Optional ASN.1 parse options (e.g. asn1js.fromBER resource limits)
Returns
X509Certificates
Overrides
Array<X509Certificate>.constructor
Constructor
new X509Certificates(
cert):X509Certificates
Creates a new instance form X509 certificate
Parameters
cert
X509 certificate
Returns
X509Certificates
Overrides
Array<X509Certificate>.constructor
Constructor
new X509Certificates(
certs):X509Certificates
Creates a new instance from a list of x509 certificates
Parameters
certs
List of x509 certificates
Returns
X509Certificates
Overrides
Array<X509Certificate>.constructor
Properties
[unscopables]
readonly[unscopables]:object
Is an object whose properties have the value 'true' when they will be absent when used in a 'with' statement.
Index Signature
[key: number]: boolean | undefined
[iterator]?
optional[iterator]:boolean
[unscopables]?
readonlyoptional[unscopables]:boolean
Is an object whose properties have the value 'true' when they will be absent when used in a 'with' statement.
concat?
optionalconcat:boolean
copyWithin?
optionalcopyWithin:boolean
entries?
optionalentries:boolean
every?
optionalevery:boolean
fill?
optionalfill:boolean
filter?
optionalfilter:boolean
find?
optionalfind:boolean
findIndex?
optionalfindIndex:boolean
flat?
optionalflat:boolean
flatMap?
optionalflatMap:boolean
forEach?
optionalforEach:boolean
includes?
optionalincludes:boolean
indexOf?
optionalindexOf:boolean
join?
optionaljoin:boolean
keys?
optionalkeys:boolean
lastIndexOf?
optionallastIndexOf:boolean
length?
optionallength:boolean
Gets or sets the length of the array. This is a number one higher than the highest index in the array.
map?
optionalmap:boolean
pop?
optionalpop:boolean
push?
optionalpush:boolean
reduce?
optionalreduce:boolean
reduceRight?
optionalreduceRight:boolean
reverse?
optionalreverse:boolean
shift?
optionalshift:boolean
slice?
optionalslice:boolean
some?
optionalsome:boolean
sort?
optionalsort:boolean
splice?
optionalsplice:boolean
toLocaleString?
optionaltoLocaleString:boolean
toString?
optionaltoString:boolean
unshift?
optionalunshift:boolean
values?
optionalvalues:boolean
Inherited from
Array.[unscopables]
length
length:
number
Gets or sets the length of the array. This is a number one higher than the highest index in the array.
Inherited from
Array.length
[species]
readonlystatic[species]:ArrayConstructor
Inherited from
Array.[species]
Methods
[iterator]()
[iterator]():
IterableIterator<X509Certificate>
Iterator
Returns
IterableIterator<X509Certificate>
Inherited from
Array.[iterator]
clear()
clear():
void
Removes all items from collection
Returns
void
concat()
Call Signature
concat(...
items):X509Certificate[]
Combines two or more arrays. This method returns a new array without modifying any existing arrays.
Parameters
items
...ConcatArray<X509Certificate>[]
Additional arrays and/or items to add to the end of the array.
Returns
Inherited from
Array.concat
Call Signature
concat(...
items):X509Certificate[]
Combines two or more arrays. This method returns a new array without modifying any existing arrays.
Parameters
items
...(X509Certificate | ConcatArray<X509Certificate>)[]
Additional arrays and/or items to add to the end of the array.
Returns
Inherited from
Array.concat
copyWithin()
copyWithin(
target,start,end?):this
Returns the this object after copying a section of the array identified by start and end to the same array starting at position target
Parameters
target
number
If target is negative, it is treated as length+target where length is the length of the array.
start
number
If start is negative, it is treated as length+start. If end is negative, it is treated as length+end.
end?
number
If not specified, length of the this object is used as its default value.
Returns
this
Inherited from
Array.copyWithin
entries()
entries():
IterableIterator<[number,X509Certificate]>
Returns an iterable of key, value pairs for every entry in the array
Returns
IterableIterator<[number, X509Certificate]>
Inherited from
Array.entries
every()
Call Signature
every<
S>(predicate,thisArg?):this is S[]
Determines whether all the members of an array satisfy the specified test.
Type Parameters
S
S extends X509Certificate
Parameters
predicate
(value, index, array) => value is S
A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
thisArg?
any
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
Returns
this is S[]
Inherited from
Array.every
Call Signature
every(
predicate,thisArg?):boolean
Determines whether all the members of an array satisfy the specified test.
Parameters
predicate
(value, index, array) => unknown
A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
thisArg?
any
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
Returns
boolean
Inherited from
Array.every
export()
Call Signature
export():
string
Returns encoded object in PEM format
Returns
string
Call Signature
export(
format):ArrayBuffer
Returns encoded object in DER format
Parameters
format
"raw"
der format
Returns
ArrayBuffer
Call Signature
export(
format?):string
Returns encoded object in selected format
Parameters
format?
hex, base64, base64url, pem. Default is pem
Returns
string
fill()
fill(
value,start?,end?):this
Changes all array elements from start to end index to a static value and returns the modified array
Parameters
value
value to fill array section with
start?
number
index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.
end?
number
index to stop filling the array at. If end is negative, it is treated as length+end.
Returns
this
Inherited from
Array.fill
filter()
Call Signature
filter<
S>(predicate,thisArg?):S[]
Returns the elements of an array that meet the condition specified in a callback function.
Type Parameters
S
S extends X509Certificate
Parameters
predicate
(value, index, array) => value is S
A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
thisArg?
any
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
Returns
S[]
Inherited from
Array.filter
Call Signature
filter(
predicate,thisArg?):X509Certificate[]
Returns the elements of an array that meet the condition specified in a callback function.
Parameters
predicate
(value, index, array) => unknown
A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
thisArg?
any
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
Returns
Inherited from
Array.filter
find()
Call Signature
find<
S>(predicate,thisArg?):S|undefined
Returns the value of the first element in the array where predicate is true, and undefined otherwise.
Type Parameters
S
S extends X509Certificate
Parameters
predicate
(value, index, obj) => value is S
find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
thisArg?
any
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
Returns
S | undefined
Inherited from
Array.find
Call Signature
find(
predicate,thisArg?):X509Certificate|undefined
Parameters
predicate
(value, index, obj) => unknown
thisArg?
any
Returns
X509Certificate | undefined
Inherited from
Array.find
findIndex()
findIndex(
predicate,thisArg?):number
Returns the index of the first element in the array where predicate is true, and -1 otherwise.
Parameters
predicate
(value, index, obj) => unknown
find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1.
thisArg?
any
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
Returns
number
Inherited from
Array.findIndex
flat()
flat<
A,D>(this,depth?):FlatArray<A,D>[]
Returns a new array with all sub-array elements concatenated into it recursively up to the specified depth.
Type Parameters
A
A
D
D extends number = 1
Parameters
this
A
depth?
D
The maximum recursion depth
Returns
FlatArray<A, D>[]