Examples of DERIA5String


Examples of org.bouncycastle.asn1.DERIA5String

        // Multiple CDPs are separated with the ';' sign
      Iterator<String> it = StringTools.splitURIs(distPoints).iterator();
      ArrayList<DistributionPoint> result = new ArrayList<DistributionPoint>();
        while (it.hasNext()) {
            String uri = (String) it.next();
            GeneralName gn = new GeneralName(GeneralName.uniformResourceIdentifier, new DERIA5String(uri));
            if(log.isDebugEnabled()) {
                log.debug("Added CRL distpoint: " + uri);
            }
            ASN1EncodableVector vec = new ASN1EncodableVector();
            vec.add(gn);
View Full Code Here

Examples of org.bouncycastle.asn1.DERIA5String

        if (freshestcrldistpoint != null) {
          final StringTokenizer tokenizer = new StringTokenizer(freshestcrldistpoint, ";", false);
          final ArrayList<DistributionPoint> distpoints = new ArrayList<DistributionPoint>();
            while (tokenizer.hasMoreTokens()) {
              final String uri = tokenizer.nextToken();
                final GeneralName gn = new GeneralName(GeneralName.uniformResourceIdentifier, new DERIA5String(uri));
                if (log.isDebugEnabled()) {
                  log.debug("Added freshest CRL distpoint: "+uri);
                }
                final ASN1EncodableVector vec = new ASN1EncodableVector();
                vec.add(gn);
View Full Code Here

Examples of org.bouncycastle.asn1.DERIA5String

        final List<String> caIssuers = certProfile.getCaIssuers();
        if (caIssuers != null) {
          for(final Iterator<String> it = caIssuers.iterator(); it.hasNext(); ) {
            url = it.next();
            if(StringUtils.isNotEmpty(url)) {
              accessLocation = new GeneralName(GeneralName.uniformResourceIdentifier, new DERIA5String(url));
              accessList.add(new AccessDescription(AccessDescription.id_ad_caIssuers,
                  accessLocation));
            }
          }             
        }

        // ocsp url
        final X509CA x509ca = (X509CA)ca;
        url = certProfile.getOCSPServiceLocatorURI();
        if(certProfile.getUseDefaultOCSPServiceLocator()){
          url = x509ca.getDefaultOCSPServiceLocator();
        }
        if (StringUtils.isNotEmpty(url)) {
          accessLocation = new GeneralName(GeneralName.uniformResourceIdentifier, new DERIA5String(url));
          accessList.add(new AccessDescription(AccessDescription.id_ad_ocsp,
              accessLocation));
        }
        org.bouncycastle.asn1.x509.AuthorityInformationAccess ret = null;
        if (accessList.size() > 0) {         
View Full Code Here

Examples of org.bouncycastle.asn1.DERIA5String

  }
 
  @Override
  public DEREncodable getValue(final UserDataVO subject, final CA ca, final CertificateProfile certProfile, final PublicKey userPublicKey, final PublicKey caPublicKey ) throws CertificateExtentionConfigurationException, CertificateExtensionException {
    final String mstemplate = certProfile.getMicrosoftTemplate();            
        return new DERIA5String(mstemplate);            
 
View Full Code Here

Examples of org.bouncycastle.asn1.DERIA5String

        pubkey = pub_key;

        ASN1EncodableVector content_der = new ASN1EncodableVector();
        content_der.add(getKeySpec());
        //content_der.add(new SubjectPublicKeyInfo(sigAlg, new RSAPublicKeyStructure(pubkey.getModulus(), pubkey.getPublicExponent()).getDERObject()));
        content_der.add(new DERIA5String(challenge));

        content = new DERBitString(new DERSequence(content_der));
    }
View Full Code Here

Examples of org.bouncycastle.asn1.DERIA5String

        DEROutputStream deros = new DEROutputStream(baos);

        ASN1EncodableVector pkac = new ASN1EncodableVector();

        pkac.add(getKeySpec());
        pkac.add(new DERIA5String(challenge));

        try
        {
            deros.writeObject(new DERSequence(pkac));
            deros.close();
View Full Code Here

Examples of org.bouncycastle.asn1.DERIA5String

        catch (Exception e)
        {
            //ignore
        }

        pkac.add(new DERIA5String(challenge));

        spkac.add(new DERSequence(pkac));
        spkac.add(sigAlg);
        spkac.add(new DERBitString(sigBits));
View Full Code Here

Examples of org.bouncycastle.asn1.DERIA5String

                new DERBoolean(true),
                new DERBoolean(false),
                new DEREnumerated(100),
                new DERGeneralizedTime(new Date()),
                new DERGeneralString("hello world"),
                new DERIA5String("hello"),
                new DERInteger(1000),
                new DERNull(),
                new DERNumericString("123456"),
                new DERObjectIdentifier("1.1.1.10000.1"),
                new DEROctetString(data),
View Full Code Here

Examples of org.bouncycastle.asn1.DERIA5String

    * <code>String</code>.
    */
   public PolicyQualifierInfo (String cps)
   {
      policyQualifierId = PolicyQualifierId.id_qt_cps;
      qualifier = new DERIA5String (cps);
   }
View Full Code Here

Examples of org.bouncycastle.asn1.DERIA5String

      }
    
      contentType = type;
      switch (type) {
         case CONTENT_TYPE_IA5STRING:
            contents = (DERString)new DERIA5String (text);
            break;
         case CONTENT_TYPE_UTF8STRING:
            contents = (DERString)new DERUTF8String(text);
            break;
         case CONTENT_TYPE_VISIBLESTRING:
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.