Interface ArtifactToBeSigned<T extends ExtraInformation>

All Superinterfaces:
SignatureObject
All Known Implementing Classes:
FileToBeSigned

public interface ArtifactToBeSigned<T extends ExtraInformation> extends SignatureObject
  • Method Details

    • readableInputStream

      static InputStream readableInputStream(InputStream inputStream) throws IOException
      Throws:
      IOException
    • readableInputStream

      static WrapperInputStream readableInputStream(byte[] bytes)
    • withKeyStore

      ArtifactToBeSigned<T> withKeyStore(PrivateKeyInformation privateKey, br.ufsc.labsec.pbad.ykue_utils.signature.CertificateInformation certInfo, br.ufsc.labsec.pbad.ykue_utils.signature.InformationSigner signer, boolean remote) throws IOException
      Returns a copy of this artifact with the given key store information substituted in.
      Throws:
      IOException
    • getFilename

      String getFilename()
    • getMimeType

      String getMimeType()
    • getSignatureFormat

      FileFormat getSignatureFormat()
    • getSignatureSuite

      String getSignatureSuite()
    • isRemote

      boolean isRemote()
    • getContentToBeSigned

      InputStream getContentToBeSigned()
    • getContentToBeSignedBytes

      byte[] getContentToBeSignedBytes()
    • getSignatureContent

      InputStream getSignatureContent()
    • getSignatureContentBytes

      byte[] getSignatureContentBytes()
    • getSignedAttributes

      List<String> getSignedAttributes()
    • getUnsignedAttributes

      List<String> getUnsignedAttributes()
    • getSelectedAttributes

      List<String> getSelectedAttributes()
    • getSelectedAttributes2

      org.apache.commons.lang3.tuple.Pair<List<String>, List<String>> getSelectedAttributes2()
    • getPrivateKeyInformation

      PrivateKeyInformation getPrivateKeyInformation()
    • getCertificateInformation

      br.ufsc.labsec.pbad.ykue_utils.signature.CertificateInformation getCertificateInformation()
    • getInformationSigner

      br.ufsc.labsec.pbad.ykue_utils.signature.InformationSigner getInformationSigner()
    • getExtraInformation

      T getExtraInformation()
    • getSignatureMode

      SignMode getSignatureMode()