Package org.ejbca.core.model.hardtoken

Examples of org.ejbca.core.model.hardtoken.HardTokenExistsException


                                                    logger, ErrorCode.USER_NOT_FOUND, null);
            }
          }

        }else{
          throw new HardTokenExistsException("Error hard token with sn " + hardTokenDataWS.getHardTokenSN() + " already exists.");
        }

      }

View Full Code Here


                        LogConstants.EVENT_INFO_HARDTOKENDATA, msg);
            } catch (Exception e) {
                String msg = intres.getLocalizedMessage("hardtoken.tokenexists", tokensn);
                logSession.log(admin, bcdn.hashCode(), LogConstants.MODULE_HARDTOKEN, new java.util.Date(), username, null,
                        LogConstants.EVENT_ERROR_HARDTOKENDATA, msg);
                throw new HardTokenExistsException("Tokensn : " + tokensn);
            }
        } else {
            String msg = intres.getLocalizedMessage("hardtoken.tokenexists", tokensn);
            logSession.log(admin, bcdn.hashCode(), LogConstants.MODULE_HARDTOKEN, new java.util.Date(), username, null, LogConstants.EVENT_ERROR_HARDTOKENDATA,
                    msg);
            throw new HardTokenExistsException("Tokensn : " + tokensn);
        }
        log.trace("<addHardToken()");
    }
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.hardtoken.HardTokenExistsException

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.