Class CertificateCreator<Info extends ExtraInformation,Encod,Sig>
java.lang.Object
br.ufsc.labsec.signature.signer.UnsignedAttributeCreator<Info,Encod,Sig>
br.ufsc.labsec.signature.signer.creator.CertificateCreator<Info,Encod,Sig>
- Direct Known Subclasses:
CertificateInfoCreator
,CertificateRefsCreator
public abstract class CertificateCreator<Info extends ExtraInformation,Encod,Sig> extends UnsignedAttributeCreator<Info,Encod,Sig>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
CertificateCreator.CertificateRule
protected static class
CertificateCreator.ExclusionRule
protected static class
CertificateCreator.IntermediateCertificateRule
protected static class
CertificateCreator.SigningCertificateRule
protected static class
CertificateCreator.TrustAnchorRule
-
Field Summary
Fields Modifier and Type Field Description protected static String
WRONG_ATTRIBUTE_ORDER
-
Constructor Summary
Constructors Constructor Description CertificateCreator(CertificateCreator.CertificateRule rule, Component component, CertificateValidation certificateValidation, SignaturePolicyInterface signaturePolicyInterface, CertificateCollection certificateCollection)
-
Method Summary
Modifier and Type Method Description abstract SignatureAttribute<Encod>
constructAttribute(Component component, Collection<Certificate> certificates)
<Information extends Info>
SignatureAttribute<Encod>getAttribute(FileToBeSigned<Information> fileToBeSigned, Sig signature)
Retorna o atributoabstract List<Certificate>
otherCertificatesToExclude(CertificateCollection certificateCollection, FileToBeSigned<? extends Info> fileToBeSigned, Sig signature)
abstract Set<Certificate>
otherCertificatesToInclude(CertificateCollection certificateCollection, List<? extends Certificate> pathWithAnchor, FileToBeSigned<? extends Info> fileToBeSigned, Sig signature)
Methods inherited from class br.ufsc.labsec.signature.signer.UnsignedAttributeCreator
createRevocationData, isSigned
-
Field Details
-
WRONG_ATTRIBUTE_ORDER
- See Also:
- Constant Field Values
-
-
Constructor Details
-
CertificateCreator
public CertificateCreator(CertificateCreator.CertificateRule rule, Component component, CertificateValidation certificateValidation, SignaturePolicyInterface signaturePolicyInterface, CertificateCollection certificateCollection)
-
-
Method Details
-
getAttribute
public <Information extends Info> SignatureAttribute<Encod> getAttribute(FileToBeSigned<Information> fileToBeSigned, Sig signature) throws SignatureAttributeExceptionDescription copied from class:UnsignedAttributeCreator
Retorna o atributo- Specified by:
getAttribute
in classUnsignedAttributeCreator<Info extends ExtraInformation,Encod,Sig>
- Returns:
- Um objeto do atributo
- Throws:
SignatureAttributeException
- Exceção caso ocorra algum erro durante a construção do objeto
-
otherCertificatesToExclude
public abstract List<Certificate> otherCertificatesToExclude(CertificateCollection certificateCollection, FileToBeSigned<? extends Info> fileToBeSigned, Sig signature) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
otherCertificatesToInclude
public abstract Set<Certificate> otherCertificatesToInclude(CertificateCollection certificateCollection, List<? extends Certificate> pathWithAnchor, FileToBeSigned<? extends Info> fileToBeSigned, Sig signature) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
constructAttribute
public abstract SignatureAttribute<Encod> constructAttribute(Component component, Collection<Certificate> certificates) throws SignatureAttributeException- Throws:
SignatureAttributeException
-