Examples of RetrievalMethod


Examples of com.sun.org.apache.xml.internal.security.keys.content.RetrievalMethod

                   return null;
           }

      try {
                   //Create a retrieval method over the given element
                   RetrievalMethod rm = new RetrievalMethod(element, BaseURI);
               String type = rm.getType();
                   XMLSignatureInput resource=resolveInput(rm,BaseURI);
           if (RetrievalMethod.TYPE_RAWX509.equals(type)) {
                //a raw certificate, direct parsing is done!
                X509Certificate cert=getRawCertificate(resource);
                                if (cert != null) {
View Full Code Here

Examples of com.sun.org.apache.xml.internal.security.keys.content.RetrievalMethod

               Constants._TAG_RETRIEVALMETHOD)) {
                   return null;
           }

           try {
         RetrievalMethod rm = new RetrievalMethod(element, BaseURI);
                 String type = rm.getType();
                 XMLSignatureInput resource=resolveInput(rm,BaseURI);
                 if (RetrievalMethod.TYPE_RAWX509.equals(type)) {
                X509Certificate cert=getRawCertificate(resource);
            return cert;
                 }
View Full Code Here

Examples of com.sun.xml.ws.security.opt.crypto.dsig.keyinfo.RetrievalMethod

     * @param type
     * @param uri
     * @return RetrievalMethod
     */
    public RetrievalMethod newRetrievalMethod(Transforms transforms, String type, String uri) {
        RetrievalMethod rm = new RetrievalMethod();
        rm.setTransforms(transforms);
        rm.setType(type);
        rm.setURI(uri);
        return rm;
    }
View Full Code Here

Examples of javax.xml.crypto.dsig.keyinfo.RetrievalMethod

            return true;
  }
        if (!(obj instanceof RetrievalMethod)) {
            return false;
  }
        RetrievalMethod orm = (RetrievalMethod) obj;

  boolean typesEqual = (type == null ? orm.getType() == null :
            type.equals(orm.getType()));

  return (uri.equals(orm.getURI()) &&
      transforms.equals(orm.getTransforms()) && typesEqual);
    }
View Full Code Here

Examples of javax.xml.crypto.dsig.keyinfo.RetrievalMethod

            return true;
        }
        if (!(obj instanceof RetrievalMethod)) {
            return false;
        }
        RetrievalMethod orm = (RetrievalMethod)obj;

        boolean typesEqual = type == null ? orm.getType() == null
                                           : type.equals(orm.getType());

        return uri.equals(orm.getURI()) &&
            transforms.equals(orm.getTransforms()) && typesEqual;
    }
View Full Code Here

Examples of javax.xml.crypto.dsig.keyinfo.RetrievalMethod

            return true;
  }
        if (!(obj instanceof RetrievalMethod)) {
            return false;
  }
        RetrievalMethod orm = (RetrievalMethod) obj;

  boolean typesEqual = (type == null ? orm.getType() == null :
            type.equals(orm.getType()));

  return (uri.equals(orm.getURI()) &&
      transforms.equals(orm.getTransforms()) && typesEqual);
    }
View Full Code Here

Examples of javax.xml.crypto.dsig.keyinfo.RetrievalMethod

            return true;
  }
        if (!(obj instanceof RetrievalMethod)) {
            return false;
  }
        RetrievalMethod orm = (RetrievalMethod) obj;

  boolean typesEqual = (type == null ? orm.getType() == null :
            type.equals(orm.getType()));

  return (uri.equals(orm.getURI()) &&
      transforms.equals(orm.getTransforms()) && typesEqual);
    }
View Full Code Here

Examples of javax.xml.crypto.dsig.keyinfo.RetrievalMethod

            return true;
        }
        if (!(obj instanceof RetrievalMethod)) {
            return false;
        }
        RetrievalMethod orm = (RetrievalMethod)obj;

        boolean typesEqual = (type == null ? orm.getType() == null
                                           : type.equals(orm.getType()));

        return (uri.equals(orm.getURI()) &&
            transforms.equals(orm.getTransforms()) && typesEqual);
    }
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.retrievalmethod.RetrievalMethod

                for (File propFile : propFiles) {
                    try {
                        Parser parser = pfi.getParserForFile(propFile);
                        Class<RetrievalMethod> rmClass = config.getParserInfo()
                                .getRetrievalMethod(parser);
                        RetrievalMethod rm = null;
                        if ((rm = this.classToRmMap.get(rmClass)) == null) {
                            LOG.log(Level.INFO, "Creating '"
                                    + rmClass.getCanonicalName()
                                    + "' to download data files");
                            rm = PushPullObjectFactory
                                    .createNewInstance(rmClass);
                            this.classToRmMap.put(rmClass, rm);
                        }
                        rm.processPropFile(dataFilesFRS, parser, propFile, dfi,
                                linker);
                    } catch (ParserException e) {
                        LOG.log(Level.SEVERE, "Failed to parse property file "
                                + propFile + " : " + e.getMessage());
                        linker.markAsFailed(propFile,
View Full Code Here

Examples of org.apache.oodt.cas.pushpull.retrievalmethod.RetrievalMethod

                                .getDownloadInfoPropFiles();
                        for (File dirStructFile : propDirStructFiles) {
                            Parser parser = pfi.getParserForFile(dirStructFile);
                            Class<RetrievalMethod> rmClass = config
                                    .getParserInfo().getRetrievalMethod(parser);
                            RetrievalMethod rm = null;
                            if ((rm = RetrievalSetup.this.classToRmMap
                                    .get(rmClass)) == null) {
                                LOG.log(Level.INFO, "Creating '"
                                        + rmClass.getCanonicalName()
                                        + "' to download property files");
                                rm = PushPullObjectFactory
                                        .createNewInstance(rmClass);
                                RetrievalSetup.this.classToRmMap.put(rmClass,
                                        rm);
                            }
                            rm.processPropFile(frs, parser, dirStructFile,
                                    new DataFilesInfo(null, pfi
                                            .getDownloadInfo()), linker);
                        }
                    } catch (Exception e) {
                        e.printStackTrace();
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.