Package com.bea.x2002.x09.xbean.config.ConfigDocument

Examples of com.bea.x2002.x09.xbean.config.ConfigDocument.Config


    /**
     * Gives back the JAXB CertID data structure.
     */
    protected static void setCertID
        (CertIDType certId, SignatureConfig signatureConfig, boolean issuerNameNoReverseOrder, X509Certificate certificate) {
        X509IssuerSerialType issuerSerial = certId.addNewIssuerSerial();
        String issuerName;
        if (issuerNameNoReverseOrder) {
            /*
             * Make sure the DN is encoded using the same order as present
             * within the certificate. This is an Office2010 work-around.
             * Should be reverted back.
             *
             * XXX: not correct according to RFC 4514.
             */
            // TODO: check if issuerName is different on getTBSCertificate
            // issuerName = PrincipalUtil.getIssuerX509Principal(certificate).getName().replace(",", ", ");
            issuerName = certificate.getIssuerDN().getName().replace(",", ", ");
        } else {
            issuerName = certificate.getIssuerX500Principal().toString();
        }
        issuerSerial.setX509IssuerName(issuerName);
        issuerSerial.setX509SerialNumber(certificate.getSerialNumber());

        byte[] encodedCertificate;
        try {
            encodedCertificate = certificate.getEncoded();
        } catch (CertificateEncodingException e) {
View Full Code Here


     *
     * @return AnyXmlType response document.
     */
    public AnyXmlType get()
    {
        AnyXmlType anyXmlType = AnyXmlType.Factory.newInstance();
        MetadataConfig metadataConfig = getMetadataConfigFromJNDI();

        //get all the registered metadata
        Map allMetadata = metadataConfig.getAllMetadata();
        Iterator iterator = allMetadata.values().iterator();
View Full Code Here

    *
    * @return AnyXmlType response document.
    */
   public AnyXmlType get(  )
   {
      AnyXmlType     anyXmlType     = AnyXmlType.Factory.newInstance(  );
      MetadataConfig metadataConfig = getMetadataConfigFromJNDI(  );

      //get all the registered metadata
      Map      allMetadata = metadataConfig.getAllMetadata(  );
      Iterator iterator = allMetadata.values(  ).iterator(  );
View Full Code Here

                     LOG.fatal( "*********Unable to load file from file url: " + url+ " CAUSE:", e );
                  }
               }
               else //if not then return a Location...let them do it....
               {
                  LocationDocument locationDocument = LocationDocument.Factory.newInstance(  );
                  locationDocument.setLocation( location );
                  result = locationDocument;
               }
            }
            catch ( MalformedURLException e )
            {
View Full Code Here

                     LOG.fatal( "*********Unable to load file from file url: " + url + " CAUSE:", e );
                  }
               }
               else //if not then return a Location...let them do it....
               {
                  LocationDocument locationDocument = LocationDocument.Factory.newInstance(  );
                  locationDocument.setLocation( location );
                  result = locationDocument;
               }
            }
            catch ( MalformedURLException e )
            {
View Full Code Here

                  LOG.fatal( "*********Unable to load file from file url: " + url + " CAUSE:", e );
               }
            }
            else //if not then return a Location...let them do it....
            {
               LocationDocument locationDocument = LocationDocument.Factory.newInstance(  );
               locationDocument.setLocation( m_location );
               metadata = locationDocument;
            }
         }
         catch ( MalformedURLException e )
         {
View Full Code Here

    public MetadataDocument getMetadata(GetMetadataDocument request)
    {               //todo deal with setting Action for responses...
        MetadataConfig metadataConfig = getMetadataConfigFromJNDI();

        //prep the response
        MetadataDocument responseDoc = createMetadataResponseDoc();
        MetadataDocument.Metadata responseMetadata = responseDoc.addNewMetadata();

        //get the values from the request
        GetMetadataDocument.GetMetadata requestMetadata = request.getGetMetadata();
        String dialect = requestMetadata.getDialect();
        String identifier = requestMetadata.getIdentifier();
View Full Code Here

     *
     * @return empty MetadataDocument
     */
    private MetadataDocument createMetadataResponseDoc()
    {
        MetadataDocument metadataDocument = MetadataDocument.Factory.newInstance();
        return metadataDocument;
    }
View Full Code Here

   public MetadataDocument getMetadata( GetMetadataDocument request )
   {
      MetadataConfig metadataConfig = getMetadataConfigFromJNDI(  );

      //prep the response
      MetadataDocument          responseDoc      = createMetadataResponseDoc(  );
      MetadataDocument.Metadata responseMetadata = responseDoc.addNewMetadata(  );

      //get the values from the request
      GetMetadataDocument.GetMetadata requestMetadata = request.getGetMetadata(  );
      String                          dialect    = requestMetadata.getDialect(  );
      String                          identifier = requestMetadata.getIdentifier(  );
View Full Code Here

    *
    * @return empty MetadataDocument
    */
   private MetadataDocument createMetadataResponseDoc(  )
   {
      MetadataDocument metadataDocument = MetadataDocument.Factory.newInstance(  );
      return metadataDocument;
   }
View Full Code Here

TOP

Related Classes of com.bea.x2002.x09.xbean.config.ConfigDocument.Config

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.