Package rocket.json.rebind.writefields

Examples of rocket.json.rebind.writefields.WriteFieldsTemplatedFile$Holder


        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

        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

    jsonObjectParameter.setFinal(true);
    jsonObjectParameter.setName(Constants.WRITE_FIELD_JSON_OBJECT_PARAMETER);
    final Type jsonObjectType = this.getJsonObject();
    jsonObjectParameter.setType(jsonObjectType);

    final WriteFieldsTemplatedFile body = new WriteFieldsTemplatedFile();
    body.setInstanceType(type);
    writeFields.setBody(body);

    // find all fields belonging to type
    final Iterator fields = type.getFields().iterator();
    while (fields.hasNext()) {
      final Field field = (Field) fields.next();
      if (field.isStatic() || field.isTransient()) {
        continue;
      }

      final NewMethod fieldGetter = this.createFieldGetter(deserializer, field);
      final String javascriptPropertyName = this.getJavascriptPropertyName(field);
      final Type serializer = this.getSerializer(field);

      body.addField(javascriptPropertyName, fieldGetter, serializer);
    } // while

    context.unbranch();
  }
View Full Code Here

TOP

Related Classes of rocket.json.rebind.writefields.WriteFieldsTemplatedFile$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.