예제 #1
0
  public void testU8500EncrypterThrowSignerServiceException() {
    try {

      byte[] dataByte = u8500Encrypter.calculateU8500Signature(data, key);

      assertNotNull(dataByte);
      fail("Should not get here");
    } catch (SignerServiceException e) {
      e.printStackTrace();
    }
  }
예제 #2
0
  public void testU8500Encrypter() {
    try {

      byte[] dataByte = u8500Encrypter.calculateU8500Signature(data, fromPriv);

      assertNotNull(dataByte);
    } catch (SignerServiceException e) {
      e.printStackTrace();
      fail("Exception");
    }
  }