Package net.java.quickcheck.characteristic

Examples of net.java.quickcheck.characteristic.ClassificationExpectation$Holder


      final RunnerCharacteristic runnerCharacteristic = new RunnerCharacteristic();
      Runner<Object> runner = new RunnerFactory().createRunner(generator, annotation.runs(),
          runnerCharacteristic, annotation.verbose());
      runner.forAll();

      ClassificationExpectation expectation = ClassificationExpectation
          .gathered();
      if (expectation != null) {

        Classification classification = Classification.gathered();
        Assert.assertEquals(format("expected %s but was %s",
            expectation, classification), true, expectation
            .validate(classification));

      }
    } finally {
      clearExpectations();
View Full Code Here


        catch (Exception e)
        {
            throw new CertificateParsingException(e.getMessage());
        }

        holder = new Holder(new IssuerSerial(generateGeneralNames(name),
            new ASN1Integer(cert.getSerialNumber())));
    }
View Full Code Here

            new ASN1Integer(cert.getSerialNumber())));
    }

    public AttributeCertificateHolder(X509Principal principal)
    {
        holder = new Holder(generateGeneralNames(principal));
    }
View Full Code Here

     * @param objectDigest The hash value.
     */
    public AttributeCertificateHolder(int digestedObjectType,
        String digestAlgorithm, String otherObjectTypeID, byte[] objectDigest)
    {
        holder = new Holder(new ObjectDigestInfo(digestedObjectType,
            new ASN1ObjectIdentifier(otherObjectTypeID), new AlgorithmIdentifier(digestAlgorithm), Arrays
                .clone(objectDigest)));
    }
View Full Code Here

        catch (Exception e)
        {
            throw new CertificateParsingException(e.getMessage());
        }

        holder = new Holder(new IssuerSerial(generateGeneralNames(name),
            new DERInteger(cert.getSerialNumber())));
    }
View Full Code Here

            new DERInteger(cert.getSerialNumber())));
    }

    public AttributeCertificateHolder(X509Principal principal)
    {
        holder = new Holder(generateGeneralNames(principal));
    }
View Full Code Here

     * @param objectDigest The hash value.
     */
    public AttributeCertificateHolder(int digestedObjectType,
        String digestAlgorithm, String otherObjectTypeID, byte[] objectDigest)
    {
        holder = new Holder(new ObjectDigestInfo(digestedObjectType,
            otherObjectTypeID, new AlgorithmIdentifier(digestAlgorithm), Arrays
                .clone(objectDigest)));
    }
View Full Code Here

        catch (Exception e)
        {
            throw new CertificateParsingException(e.getMessage());
        }
       
        holder = new Holder(new IssuerSerial(generateGeneralNames(name), new DERInteger(cert.getSerialNumber())));
    }
View Full Code Here

    }
   
    public AttributeCertificateHolder(
        X509Principal principal)
    {       
        holder = new Holder(generateGeneralNames(principal));
    }
View Full Code Here

    public AttributeCertificateHolder(
        X500Principal principal)
    {
        try
        {
            holder = new Holder(generateGeneralNames(new X509Principal(principal.getEncoded())));
        }
        catch (IOException e)
        {
            throw new IllegalArgumentException("Can't process principal");
        }
View Full Code Here

TOP

Related Classes of net.java.quickcheck.characteristic.ClassificationExpectation$Holder

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.