Class SignDir

All Implemented Interfaces:
Closeable, AutoCloseable

public class SignDir extends VirtualContainer
签名资源容器
Since:
2020-4-3 19:41:29
Author:
权观宇
  • Field Details

  • Constructor Details

  • Method Details

    • getIndex

      public Integer getIndex()
      获取该签名容器索引
      Returns:
      第几个签名,从1开始
      Throws:
      NumberFormatException - 非规范的签名索引可能导致该问题
    • getIndexStr

      public String getIndexStr()
      获取签名容器名称,用于兼容非规范的签名容器名称
      Returns:
      签名容器名称
    • getSignature

      public Signature getSignature() throws FileNotFoundException, org.dom4j.DocumentException
      获取 签名/签章 描述文件
      Returns:
      签名/签章 描述文件
      Throws:
      FileNotFoundException - 容器中不存在该文件
      org.dom4j.DocumentException - XML文件解析异常,可能是格式不正确
    • setSignature

      public SignDir setSignature(Signature signature)
      设置 签名/签章 描述文件
      Parameters:
      signature - 签名/签章 描述文件
      Returns:
      this
    • getSeal

      public Path getSeal() throws FileNotFoundException
      获取 电子印章文件
      Returns:
      电子印章文件
      Throws:
      FileNotFoundException - 文件不存在
    • setSeal

      public SignDir setSeal(Path seal) throws IOException
      设置电子印章文件
      Parameters:
      seal - 电子印章文件
      Returns:
      this
      Throws:
      IOException - 文件复制过程中异常
    • getSignedValue

      public Path getSignedValue() throws FileNotFoundException
      获取 签名值文件
      Returns:
      签名值文件
      Throws:
      FileNotFoundException - 文件不存在
    • setSignedValue

      public SignDir setSignedValue(Path signedValue) throws IOException
      设置签名值文件
      Parameters:
      signedValue - 签名值文件
      Returns:
      this
      Throws:
      IOException - 文件复制过程中异常