Package br.ufsc.labsec.signature
Class FileToBeSigned<T extends ExtraInformation>
java.lang.Object
br.ufsc.labsec.signature.FileToBeSigned<T>
- All Implemented Interfaces:
SignatureObject
public class FileToBeSigned<T extends ExtraInformation> extends Object implements SignatureObject
-
Constructor Summary
Constructors Constructor Description FileToBeSigned(String filename, String mimeType, InputStream contentToBeSigned, FileFormat signatureFormat, SignerType signatureType, String signatureSuite, List<String> signedAttributes, List<String> unsignedAttributes, PrivateKeyInformation privateKeyInformation, CertificateInformation certificateInformation, InformationSigner informationSigner, boolean remote, T extraInformation)
-
Method Summary
Modifier and Type Method Description CertificateInformation
getCertificateInformation()
InputStream
getContentToBeSigned()
byte[]
getContentToBeSignedBytes()
T
getExtraInformation()
String
getFilename()
InformationSigner
getInformationSigner()
String
getMimeType()
PrivateKeyInformation
getPrivateKeyInformation()
List<String>
getSelectedAttributes()
InputStream
getSignatureContent()
byte[]
getSignatureContentBytes()
FileFormat
getSignatureFormat()
String
getSignatureSuite()
SignerType
getSignatureType()
List<String>
getSignedAttributes()
List<String>
getUnsignedAttributes()
boolean
isRemote()
static InputStream
readableInputStream(byte[] bytes)
void
selectAttribute(String oid, boolean signed)
-
Constructor Details
-
FileToBeSigned
public FileToBeSigned(String filename, String mimeType, InputStream contentToBeSigned, FileFormat signatureFormat, SignerType signatureType, String signatureSuite, List<String> signedAttributes, List<String> unsignedAttributes, PrivateKeyInformation privateKeyInformation, CertificateInformation certificateInformation, InformationSigner informationSigner, boolean remote, T extraInformation) throws IOException, PolicyException- Throws:
IOException
PolicyException
-
-
Method Details
-
readableInputStream
-
getFilename
-
getMimeType
-
getSignatureFormat
-
getSignatureType
-
getContentToBeSigned
-
getContentToBeSignedBytes
public byte[] getContentToBeSignedBytes() -
getSignatureContent
-
getSignatureContentBytes
public byte[] getSignatureContentBytes() -
selectAttribute
-
getSelectedAttributes
-
getSignedAttributes
-
getUnsignedAttributes
-
getPrivateKeyInformation
-
getCertificateInformation
-
getInformationSigner
-
isRemote
public boolean isRemote() -
getSignatureSuite
-
getExtraInformation
-