Examples of matches()


Examples of org.jasypt.digest.StandardByteDigester.matches()

            public String encodePassword(char[] rawPass, Object salt) {
                return new String(Base64.encodeBase64(digester.digest(toBytes(rawPass))));
            }
            @Override
            public boolean isPasswordValid(String encPass, char[] rawPass, Object salt) {
                return digester.matches(toBytes(rawPass), Base64.decodeBase64(encPass.getBytes()));
            }
        };
    }

    @Override

Examples of org.jasypt.digest.StandardStringDigester.matches()

            digester.setAlgorithm("MD5");
            digester.setIterations(1);
            digester.setSaltSizeBytes(0);
            digester.setStringOutputType(CommonUtils.STRING_OUTPUT_TYPE_HEXADECIMAL);

            authenticated = digester.matches(password, digestedPassword);
        }
        return authenticated;
    }
}

Examples of org.jbehave.core.mock.Expectation.matches()

        public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
            if (args == null) args = new Object[0];
           
            for (Iterator i = expectations.iterator(); i.hasNext();) {
                Expectation expectation = (Expectation) i.next();
                if (expectation.matches(method.getName(), args)) {
                    return expectation.invoke(proxy, method, args);
                }
            }
           
            // if we get here we didn't match on any expectations          

Examples of org.jbehave.core.mock.Matcher.matches()

        ensureThat(new Long((long)1), matchesIntTypeValue);
    }
   
    public void shouldCreateMatcherForPrimitiveCharType() throws Exception {
        Matcher c = m.eq('c');
        Ensure.that("matcher should match Character 'c'", c.matches(new Character('c')));
    }
   
    public void shouldCreateMatcherForPrimitiveLongType() throws Exception {
        Matcher c = m.eq(1l);
        Ensure.that(c.matches(new Long(1)));

Examples of org.jberet.job.model.ExceptionClassFilter.matches()

        final ClassLoader cl = this.getClass().getClassLoader();
        final Job job = ArchiveXmlLoader.loadJobXml("exception-class-filter.xml", cl, new ArrayList<Job>());
        Chunk chunk = getChunk(job, "exception-class-filter-step");

        ExceptionClassFilter filter = chunk.getSkippableExceptionClasses();
        Assert.assertEquals(false, filter.matches(Exception.class));
        Assert.assertEquals(false, filter.matches(IOException.class));

        filter = chunk.getRetryableExceptionClasses();
        Assert.assertEquals(true, filter.matches(RuntimeException.class));
        Assert.assertEquals(true, filter.matches(IllegalStateException.class));

Examples of org.jboss.aop.array.ArrayReplacement.matches()

      boolean shouldReplaceArrayAccess = false;
      Map arrayReplacements = manager.getArrayReplacements();
      for (Iterator it = arrayReplacements.values().iterator() ; it.hasNext() ; )
      {
         ArrayReplacement arrayReplacement = (ArrayReplacement)it.next();
         if (arrayReplacement.matches(advisor, clazz))
         {
            shouldReplaceArrayAccess = true;
            break;
         }
      }

Examples of org.jboss.aop.introduction.AnnotationIntroduction.matches()

      Iterator it = advisor.getManager().getAnnotationIntroductions().iterator();
      while (it.hasNext())
      {
         AnnotationIntroduction introduction = (AnnotationIntroduction) it.next();
         if (AspectManager.verbose && logger.isDebugEnabled()) logger.debug("**** " + introduction.getOriginalAnnotationExpr() + " invisible: " + introduction.isInvisible() + " expr: " + introduction.getOriginalExpression());
         if (introduction.matches(advisor, clazz))
         {
            if (AspectManager.verbose && logger.isDebugEnabled()) logger.debug(introduction.getAnnotation() + " binds to " + clazz.getName());
            javassist.bytecode.annotation.Annotation info = AnnotationInfoCreator.createAnnotationInfo(classPool, clazz.getClassFile2().getConstPool(), introduction.getAnnotation());
            if (introduction.isInvisible())
            {

Examples of org.jboss.aop.introduction.InterfaceIntroduction.matches()

      {
         Iterator it = interfaceIntroductions.values().iterator();
         while (it.hasNext())
         {
            InterfaceIntroduction pointcut = (InterfaceIntroduction) it.next();
            if (pointcut.matches(advisor, clazz))
            {
               pointcut.addAdvisor(advisor);
            }
         }
      }

Examples of org.jboss.aop.metadata.ClassMetaDataBinding.matches()

      {
         Iterator it = classMetaData.values().iterator();
         while (it.hasNext())
         {
            ClassMetaDataBinding data = (ClassMetaDataBinding) it.next();
            if (data.matches(advisor, clazz))
            {
               attached = true;
               if (addAdvisor) data.addAdvisor(advisor);
               ClassMetaDataLoader loader = data.getLoader();
               loader.bind(advisor, data, clazz.getDeclaredMethods(), clazz.getDeclaredFields(), clazz.getDeclaredConstructors());

Examples of org.jboss.aop.pointcut.DeclareDef.matches()

   public static void checkDeclares(AspectManager manager, CtClass clazz, ClassAdvisor advisor)
   {
      for (Iterator it = manager.getDeclares() ; it.hasNext() ; )
      {
         DeclareDef declare = (DeclareDef)it.next();
         if (declare.matches(advisor, clazz))
         {
            StringBuffer sb = new StringBuffer(" condition\n\t'" + declare.getExpr() + "'\nwas broken for class " +
              clazz.getName() + "\n\t" + declare.getMsg() + "\n");
           
            if (declare.getWarning())
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.