Class ATSHashIndexV3Creator
java.lang.Object
br.ufsc.labsec.signature.signer.UnsignedAttributeCreator<TSInformation<org.bouncycastle.asn1.cms.Attribute, ? extends CadesSignature>, org.bouncycastle.asn1.cms.Attribute, CadesSignature>
br.ufsc.labsec.signature.conformanceVerifier.cades.creator.unsigned.ATSHashIndexV3Creator
public class ATSHashIndexV3Creator
extends UnsignedAttributeCreator<TSInformation<org.bouncycastle.asn1.cms.Attribute, ? extends CadesSignature>, org.bouncycastle.asn1.cms.Attribute, CadesSignature>
-
Constructor Summary
ConstructorsConstructorDescriptionATSHashIndexV3Creator(CadesSignatureComponent component) ATSHashIndexV3Creator(CadesSignatureComponent component, String digestAlg) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUnsignedAttributeHashes(String digestAlg, org.bouncycastle.asn1.ASN1EncodableVector asn1EncodableVector, List<byte[]> unsignedAttrHash) <Information extends TSInformation<org.bouncycastle.asn1.cms.Attribute, ? extends CadesSignature>>
SignatureAttribute<org.bouncycastle.asn1.cms.Attribute> getAttribute(FileToBeSigned<Information> fileToBeSigned, CadesSignature signature) Retorna o atributostatic byte[]getAttributeDigest(org.bouncycastle.asn1.cms.Attribute attribute, String digestAlg) Methods inherited from class UnsignedAttributeCreator
createRevocationData, isSigned
-
Constructor Details
-
ATSHashIndexV3Creator
-
ATSHashIndexV3Creator
-
-
Method Details
-
addUnsignedAttributeHashes
public void addUnsignedAttributeHashes(String digestAlg, org.bouncycastle.asn1.ASN1EncodableVector asn1EncodableVector, List<byte[]> unsignedAttrHash) throws SignatureAttributeException - Throws:
SignatureAttributeException
-
getAttribute
public <Information extends TSInformation<org.bouncycastle.asn1.cms.Attribute, ? extends CadesSignature>> SignatureAttribute<org.bouncycastle.asn1.cms.Attribute> getAttribute(FileToBeSigned<Information> fileToBeSigned, CadesSignature signature) throws SignatureAttributeException Description copied from class:UnsignedAttributeCreatorRetorna o atributo- Specified by:
getAttributein classUnsignedAttributeCreator<TSInformation<org.bouncycastle.asn1.cms.Attribute, ? extends CadesSignature>, org.bouncycastle.asn1.cms.Attribute, CadesSignature>- Returns:
- Um objeto do atributo
- Throws:
SignatureAttributeException- Exceção caso ocorra algum erro durante a construção do objeto
-
getAttributeDigest
public static byte[] getAttributeDigest(org.bouncycastle.asn1.cms.Attribute attribute, String digestAlg) throws SignatureAttributeException - Throws:
SignatureAttributeException
-