Package de.tuclausthal.informatik.winf.mobileagents.security

Examples of de.tuclausthal.informatik.winf.mobileagents.security.Key


      // STEP 3: read security tokens
      // passport, keys, check checksums
      System.out.println("Keys");
      this.readOwnerKey(outerArchive, agentInfo);
      this.readAgentKey(outerArchive, agentInfo);
      Key programmerKey = this.readProgrammerKey(outerArchive);

      System.out.println("Passports");
      this.readOwnerCertificate(agentInfo, outerArchive);
      this.readPassport(agentInfo, outerArchive);
      this.readProgrammerCertificate(
View Full Code Here


      CryptographicManager.getInstance().getProvider("OpenPGP");
    try
    {

      byte[] data = this.readFile("owner", "asc", archive, null);
      Key ownerKey = p.importKey(data);
      agentInfo.setOwnerPublicKey(ownerKey);

    } catch (IOException e)
    {
      e.printStackTrace();
View Full Code Here

   * @param outerArchive ZIP archive where the <code>Passport</code> is contained in
   */
  private void readPassport(AgentInfo agentInfo, JarFile outerArchive)
  {
    // init
    Key ownerKey = agentInfo.getOwnerPublicKey();
    byte[] passportdata = null;

    // checking preconditions
    if (ownerKey == null)
      return;
View Full Code Here

TOP

Related Classes of de.tuclausthal.informatik.winf.mobileagents.security.Key

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.