Package org.apache.cxf.fediz.core.exception

Examples of org.apache.cxf.fediz.core.exception.ProcessingException


                ByteArrayOutputStream result = SignatureUtils.signMetaInfo(
                    config.getSigningKey().getCrypto(), config.getSigningKey().getKeyAlias(), config.getSigningKey().getKeyPassword(), is, referenceID);
                if (result != null) {
                    is = new ByteArrayInputStream(result.toByteArray());
                } else {
                    throw new ProcessingException("Failed to sign the metadata document: result=null");
                }
            }
            return DOMUtils.readXml(is);
        } catch (ProcessingException e) {
            throw e;
        } catch (Exception e) {
            LOG.error("Error creating service metadata information ", e);
            throw new ProcessingException("Error creating service metadata information: " + e.getMessage());
        }

    }
View Full Code Here


        throws ProcessingException, IOException {
        IDPConfig idpConfig = (IDPConfig) WebUtils.getAttributeFromFlowScope(
                context, IDP_CONFIG);

        if (idpConfig == null) {
            throw new ProcessingException("IDP configuration is null",
                    TYPE.BAD_REQUEST);
        }

        String whr = (String) WebUtils.getAttributeFromFlowScope(context,
                FederationConstants.PARAM_HOME_REALM);

        if (whr == null) {
            throw new ProcessingException("Home realm is null",
                    TYPE.BAD_REQUEST);
        }

        String wresult = (String) WebUtils.getAttributeFromFlowScope(context,
                FederationConstants.PARAM_RESULT);

        if (wresult == null) {
            throw new ProcessingException("No security token issued",
                    TYPE.BAD_REQUEST);
        }

        TrustedIDPConfig trustedIDPConfig = idpConfig.getTrustedIDPs().get(whr);

        if (trustedIDPConfig == null) {
            throw new ProcessingException(
                    "No trusted IDP config found for home realm " + whr,
                    TYPE.BAD_REQUEST);
        }

        FederationContext fedContext = getFederationContext(idpConfig,
View Full Code Here

TOP

Related Classes of org.apache.cxf.fediz.core.exception.ProcessingException

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.