/** * Given a metadata {@link EntityDescriptorType}, construct the Service provider configuration * * @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); } if (serviceURL == null) { SPSSODescriptorType spSSO = getSPDescriptor(entityDescriptor); if (spSSO != null) { serviceURL = getServiceURL(spSSO, bindingURI); } spType.setServiceURL(serviceURL); } return spType; }
/** * Given a metadata {@link EntityDescriptorType}, construct the Service provider configuration * * @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); } if (serviceURL == null) { SPSSODescriptorType spSSO = getSPDescriptor(entityDescriptor); if (spSSO != null) { serviceURL = getServiceURL(spSSO, bindingURI); } spType.setServiceURL(serviceURL); } return spType; }
if (idpSSO != null) identityURL = getIdentityURL(idpSSO, bindingURI);
if (idpSSO != null) identityURL = getIdentityURL(idpSSO, bindingURI);
/** * Given a metadata {@link EntityDescriptorType}, construct the Service provider configuration * * @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; }
String identityURL = getIdentityURL(idpSSO, bindingURI);
if (idpSSO != null) identityURL = getIdentityURL(idpSSO, bindingURI);
if (idpSSO != null) identityURL = getIdentityURL(idpSSO, bindingURI);
String identityURL = getIdentityURL(idpSSO, bindingURI);
String identityURL = getIdentityURL(idpSSO, bindingURI);