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()
SignatureDataWrapper
getSignature(FileToBeSigned<? extends Info> fileToBeSigned)
InputStream
getSignatureStream()
List<String>
getSignedAttributesAvailable(boolean advanced)
List<String>
getUnsignedAttributesAvailable(boolean advanced)
boolean
simpleSign(FileToBeSigned<? extends Info> fileToBeSigned)
boolean
supports(FileToBeSigned<? extends Info> fileToBeSigned)
default boolean
supportsCertPath(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
InputStream 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.SignerException
CertificationPathException
-
getSignature
SignatureDataWrapper 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
-