Package br.ufsc.labsec.signature
Interface Signer<Info extends ExtraInformation>
- All Known Implementing Classes:
AbstractCadesSigner,AbstractXadesSigner,CadesSigner,CompleteSigner,JadesSigner,PadesSigner,XadesSigner
public interface Signer<Info extends ExtraInformation>
-
Method Summary
Modifier and Type Method Description List<String>getPoliciesAvailable()SignatureWrappergetSignature(FileToBeSigned<? extends Info> fileToBeSigned)WrapperInputStreamgetSignatureStream()List<String>getSignedAttributesAvailable(boolean advanced)List<String>getUnsignedAttributesAvailable(boolean advanced)booleansimpleSign(FileToBeSigned<? extends Info> fileToBeSigned)booleansupports(FileToBeSigned<? extends Info> fileToBeSigned)default booleansupportsCertPath(List<String> attributesThatRequireCertPath, List<String> selectedAttributes, CertPath certPath)
-
Method Details
-
simpleSign
boolean simpleSign(FileToBeSigned<? extends Info> fileToBeSigned) throws br.ufsc.labsec.pbad.ykue_utils.exceptions.SignerException- Throws:
br.ufsc.labsec.pbad.ykue_utils.exceptions.SignerException
-
getSignatureStream
WrapperInputStream getSignatureStream() -
getSignedAttributesAvailable
-
getUnsignedAttributesAvailable
-
getPoliciesAvailable
-
supports
boolean supports(FileToBeSigned<? extends Info> fileToBeSigned) throws br.ufsc.labsec.pbad.ykue_utils.exceptions.SignerException, CertificationPathException- Throws:
br.ufsc.labsec.pbad.ykue_utils.exceptions.SignerExceptionCertificationPathException
-
getSignature
SignatureWrapper getSignature(FileToBeSigned<? extends Info> fileToBeSigned) throws br.ufsc.labsec.pbad.ykue_utils.exceptions.SignerException- Throws:
br.ufsc.labsec.pbad.ykue_utils.exceptions.SignerException
-
supportsCertPath
default boolean supportsCertPath(List<String> attributesThatRequireCertPath, List<String> selectedAttributes, CertPath certPath) throws CertificationPathException- Throws:
CertificationPathException
-