Class DigitalSignatureCollection

Class DigitalSignatureCollection

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

문서에 첨부된 디지털 서명의 컬렉션을 제공합니다.

public class DigitalSignatureCollection : IEnumerable

상속

objectDigitalSignatureCollection

구현

IEnumerable

상속된 멤버

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

예제

다음 예제는 디지털 서명을 검증하는 방법을 보여줍니다.

//서명된 원본 파일에서의 워크북
Workbook signedWorkbook = new Workbook(@"signedFile.xlsx");
//wb.IsDigitallySigned가 true이면 워크북이 이미 서명된 것입니다.
Console.WriteLine(signedWorkbook.IsDigitallySigned);
//워크북에서 디지털 서명 컬렉션 가져오기
DigitalSignatureCollection existingDsc = signedWorkbook.GetDigitalSignature();
foreach (DigitalSignature existingDs in existingDsc)
{
    Console.WriteLine(existingDs.Comments);
    Console.WriteLine(existingDs.SignTime);
    Console.WriteLine(existingDs.IsValid);
}
'서명된 원본 파일에서의 워크북
Dim signedWorkbook As Workbook = New Workbook("newfile.xlsx")
'Workbook.IsDigitallySigned가 true이면 워크북이 이미 서명된 것입니다.
Console.WriteLine(signedWorkbook.IsDigitallySigned)
'워크북에서 디지털 서명 컬렉션 가져오기
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

생성자

DigitalSignatureCollection()

DigitalSignatureCollection의 생성자입니다.

public DigitalSignatureCollection()

메서드

Add(DigitalSignature)

디지털 서명 컬렉션에 하나의 서명을 추가합니다.

public void Add(DigitalSignature digitalSignature)

매개변수

digitalSignature DigitalSignature

컬렉션의 디지털 서명입니다.

GetEnumerator()

DigitalSignatureCollection의 열거자를 가져옵니다. 이 열거자를 통해 컬렉션을 반복할 수 있습니다.

public IEnumerator GetEnumerator()

반환값

IEnumerator

반복을 위한 열거자입니다.

 한국어