< prev index next >

jdk/src/jdk.jartool/share/classes/com/sun/jarsigner/ContentSignerParameters.java

Print this page




  57     /**
  58      * Retrieves the certificate for a Timestamping Authority (TSA).
  59      *
  60      * @return The TSA certificate. May be null.
  61      */
  62     public X509Certificate getTimestampingAuthorityCertificate();
  63 
  64     /**
  65      * Retrieves the TSAPolicyID for a Timestamping Authority (TSA).
  66      *
  67      * @return The TSAPolicyID. May be null.
  68      */
  69     public default String getTSAPolicyID() {
  70         return null;
  71     }
  72 
  73     /**
  74      * Retreives the message digest algorithm that is used to generate
  75      * the message imprint to be sent to the TSA server.
  76      *
  77      * @since 1.9
  78      * @return The non-null string of the message digest algorithm name.
  79      */
  80     public default String getTSADigestAlg() {
  81         return "SHA-256";
  82     }
  83 
  84     /**
  85      * Retrieves the JAR file's signature.
  86      *
  87      * @return The non-null array of signature bytes.
  88      */
  89     public byte[] getSignature();
  90 
  91     /**
  92      * Retrieves the name of the signature algorithm.
  93      *
  94      * @return The non-null string name of the signature algorithm.
  95      */
  96     public String getSignatureAlgorithm();
  97 




  57     /**
  58      * Retrieves the certificate for a Timestamping Authority (TSA).
  59      *
  60      * @return The TSA certificate. May be null.
  61      */
  62     public X509Certificate getTimestampingAuthorityCertificate();
  63 
  64     /**
  65      * Retrieves the TSAPolicyID for a Timestamping Authority (TSA).
  66      *
  67      * @return The TSAPolicyID. May be null.
  68      */
  69     public default String getTSAPolicyID() {
  70         return null;
  71     }
  72 
  73     /**
  74      * Retreives the message digest algorithm that is used to generate
  75      * the message imprint to be sent to the TSA server.
  76      *
  77      * @since 9
  78      * @return The non-null string of the message digest algorithm name.
  79      */
  80     public default String getTSADigestAlg() {
  81         return "SHA-256";
  82     }
  83 
  84     /**
  85      * Retrieves the JAR file's signature.
  86      *
  87      * @return The non-null array of signature bytes.
  88      */
  89     public byte[] getSignature();
  90 
  91     /**
  92      * Retrieves the name of the signature algorithm.
  93      *
  94      * @return The non-null string name of the signature algorithm.
  95      */
  96     public String getSignatureAlgorithm();
  97 


< prev index next >