PKCS1
개요
PKCS1은 Aspose.PDF FOSS에서 .NET을 위한 클래스입니다. 상속 대상: Signature.
이 클래스는 .NET 프로그램에서 PKCS1 객체를 다루기 위한 11개의 메서드를 제공합니다. 사용 가능한 메서드에는 GetSignatureAlgorithmInfo, PKCS1, Signature, Verify가 포함됩니다. 모든 공개 멤버는 Aspose.PDF FOSS for .NET 패키지를 설치한 후 .NET 애플리케이션에서 접근할 수 있습니다. 속성: Authority, AvoidEstimatingSignatureLength, ByteRange, ContactInfo, CustomAppearance, CustomSignHash, 및 기타 8개.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
Authority | string | 읽기/쓰기 | 권한을 가져오거나 설정합니다. |
ContactInfo | string | 읽기/쓰기 | 연락처 정보를 가져오거나 설정합니다. |
Location | string | 읽기/쓰기 | 위치를 가져오거나 설정합니다. |
Reason | string | 읽기/쓰기 | 이유를 가져오거나 설정합니다. |
Date | DateTime | 읽기/쓰기 | 날짜를 가져오거나 설정합니다. |
ByteRange | int[] | 읽기 | 서명의 /ByteRange 항목. |
TimestampSettings | Aspose.Pdf.TimestampSettings | 읽기/쓰기 | RFC 3161 TSA 설정; 설정된 경우 서명자에 의해 적용됩니다. |
OcspSettings | Aspose.Pdf.OcspSettings | 읽기/쓰기 | OCSP / revocation-check 설정; 설정된 경우 서명자에 의해 적용됩니다. |
CustomAppearance | SignatureCustomAppearance? | 읽기/쓰기 | 시각적 외관 조정 옵션은 서명이 visible-rect overload를 통해 서명될 때 SignWithAppearance에 의해 적용됩니다. |
CustomSignHash | SignHash? | 읽기/쓰기 | 선택적 외부 서명자 콜백. |
UseLtv | bool | 읽기/쓰기 | use ltv를 가져오거나 설정합니다. |
AvoidEstimatingSignatureLength | bool | 읽기/쓰기 | true인 경우, 서명자는 바이트 범위 추정 단계를 건너뛰고 PKCS#7 /Contents 16진수 문자열을 위한 공간을 예약할 때 DefaultSignatureLength을 직접 사용합니다. |
DefaultSignatureLength | int | 읽기/쓰기 | PKCS#7 /Contents 16진수 문자열에 예약된 바이트 수. |
ShowProperties | bool | 읽기/쓰기 | true인 경우, 표시되는 서명 모양에 서명자의 Reason/Location/ContactInfo가 텍스트로 포함됩니다. |
메서드
| 시그니처 | 설명 |
|---|---|
PKCS1() | 이 PKCS1 인스턴스에서 PKCS1을 호출합니다. |
PKCS1(pfx: string, password: string) | 이 PKCS1 인스턴스에서 PKCS1(pfx, password)를 호출합니다. |
PKCS1(pfx: Stream, password: string) | 이 PKCS1 인스턴스에서 PKCS1(pfx, password)를 호출합니다. |
PKCS1(image: Stream) | 보이는 서명이 이미지를 외관 그래픽으로 표시하도록 하는 PKCS#1 서명 구성을 구성합니다. |
Signature() | 이 PKCS1 인스턴스에서 Signature를 호출합니다. |
Signature(pfx: string, password: string) | 이 PKCS1 인스턴스에서 Signature(pfx, password)를 호출합니다. |
Signature(pfx: Stream, password: string) | 이 PKCS1 인스턴스에서 Signature(pfx, password)를 호출합니다. |
Verify() | 로드된 서명의 PKCS#7을 원본 PDF 바이트와 검증합니다 — 서명이 디코딩되고 검증될 때 true를 반환합니다. |
Verify(options: Security.ValidationOptions, validationResult: Security.ValidationResult) | 명시적인 옵션과 결과 DTO를 사용하여 검증합니다. |
Verify(publicKeyCertificate: System.Security.Cryptography.X509Certificates.X509Certificate2, options: Security.ValidationOptions, validationResult: Security.ValidationResult) | 공개키 고정 검증. |
GetSignatureAlgorithmInfo() | PKCS#7 봉투를 파싱하여(기존 서명에서 로드된 경우) 서명 알고리즘 / 다이제스트 알고리즘 / 암호 표준 삼중항을 보고합니다. |