Package br.ufsc.labsec.signature
Interface Signer<Info extends ExtraInformation>
- All Known Implementing Classes:
CadesSigner
,JadesSigner
,PadesSigner
,XadesCoSigner
,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
sign(FileToBeSigned<? extends Info> fileToBeSigned)
boolean
supports(FileToBeSigned<? extends Info> fileToBeSigned)
-
Method Details
-
sign
boolean sign(FileToBeSigned<? extends Info> fileToBeSigned) throws SignerException, VerificationException- Throws:
SignerException
VerificationException
-
getSignatureStream
InputStream getSignatureStream() -
getSignedAttributesAvailable
-
getUnsignedAttributesAvailable
-
getPoliciesAvailable
-
supports
boolean supports(FileToBeSigned<? extends Info> fileToBeSigned) throws SignerException, CertificationPathException -
getSignature
SignatureDataWrapper getSignature(FileToBeSigned<? extends Info> fileToBeSigned) throws SignerException- Throws:
SignerException
-