Examples of SPType


Examples of com.google.enterprise.connector.sharepoint.client.SPConstants.SPType

      }
    }

    LOGGER.info("Starting traversal from site [ " + nextWeb + " ]. ");

    SPType spType = nextWeb.getSharePointType();

    // To store the intermediate webs discovered during crawl
    Set<String> allSites = new TreeSet<String>();

    ArrayList<String> lstLookupForWebs = new ArrayList<String>();
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.client.SPConstants.SPType

    if (!validateFeedAclsRelatedHtmlControls(ed)) {
      return false;
    }

    final SPType SPVersion = sharepointClientContext
        .checkSharePointType(sharepointUrl);
    if (SPType.SP2007 == SPVersion && mySiteUrl != null
        && !mySiteUrl.equals(SPConstants.BLANK_STRING)) {
      if (!isURL(mySiteUrl)) {
        ed.set(SPConstants.MYSITE_BASE_URL,
View Full Code Here

Examples of com.google.enterprise.connector.sharepoint.client.SPConstants.SPType

        TestConfiguration.sharepointUrl, null);
    assertEquals(responseCode, 200);
  }

  public void testCheckSharePointType() throws Exception {
    final SPType spType = sharepointClientContext.checkSharePointType(
        TestConfiguration.sharepointUrl);
    assertEquals(SPType.SP2007, spType);
  }
View Full Code Here

Examples of org.jboss.identity.federation.core.config.SPType

  
   private class SPTrustHandler
  
      public void handleRequestType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException
      {
         SPType spConfiguration = (SPType) request.getOptions().get(GeneralConstants.CONFIGURATION);
         String issuer = request.getIssuer().getValue();
        
         trustIssuer(spConfiguration, issuer)
      }
View Full Code Here

Examples of org.jboss.identity.federation.core.config.SPType

      }

      public void handleStatusResponseType(SAML2HandlerRequest request, SAML2HandlerResponse response)
      throws ProcessingException
      {
         SPType spConfiguration = (SPType) request.getOptions().get(GeneralConstants.CONFIGURATION);
         String issuer = request.getIssuer().getValue();
        
         trustIssuer(spConfiguration, issuer);
      }
View Full Code Here

Examples of org.picketlink.config.federation.SPType

        if (providerType instanceof SPConfiguration) {
            SPConfiguration configuration = (SPConfiguration) providerType;

            if (configuration.isSupportMetadata()) {
                try {
                    SPType metadataConfig;

                    if (configuration.isPostBinding()) {
                        metadataConfig = new SPPostMetadataConfigurationProvider().getSPConfiguration();
                    } else {
                        metadataConfig = new SPRedirectMetadataConfigurationProvider().getSPConfiguration();
                    }

                    metadataConfig.importFrom(configuration);

                    providerType = metadataConfig;
                } catch (ProcessingException e) {
                    throw PicketLinkLogger.ROOT_LOGGER.federationSAMLMetadataConfigError(configuration.getAlias(), e);
                }
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.SPType

     * @param entityDescriptor
     * @param bindingURI
     * @return
     */
    public static ProviderType getSPConfiguration(EntityDescriptorType entityDescriptor, String bindingURI) {
        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));
            }
        }
        if (serviceURL == null) {
            SPSSODescriptorType spSSO = getSPDescriptor(entityDescriptor);
            if (spSSO != null) {
                serviceURL = getServiceURL(spSSO, bindingURI);
            }
            spType.setServiceURL(serviceURL);
        }
        return spType;
    }
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.SPType

     * @return
     * @throws ConfigurationException
     */
    public static SPType getSPConfiguration(EntitiesDescriptorType entitiesDescriptor, String bindingURI)
            throws ConfigurationException {
        SPType spType = new SPType();

        List<Object> list = entitiesDescriptor.getEntityDescriptor();

        IDPSSODescriptorType idpSSO = null;
        SPSSODescriptorType spSSO = null;

        if (list != null) {
            for (Object theObject : list) {
                if (theObject instanceof EntitiesDescriptorType) {
                    spType = getSPConfiguration((EntitiesDescriptorType) theObject, bindingURI);
                } else if (theObject instanceof EntityDescriptorType) {
                    if (idpSSO == null) {
                        // Ideally we should lookup the IDP metadata considering the specs. For now the IDP metadata must be
                        // defined within the SP metadata file.
                        idpSSO = getIDPDescriptor((EntityDescriptorType) theObject);
                    }

                    if (spSSO == null) {
                        spSSO = getSPDescriptor((EntityDescriptorType) theObject);
                    }
                }
            }

            if (idpSSO == null) {
                throw logger.samlMetaDataNoIdentityProviderDefined();
            }

            if (spSSO == null) {
                throw logger.samlMetaDataNoServiceProviderDefined();
            }

            String identityURL = getIdentityURL(idpSSO, bindingURI);

            if (identityURL == null) {
                throw logger.samlMetaDataNoIdentityProviderDefined();
            }

            spType.setIdentityURL(identityURL);
            spType.setLogoutUrl(getLogoutURL(idpSSO, bindingURI));
            spType.setLogoutResponseLocation(getLogoutResponseLocation(idpSSO, bindingURI));

            String serviceURL = getServiceURL(spSSO, bindingURI);

            if (serviceURL == null) {
                throw logger.samlMetaDataNoServiceProviderDefined();
            }

            spType.setServiceURL(serviceURL);
        }

        return spType;
    }
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.SPType

    /**
     * @see SAMLConfigurationProvider#getSPConfiguration()
     */
    public SPType getSPConfiguration() throws ProcessingException {
        SPType spType = null;
        if (fileAvailable()) {
            try {
                Object metadata = parseMDFile();
                if (metadata instanceof EntitiesDescriptorType) {
                    EntitiesDescriptorType entities = (EntitiesDescriptorType) metadata;
                    spType = CoreConfigUtil.getSPConfiguration(entities, bindingURI);
                } else if (metadata instanceof EntityDescriptorType) {
                    EntityDescriptorType entity = (EntityDescriptorType) metadata;
                    spType = (SPType) CoreConfigUtil.getSPConfiguration(entity, bindingURI);
                } else {
                    throw logger.wrongMetadataRootElement();
                }
            } catch (ParsingException e) {
                throw logger.processingError(e);
            } catch (ConfigurationException e) {
                throw logger.processingError(e);
            }
        } else {
            throw logger.nullValueError(SP_MD_FILE);
        }
       
        if (configParsedSPType != null) {
            spType.importFrom(configParsedSPType);
        }
        return spType;
    }
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.SPType

        try {
            props.load(is);
        } catch (IOException e) {
            throw logger.processingError(e);
        }
        SPType sp = new SPType();
        sp.setIdentityURL(props.getProperty("idp.url"));
        sp.setServiceURL("service.url");
        String domains = props.getProperty("domains");
        if (StringUtil.isNotNull(domains)) {
            TrustType trustType = new TrustType();
            trustType.setDomains(domains);
            sp.setTrust(trustType);
        }

        return sp;
    }
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.