Package org.apache.cxf.fediz.core.config

Examples of org.apache.cxf.fediz.core.config.FederationContext


    public final void commence(final HttpServletRequest servletRequest, final HttpServletResponse response,
            final AuthenticationException authenticationException) throws IOException, ServletException {

        String redirectUrl = null;
        FederationContext fedContext = federationConfig.getFederationContext();
        if (LOG.isDebugEnabled()) {
            LOG.debug("Federation context: " + fedContext);
        }
        try {
            FederationProcessor wfProc = new FederationProcessorImpl();
View Full Code Here


        return configurator.getFederationContextList();
    }

    @Override
    public FederationContext getFederationContext(String context) {
        FederationContext ctx = configurator.getFederationContext(context);
        if (ctx == null) {
            LOG.error("Federation context '" + context + "' not found.");
            throw new IllegalStateException("Federation context '" + context + "' not found.");
        }
        return ctx;
View Full Code Here

        return configurator.getFederationContextList();
    }

    @Override
    public FederationContext getFederationContext(String context) {
        FederationContext ctx = configurator.getFederationContext(context);
        if (ctx == null) {
            LOG.error("Federation context '" + context + "' not found.");
            throw new IllegalStateException("Federation context '" + context + "' not found.");
        }
        return ctx;
View Full Code Here

    public final void commence(final HttpServletRequest servletRequest, final HttpServletResponse response,
            final AuthenticationException authenticationException) throws IOException, ServletException {

        String redirectUrl = null;
        FederationContext fedContext = federationConfig.getFederationContext();
        if (LOG.isDebugEnabled()) {
            LOG.debug("Federation context: " + fedContext);
        }
        try {
            FederationProcessor wfProc = new FederationProcessorImpl();
View Full Code Here

                         AuthenticationException authException) throws IOException, ServletException {
       
        HttpServletRequest hrequest = (HttpServletRequest)request;
        HttpServletResponse hresponse = (HttpServletResponse)response;
        String redirectUrl = null;
        FederationContext fedContext = federationConfig.getFederationContext();
        if (LOG.isDebugEnabled()) {
            LOG.debug("Federation context: " + fedContext);
        }
        try {
            FederationProcessor wfProc = new FederationProcessorImpl();
View Full Code Here

    @Override
    public boolean isTargetInterceptor(HttpServletRequest req) throws WebTrustAssociationException {
        if (LOG.isDebugEnabled()) {
            LOG.debug("Request URI: " + req.getRequestURI());
        }
        FederationContext context = getFederationContext(req);

        if (context != null) {
            return true;
        } else {
            LOG.warn("No Federation Context configured for context-path " + req.getContextPath());
View Full Code Here

        throws WebTrustAssociationFailedException {

        if (LOG.isDebugEnabled()) {
            LOG.debug("Request URI: " + req.getRequestURI());
        }
        FederationContext fedCtx = getFederationContext(req);

        if (fedCtx == null) {
            LOG.warn("No Federation Context configured for context-path " + req.getContextPath());
            return TAIResult.create(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
        }
View Full Code Here

        String contextName = request.getContextPath();
        if (contextName == null || contextName.isEmpty()) {
            contextName = "/";
        }
        FederationContext fedCtx = getFederationContext(request);

        String redirectURL = null;
        StringBuilder sb = new StringBuilder();

        try {
View Full Code Here

        federationRequest.setWa(wa);
        federationRequest.setWct(wct);
        federationRequest.setWresult(wresult);

        FederationContext fedCtx = getFederationContext(req);

        FederationProcessor processor = new FederationProcessorImpl();
        return processor.processRequest(federationRequest, fedCtx);
    }
View Full Code Here

        FederationRequest wfReq = new FederationRequest();
        wfReq.setWa(FederationConstants.ACTION_SIGNIN);
        wfReq.setWresult(DOM2Writer.nodeToString(doc));
       
        configurator = null;
        FederationContext config = getFederationConfigurator().getFederationContext("ROOT");

        FederationProcessor wfProc = new FederationProcessorImpl();
        try {
            wfProc.processRequest(wfReq, config);
            fail("Failure expected on missing security token in RSTR");
View Full Code Here

TOP

Related Classes of org.apache.cxf.fediz.core.config.FederationContext

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.