Package org.ejbca.core.ejb.hardtoken

Examples of org.ejbca.core.ejb.hardtoken.HardTokenData


  }

  public void testHardTokenData() {
    LOG.trace(">testHardTokenData");
    logMemStats();
    HardTokenData entity = new HardTokenData();
    entity.setCtime(0L);
    entity.setData(HASHMAP_200K);
    entity.setMtime(0L);
    entity.setRowProtection(CLOB_10KiB);
    entity.setRowVersion(0);
    entity.setSignificantIssuerDN(VARCHAR_250B);
    entity.setTokenSN(VARCHAR_250B);
    entity.setTokenType(0);
    entity.setUsername(VARCHAR_250B);
    storeAndRemoveEntity(entity);
    LOG.trace("<testHardTokenData");
  }
View Full Code Here


    }
   
    @Override
    public void postMigrateDatabase400HardTokenData(List<String> subSet) {
      for (String tokenSN : subSet) {
        HardTokenData htd = HardTokenData.findByTokenSN(entityManager, tokenSN);
        if (htd != null) {
            htd.setDataUnsafe(JBossUnmarshaller.extractObject(HashMap.class, htd.getDataUnsafe()));
        } else {
            log.warn("Hard token was removed during processing. Ignoring token with serial number '" + tokenSN + "'.");
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.ejbca.core.ejb.hardtoken.HardTokenData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.