public class CertValues extends Object implements UnsignedAttribute
Certificate Values Attribute Definition
The Certificate Values attribute is an unsigned attribute. Only a single instance of this attribute must occur with an electronic signature. It holds the values of certificates referenced in the CompleteCertificateRefs attribute.
Note: If an Attribute Certificate is used, it is not provided in this structure but must be provided by the signer as a signer-attributes attribute (see clause 12.3).
The following object identifier identifies the CertificateValues attribute:
id-aa-ets-certValues OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 23}
| Constructor and Description |
|---|
CertValues() |
| Modifier and Type | Method and Description |
|---|---|
String |
getOID()
OID value of the attribute.
|
org.bouncycastle.asn1.cms.Attribute |
getValue()
Represents the value of the attribute itself.
|
void |
initialize(PrivateKey privateKey,
Certificate[] certificates,
byte[] content,
SignaturePolicy signaturePolicy,
byte[] hash)
Performs the initial parameterization for attribute retrieval
|
public void initialize(PrivateKey privateKey, Certificate[] certificates, byte[] content, SignaturePolicy signaturePolicy, byte[] hash)
SignedOrUnsignedAttributeinitialize in interface SignedOrUnsignedAttributeprivateKey - private keycertificates - certificate chaincontent - set null if signing only hashsignaturePolicy - signature policyhash - set null if signing contentpublic String getOID()
SignedOrUnsignedAttributegetOID in interface SignedOrUnsignedAttributepublic org.bouncycastle.asn1.cms.Attribute getValue()
throws SignerException
SignedOrUnsignedAttributegetValue in interface SignedOrUnsignedAttributeSignerExceptionCopyright © 2021 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.