Examples of IDPSSODescriptorType


Examples of org.jboss.identity.federation.saml.v2.metadata.IDPSSODescriptorType

         builder.append("ID=").append(rdt.getID());
         builder.append(LINE_SEPARATOR);
        
         if(rdt instanceof IDPSSODescriptorType)
         {
            IDPSSODescriptorType idp = (IDPSSODescriptorType) rdt;
            builder.append(toString(idp));
         }
         if(rdt instanceof SPSSODescriptorType)
         {
            SPSSODescriptorType sp = (SPSSODescriptorType) rdt;
View Full Code Here

Examples of org.jboss.identity.federation.saml.v2.metadata.IDPSSODescriptorType

         EndpointType ssoEndPoint,
         EndpointType sloEndPoint,
         List<AttributeType> attributes,
         OrganizationType org)
   {
      IDPSSODescriptorType idp = oFact.createIDPSSODescriptorType();
      idp.getSingleSignOnService().add(ssoEndPoint);
      idp.getSingleLogoutService().add(sloEndPoint);
      idp.getAttribute().addAll(attributes);
      idp.getKeyDescriptor().add(keyDescriptorType);
      idp.setWantAuthnRequestsSigned(requestsSigned);
      idp.setOrganization(org);
      return idp;
   }
View Full Code Here

Examples of org.jboss.seam.security.external.jaxb.samlv2.metadata.IDPSSODescriptorType

    }

    public SamlExternalIdentityProvider addExternalSamlEntity(Reader reader) {
        EntityDescriptorType entityDescriptor = readEntityDescriptor(reader);
        String entityId = entityDescriptor.getEntityID();
        IDPSSODescriptorType IDPSSODescriptor = (IDPSSODescriptorType) entityDescriptor.getRoleDescriptorOrIDPSSODescriptorOrSPSSODescriptor().get(0);
        return addExternalIdentityProvider(entityId, IDPSSODescriptor);
    }
View Full Code Here

Examples of org.jboss.seam.security.external.jaxb.samlv2.metadata.IDPSSODescriptorType

            IndexedEndpointType ssoPostEndpoint = metaDataFactory.createIndexedEndpointType();
            ssoPostEndpoint.setBinding(SamlConstants.HTTP_POST_BINDING);
            ssoPostEndpoint.setLocation(getServiceURL(SamlServiceType.SAML_SINGLE_SIGN_ON_SERVICE));

            IDPSSODescriptorType idpSsoDescriptor = metaDataFactory.createIDPSSODescriptorType();

            idpSsoDescriptor.getSingleSignOnService().add(ssoRedirectEndpoint);
            idpSsoDescriptor.getSingleSignOnService().add(ssoPostEndpoint);
            addSloEndpointsToMetaData(idpSsoDescriptor);

            idpSsoDescriptor.setWantAuthnRequestsSigned(isWantAuthnRequestsSigned());

            idpSsoDescriptor.getProtocolSupportEnumeration().add(SamlConstants.PROTOCOL_NSURI);

            addNameIDFormatsToMetaData(idpSsoDescriptor);

            addKeyDescriptorToMetaData(idpSsoDescriptor);
View Full Code Here

Examples of org.jboss.seam.security.external.jaxb.samlv2.metadata.IDPSSODescriptorType

         IndexedEndpointType ssoPostEndpoint = metaDataFactory.createIndexedEndpointType();
         ssoPostEndpoint.setBinding(SamlConstants.HTTP_POST_BINDING);
         ssoPostEndpoint.setLocation(getServiceURL(SamlServiceType.SAML_SINGLE_SIGN_ON_SERVICE));

         IDPSSODescriptorType idpSsoDescriptor = metaDataFactory.createIDPSSODescriptorType();

         idpSsoDescriptor.getSingleSignOnService().add(ssoRedirectEndpoint);
         idpSsoDescriptor.getSingleSignOnService().add(ssoPostEndpoint);
         addSloEndpointsToMetaData(idpSsoDescriptor);

         idpSsoDescriptor.setWantAuthnRequestsSigned(isWantAuthnRequestsSigned());

         idpSsoDescriptor.getProtocolSupportEnumeration().add(SamlConstants.PROTOCOL_NSURI);

         addNameIDFormatsToMetaData(idpSsoDescriptor);

         addKeyDescriptorToMetaData(idpSsoDescriptor);
View Full Code Here

Examples of org.jboss.seam.security.external.jaxb.samlv2.metadata.IDPSSODescriptorType

   public SamlExternalIdentityProvider addExternalSamlEntity(Reader reader)
   {
      EntityDescriptorType entityDescriptor = readEntityDescriptor(reader);
      String entityId = entityDescriptor.getEntityID();
      IDPSSODescriptorType IDPSSODescriptor = (IDPSSODescriptorType) entityDescriptor.getRoleDescriptorOrIDPSSODescriptorOrSPSSODescriptor().get(0);
      return addExternalIdentityProvider(entityId, IDPSSODescriptor);
   }
View Full Code Here

Examples of org.picketlink.identity.federation.saml.v2.metadata.IDPSSODescriptorType

        assertEquals(lang, org.getOrganizationURL().get(0).getLang());
    }

    @Test
    public void testCreateEntityDescriptor() {
        IDPSSODescriptorType idp = this.createIDPSSODescriptor();
        EntityDescriptorType idpEntity = MetaDataBuilder.createEntityDescriptor(idp);
        assertNotNull("IDP Entity Descriptor not null", idpEntity);

        SPSSODescriptorType sp = this.createSPSSODescriptor();
        EntityDescriptorType spEntity = MetaDataBuilder.createEntityDescriptor(sp);
View Full Code Here

Examples of org.picketlink.identity.federation.saml.v2.metadata.IDPSSODescriptorType

        assertNotNull("SP Entity Descriptor not null", spEntity);
    }

    @Test
    public void testCreateIDPSSODescriptor() {
        IDPSSODescriptorType idp = this.createIDPSSODescriptor();
        assertNotNull("IDPSSODescriptor is not null", idp);
    }
View Full Code Here

Examples of org.picketlink.identity.federation.saml.v2.metadata.IDPSSODescriptorType

     * @return
     */
    public static IDPSSODescriptorType createIDPSSODescriptor(boolean requestsSigned, KeyDescriptorType keyDescriptorType,
            EndpointType ssoEndPoint, EndpointType sloEndPoint, List<AttributeType> attributes, OrganizationType org) {
        List<String> emptyList = new ArrayList<String>();
        IDPSSODescriptorType idp = new IDPSSODescriptorType(emptyList);
        idp.addSingleSignOnService(ssoEndPoint);
        idp.addSingleLogoutService(sloEndPoint);

        for (AttributeType attr : attributes) {
            idp.addAttribute(attr);
        }
        idp.addKeyDescriptor(keyDescriptorType);
        idp.setWantAuthnRequestsSigned(requestsSigned);
        idp.setOrganization(org);
        return idp;
    }
View Full Code Here

Examples of org.picketlink.identity.federation.saml.v2.metadata.IDPSSODescriptorType

        SPType spType = new SPType();
        String identityURL = null;
        String serviceURL = null;

        if (identityURL == null) {
            IDPSSODescriptorType idpSSO = getIDPDescriptor(entityDescriptor);
            if (idpSSO != null) {
                identityURL = getIdentityURL(idpSSO, bindingURI);
                spType.setIdentityURL(identityURL);
                spType.setLogoutUrl(getLogoutURL(idpSSO, bindingURI));
                spType.setLogoutResponseLocation(getLogoutResponseLocation(idpSSO, bindingURI));
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.