Examples of SamlService


Examples of org.jasig.cas.authentication.principal.SamlService

            samlResponse.setIssueInstant(currentDate);

            // this should be true, but we never enforced it, so we need to check to be safe
            if (service instanceof SamlService) {
                final SamlService samlService = (SamlService) service;

                if (samlService.getRequestID() != null) {
                    samlResponse.setInResponseTo(samlService.getRequestID());
                }
            }

            final SAMLAssertion samlAssertion = new SAMLAssertion();
            samlAssertion.setIssueInstant(currentDate);
View Full Code Here

Examples of org.jasig.cas.support.saml.authentication.principal.SamlService

            samlResponse.setID(generateId());
            samlResponse.setIssueInstant(DateTime.now().minusSeconds(skewAllowance));
            samlResponse.setVersion(SAMLVersion.VERSION_11);
            samlResponse.setRecipient(serviceId);
            if (service instanceof SamlService) {
                final SamlService samlService = (SamlService) service;

                if (samlService.getRequestID() != null) {
                    samlResponse.setInResponseTo(samlService.getRequestID());
                }
            }
            prepareResponse(samlResponse, model);

            final BasicSAMLMessageContext messageContext = new BasicSAMLMessageContext();
View Full Code Here

Examples of org.jboss.seam.security.external.saml.SamlService

    public SamlExternalIdentityProvider(String entityId, IDPSSODescriptorType iDPSSODescriptor) {
        super(entityId, iDPSSODescriptor.getKeyDescriptor());

        wantAuthnRequestsSigned = iDPSSODescriptor.getWantAuthnRequestsSigned();

        services.put(SamlProfile.SINGLE_SIGN_ON, new SamlService(SamlProfile.SINGLE_SIGN_ON, iDPSSODescriptor.getSingleSignOnService()));
        services.put(SamlProfile.SINGLE_LOGOUT, new SamlService(SamlProfile.SINGLE_LOGOUT, iDPSSODescriptor.getSingleLogoutService()));
    }
View Full Code Here

Examples of org.jboss.seam.security.external.saml.SamlService

        StatusResponseType statusResponse;

        if (failed) {
            statusResponse = samlMessageFactory.createStatusResponse(SamlConstants.STATUS_RESPONDER, null);
        } else {
            SamlService service = serviceProvider.getService(SamlProfile.SINGLE_SIGN_ON);
            statusResponse = samlMessageFactory.createResponse(session, samlMessageSender.getEndpoint(service));
        }

        samlMessageSender.sendResponse(serviceProvider, statusResponse, SamlProfile.SINGLE_SIGN_ON, response);
View Full Code Here

Examples of org.jboss.seam.security.external.saml.SamlService

        super(entityId, sPSSODescriptor.getKeyDescriptor());

        wantAssertionsSigned = sPSSODescriptor.getWantAssertionsSigned();
        authnRequestsSigned = sPSSODescriptor.getAuthnRequestsSigned();

        services.put(SamlProfile.SINGLE_SIGN_ON, new SamlService(SamlProfile.SINGLE_SIGN_ON, sPSSODescriptor.getAssertionConsumerService()));
        services.put(SamlProfile.SINGLE_LOGOUT, new SamlService(SamlProfile.SINGLE_LOGOUT, sPSSODescriptor.getSingleLogoutService()));
    }
View Full Code Here

Examples of org.jboss.seam.security.external.saml.SamlService

      {
         statusResponse = samlMessageFactory.createStatusResponse(SamlConstants.STATUS_RESPONDER, null);
      }
      else
      {
         SamlService service = serviceProvider.getService(SamlProfile.SINGLE_SIGN_ON);
         statusResponse = samlMessageFactory.createResponse(session, samlMessageSender.getEndpoint(service));
      }

      samlMessageSender.sendResponse(serviceProvider, statusResponse, SamlProfile.SINGLE_SIGN_ON, response);
View Full Code Here

Examples of org.jboss.seam.security.external.saml.SamlService

      super(entityId, SPSSODescriptor.getKeyDescriptor());

      wantAssertionsSigned = SPSSODescriptor.isWantAssertionsSigned();
      authnRequestsSigned = SPSSODescriptor.isAuthnRequestsSigned();

      services.put(SamlProfile.SINGLE_SIGN_ON, new SamlService(SamlProfile.SINGLE_SIGN_ON, SPSSODescriptor.getAssertionConsumerService()));
      services.put(SamlProfile.SINGLE_LOGOUT, new SamlService(SamlProfile.SINGLE_LOGOUT, SPSSODescriptor.getSingleLogoutService()));
   }
View Full Code Here

Examples of org.jboss.seam.security.external.saml.SamlService

   {
      super(entityId, IDPSSODescriptor.getKeyDescriptor());

      wantAuthnRequestsSigned = IDPSSODescriptor.isWantAuthnRequestsSigned();

      services.put(SamlProfile.SINGLE_SIGN_ON, new SamlService(SamlProfile.SINGLE_SIGN_ON, IDPSSODescriptor.getSingleSignOnService()));
      services.put(SamlProfile.SINGLE_LOGOUT, new SamlService(SamlProfile.SINGLE_LOGOUT, IDPSSODescriptor.getSingleLogoutService()));
   }
View Full Code Here

Examples of org.wildfly.extension.picketlink.federation.service.SAMLService

    }

    static void launchServices(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
        PathAddress pathAddress = PathAddress.pathAddress(operation.get(ModelDescriptionConstants.ADDRESS));
        String federationAlias = pathAddress.subAddress(0, pathAddress.size() - 1).getLastElement().getValue();
        SAMLService service = new SAMLService(toSAMLConfig(context, model));
        ServiceBuilder<SAMLService> serviceBuilder = context.getServiceTarget().addService(SAMLService.createServiceName(federationAlias), service);

        serviceBuilder.addDependency(FederationService.createServiceName(federationAlias), FederationService.class, service.getFederationService());

        if (verificationHandler != null) {
            serviceBuilder.addListener(verificationHandler);
        }
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.