< prev index next >

test/sun/security/ssl/rsa/SignatureOffsets.java

Print this page
rev 17325 : 8181761: add explicit @build actions for jdk.test.lib classes in all :tier2 tests
Reviewed-by: duke


  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import java.security.InvalidKeyException;
  25 import java.security.NoSuchAlgorithmException;
  26 import java.security.SignatureException;
  27 
  28 /*
  29  * @test
  30  * @bug 8050374
  31  * @key randomness
  32  * @summary This test validates signature verification
  33  *          Signature.verify(byte[], int, int). The test uses RandomFactory to
  34  *          get random set of clear text data to sign. After the signature
  35  *          generation, the test tries to verify signature with the above API
  36  *          and passing in different signature offset (0, 33, 66, 99).
  37  * @library /test/lib

  38  * @compile ../../../../java/security/Signature/Offsets.java
  39  * @run main SignatureOffsets SunJSSE MD2withRSA
  40  * @run main SignatureOffsets SunJSSE MD5withRSA
  41  * @run main SignatureOffsets SunJSSE SHA1withRSA
  42  * @run main SignatureOffsets SunJSSE MD5andSHA1withRSA
  43  */
  44 public class SignatureOffsets {
  45 
  46     public static void main(String[] args) throws NoSuchAlgorithmException,
  47             InvalidKeyException, SignatureException {
  48         Offsets.main(args);
  49     }
  50 }


  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import java.security.InvalidKeyException;
  25 import java.security.NoSuchAlgorithmException;
  26 import java.security.SignatureException;
  27 
  28 /*
  29  * @test
  30  * @bug 8050374
  31  * @key randomness
  32  * @summary This test validates signature verification
  33  *          Signature.verify(byte[], int, int). The test uses RandomFactory to
  34  *          get random set of clear text data to sign. After the signature
  35  *          generation, the test tries to verify signature with the above API
  36  *          and passing in different signature offset (0, 33, 66, 99).
  37  * @library /test/lib
  38  * @build jdk.test.lib.RandomFactory
  39  * @compile ../../../../java/security/Signature/Offsets.java
  40  * @run main SignatureOffsets SunJSSE MD2withRSA
  41  * @run main SignatureOffsets SunJSSE MD5withRSA
  42  * @run main SignatureOffsets SunJSSE SHA1withRSA
  43  * @run main SignatureOffsets SunJSSE MD5andSHA1withRSA
  44  */
  45 public class SignatureOffsets {
  46 
  47     public static void main(String[] args) throws NoSuchAlgorithmException,
  48             InvalidKeyException, SignatureException {
  49         Offsets.main(args);
  50     }
  51 }
< prev index next >