Class AttributeFactory<Info extends ExtraInformation,Encod,Sig>
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.common.AttributeFactory<Info,Encod,Sig>
- Direct Known Subclasses:
CadesAttributeFactory
,JadesAttributeFactory
,PadesAttributeFactory
,XadesAttributeFactory
public abstract class AttributeFactory<Info extends ExtraInformation,Encod,Sig> extends Object
Esta classe mapeia o OID de um atributo para o seu nome e um atributo a seu respectivo Creator.
-
Constructor Summary
Constructors Constructor Description AttributeFactory(Map<String,SignedAttributeCreator<? extends Info,Encod>> signedCreators, Map<String,UnsignedAttributeCreator<? extends Info,Encod,Sig>> unsignedCreators)
-
Method Summary
Modifier and Type Method Description SignatureAttribute<Encod>
getSignedAttribute(String oid, FileToBeSigned fileToBeSigned)
List<String>
getSignedAttributes()
SignatureAttribute<Encod>
getUnsignedAttribute(String oid, FileToBeSigned fileToBeSigned, Sig signature)
List<String>
getUnsignedAttributes()
boolean
isSigned(String oid)
-
Constructor Details
-
AttributeFactory
-
-
Method Details
-
getSignedAttribute
public SignatureAttribute<Encod> getSignedAttribute(String oid, FileToBeSigned fileToBeSigned) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
getUnsignedAttribute
public SignatureAttribute<Encod> getUnsignedAttribute(String oid, FileToBeSigned fileToBeSigned, Sig signature) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
getSignedAttributes
-
getUnsignedAttributes
-
isSigned
-