public class DefaultSigner extends Object implements org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-pdfbox is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
Constructor and Description |
---|
DefaultSigner(SignOptions options)
有参构造
|
Modifier and Type | Method and Description |
---|---|
protected org.bouncycastle.cms.CMSTypedData |
getCMSData(InputStream content)
获取CMS数据
|
byte[] |
sign(InputStream content)
签名
|
public DefaultSigner(SignOptions options)
options
- 签名选项public byte[] sign(InputStream content)
sign
in interface org.apache.pdfbox.pdmodel.interactive.digitalsignature.SignatureInterface
content
- 内容protected org.bouncycastle.cms.CMSTypedData getCMSData(InputStream content)
content
- 内容流Copyright © 2024. All rights reserved.