Class DigitalSignatureCollection

Class DigitalSignatureCollection

Namespace: Aspose.Cells.DigitalSignatures
Assembly: Aspose.Cells.dll (25.2.0)

Zapewnia kolekcję podpisów cyfrowych dołączonych do dokumentu.

public class DigitalSignatureCollection : IEnumerable

Dziedziczenie

objectDigitalSignatureCollection

Implementuje

IEnumerable

Dziedziczone członkowie

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Przykłady

Poniższy przykład pokazuje, jak zweryfikować podpis cyfrowy.

//arkusz roboczy z podpisanego pliku źródłowego
Workbook signedWorkbook = new Workbook(@"signedFile.xlsx");
//wb.IsDigitallySigned jest prawdziwe, gdy arkusz roboczy jest już podpisany.
Console.WriteLine(signedWorkbook.IsDigitallySigned);
//pobierz kolekcję podpisów cyfrowych z arkusza roboczego
DigitalSignatureCollection existingDsc = signedWorkbook.GetDigitalSignature();
foreach (DigitalSignature existingDs in existingDsc)
{
    Console.WriteLine(existingDs.Comments);
    Console.WriteLine(existingDs.SignTime);
    Console.WriteLine(existingDs.IsValid);
}
'arkusz roboczy z podpisanego pliku źródłowego
Dim signedWorkbook As Workbook = New Workbook("newfile.xlsx")
'Workbook.IsDigitallySigned jest prawdziwe, gdy arkusz roboczy jest już podpisany.
Console.WriteLine(signedWorkbook.IsDigitallySigned)
'pobierz kolekcję podpisów cyfrowych z arkusza roboczego
Dim existingDsc As DigitalSignatureCollection = signedWorkbook.GetDigitalSignature()
Dim existingDs As DigitalSignature
For Each existingDs In existingDsc
    Console.WriteLine(existingDs.Comments)
    Console.WriteLine(existingDs.SignTime)
    Console.WriteLine(existingDs.IsValid)
Next

Konstruktory

DigitalSignatureCollection()

Konstruktor DigitalSignatureCollection.

public DigitalSignatureCollection()

Metody

Add(DigitalSignature)

Dodaj jeden podpis do DigitalSignatureCollection.

public void Add(DigitalSignature digitalSignature)

Parametry

digitalSignature DigitalSignature

Podpis cyfrowy w kolekcji.

GetEnumerator()

Pobierz enumerator dla DigitalSignatureCollection, ten enumerator pozwala na iterację po kolekcji

public IEnumerator GetEnumerator()

Zwraca

IEnumerator

Enumerator do iteracji.

 Polski