Package br.ufsc.labsec.signature.signer
Class UnsignedAttributeCreator<Info extends ExtraInformation,Encod,Sig>
java.lang.Object
br.ufsc.labsec.signature.signer.UnsignedAttributeCreator<Info,Encod,Sig>
- Direct Known Subclasses:
AbstractRevocationCreator
,ATSHashIndexV3Creator
,AttrAuthoritiesCertValsCreator
,AttributeCertificateRefsCreator
,AttributeRevocationRefsCreator
,CertificateCreator
,DocTimeStampCreator
,DSSCreator
,RevocationRefsCreator
,SignaturePolicyStoreCreator
,TimestampCreator
,TimeStampValidationDataCreator
,TimeStampValidationDataCreator
public abstract class UnsignedAttributeCreator<Info extends ExtraInformation,Encod,Sig> extends Object
Esta classe engloba métodos em comum entre Creators de atributos
-
Constructor Summary
Constructors Constructor Description UnsignedAttributeCreator()
-
Method Summary
Modifier and Type Method Description protected org.apache.commons.lang3.tuple.Pair<List<CRL>,List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse>>
createRevocationData(List<Certificate> pathWithAnchor, CertificateValidation cv, FileToBeSigned<? extends JadesInformation> fileToBeSigned, Set<TrustAnchor> trustAnchors)
abstract <Information extends Info>
SignatureAttribute<Encod>getAttribute(FileToBeSigned<Information> fileToBeSigned, Sig signature)
Retorna o atributostatic boolean
isSigned()
-
Constructor Details
-
UnsignedAttributeCreator
public UnsignedAttributeCreator()
-
-
Method Details
-
getAttribute
public abstract <Information extends Info> SignatureAttribute<Encod> getAttribute(FileToBeSigned<Information> fileToBeSigned, Sig signature) throws SignatureAttributeExceptionRetorna o atributo- Returns:
- Um objeto do atributo
- Throws:
SignatureAttributeException
- Exceção caso ocorra algum erro durante a construção do objeto
-
isSigned
public static boolean isSigned() -
createRevocationData
protected org.apache.commons.lang3.tuple.Pair<List<CRL>,List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse>> createRevocationData(List<Certificate> pathWithAnchor, CertificateValidation cv, FileToBeSigned<? extends JadesInformation> fileToBeSigned, Set<TrustAnchor> trustAnchors)
-