Examples of loadData()


Examples of org.ejbca.core.model.ca.certificateprofiles.CertificateProfile.loadData()

        final HashMap data = getData();
        // If CertificateProfile-data is upgraded we want to save the new data, so we must get the old version before loading the data
        // and perhaps upgrading
        final float oldversion = ((Float) data.get(UpgradeableDataHashMap.VERSION)).floatValue();
        // Load the profile data, this will potentially upgrade the CertificateProfile
        returnval.loadData(data);
        if (Float.compare(oldversion, returnval.getVersion()) != 0) {
          // Save new data versions differ
          setCertificateProfile(returnval);
        }
        return returnval;
View Full Code Here

Examples of org.ejbca.core.model.ca.publisher.BasePublisher.loadData()

                break;
            case PublisherConst.TYPE_VAPUBLISHER:
                publisher = new ValidationAuthorityPublisher();
                break;
            }
            publisher.loadData(data);
        }
        return publisher;
    }
}
View Full Code Here

Examples of org.ejbca.core.model.ca.publisher.PublisherQueueVolatileData.loadData()

                HashMap h = (HashMap) decoder.readObject();
                decoder.close();
                // Handle Base64 encoded string values
                HashMap data = new Base64GetHashMap(h);
                ret = new PublisherQueueVolatileData();
                ret.loadData(data);
                if (ret.isUpgraded()) {
                    setPublisherQueueVolatileData(ret);
                }
            }
        } catch (UnsupportedEncodingException e) {
View Full Code Here

Examples of org.ejbca.core.model.hardtoken.HardTokenIssuer.loadData()

   * Method that returns the hard token issuer data and updates it if nessesary.
   */
  @Transient
  public HardTokenIssuer getHardTokenIssuer(){
    HardTokenIssuer returnval = new HardTokenIssuer();
    returnval.loadData(getData());
    return returnval;
  }

  /**
   * Method that saves the hard token issuer data to database.
View Full Code Here

Examples of org.ejbca.core.model.hardtoken.profiles.HardTokenProfile.loadData()

            break;
        case TurkishEIDProfile.TYPE_TURKISHEID:
            profile = new TurkishEIDProfile();
            break;
        }
        profile.loadData(data);
        return profile;
    }
}
View Full Code Here

Examples of org.ejbca.core.model.hardtoken.types.HardToken.loadData()

        default:
            returnval = new EIDHardToken(includePUK);
            break;
        }

        returnval.loadData(data);
        return returnval;
    }

    /**
     * Method that saves the hard token issuer data to a HashMap that can be
View Full Code Here

Examples of org.ejbca.core.model.ra.raadmin.AdminPreference.loadData()

   * Method that returns the admin's preferences and updates it if necessary.
   */
  @Transient
  public AdminPreference getAdminPreference() {
    AdminPreference returnval = new AdminPreference();
    returnval.loadData(getData());
    return returnval;
  }
  /**
   * Method that saves the admin preference to database.
   */
 
View Full Code Here

Examples of org.ejbca.core.model.ra.raadmin.EndEntityProfile.loadData()

                                    EndEntityProfile eprofile = null;
                                    FileInputStream is = new FileInputStream(infiles[i]);
                                    XMLDecoder decoder = new XMLDecoder( is );
                                    if (entityprofile) {
                                        eprofile = new EndEntityProfile();
                                        eprofile.loadData(decoder.readObject());
                                        // Translate cert profile ids that have changed after import
                                        String availableCertProfiles = "";
                                        String defaultCertProfile = eprofile.getValue(EndEntityProfile.DEFAULTCERTPROFILE,0);
                                      //getLogger().debug("Debug: Org - AVAILCERTPROFILES " + eprofile.getValue(EndEntityProfile.AVAILCERTPROFILES,0) + " DEFAULTCERTPROFILE "+defaultCertProfile);
                                        for (String currentCertProfile : (Collection<String>) eprofile.getAvailableCertificateProfileIds()) {
View Full Code Here

Examples of org.ejbca.core.model.ra.raadmin.EndEntityProfile.loadData()

        HashMap data = getData();
        // If EndEntityProfile-data is upgraded we want to save the new data, so we must get the old version before loading the data
        // and perhaps upgrading
        float oldversion = ((Float) data.get(UpgradeableDataHashMap.VERSION)).floatValue();
        // Load the profile data, this will potentially upgrade the CertificateProfile
        returnval.loadData(data);
        if (Float.compare(oldversion, returnval.getVersion()) != 0) {
          // Save new data versions differ
          setProfile(returnval);
          if (log.isDebugEnabled()) {
              log.debug("Saved upgraded profile, old version="+oldversion+", new version="+returnval.getVersion());           
View Full Code Here

Examples of org.ejbca.core.model.ra.userdatasource.BaseUserDataSource.loadData()

          switch (((Integer) (data.get(BaseUserDataSource.TYPE))).intValue()) {
          case CustomUserDataSourceContainer.TYPE_CUSTOMUSERDATASOURCECONTAINER:
            userdatasource = new CustomUserDataSourceContainer();
            break;
          }
          userdatasource.loadData(data);
      }
      return userdatasource;
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.