public class SigningCertificate extends Object implements SignedAttribute
The definition of SigningCertificate is
SigningCertificate ::= SEQUENCE {
certs SEQUENCE OF ESSCertID,
policies SEQUENCE OF PolicyInformation OPTIONAL
}
id-aa-signingCertificate OBJECT IDENTIFIER ::= {
iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-aa(2) 12
}
| Constructor and Description |
|---|
SigningCertificate() |
| 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()
SignedOrUnsignedAttributegetValue in interface SignedOrUnsignedAttributeCopyright © 2021 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.