/** * Create an Entity Descriptor * @param idpOrSPDescriptor a descriptor for either the IDP or SSO * @return */ public static EntityDescriptorType createEntityDescriptor(SSODescriptorType idpOrSPDescriptor) { EDTDescriptorChoiceType edtDescriptorChoiceType = new EDTDescriptorChoiceType(idpOrSPDescriptor); List<EDTDescriptorChoiceType> edtList = new ArrayList<EntityDescriptorType.EDTDescriptorChoiceType>(); edtList.add(edtDescriptorChoiceType); EDTChoiceType choiceType = new EDTChoiceType(edtList); EntityDescriptorType entity = new EntityDescriptorType(" "); entity.addChoiceType(choiceType); return entity; }
/** * Create an Entity Descriptor * * @param idpOrSPDescriptor a descriptor for either the IDP or SSO * @return */ public static EntityDescriptorType createEntityDescriptor(SSODescriptorType idpOrSPDescriptor) { EDTDescriptorChoiceType edtDescriptorChoiceType = new EDTDescriptorChoiceType(idpOrSPDescriptor); List<EDTDescriptorChoiceType> edtList = new ArrayList<EntityDescriptorType.EDTDescriptorChoiceType>(); edtList.add(edtDescriptorChoiceType); EDTChoiceType choiceType = new EDTChoiceType(edtList); EntityDescriptorType entity = new EntityDescriptorType(" "); entity.addChoiceType(choiceType); return entity; }
/** * Create an Entity Descriptor * @param idpOrSPDescriptor a descriptor for either the IDP or SSO * @return */ public static EntityDescriptorType createEntityDescriptor(SSODescriptorType idpOrSPDescriptor) { EDTDescriptorChoiceType edtDescriptorChoiceType = new EDTDescriptorChoiceType(idpOrSPDescriptor); List<EDTDescriptorChoiceType> edtList = new ArrayList<EntityDescriptorType.EDTDescriptorChoiceType>(); edtList.add(edtDescriptorChoiceType); EDTChoiceType choiceType = new EDTChoiceType(edtList); EntityDescriptorType entity = new EntityDescriptorType(" "); entity.addChoiceType(choiceType); return entity; }
EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(idpSSO); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(spSSO); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(attrAuthority); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice);
EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(idpSSO); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(spSSO); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(attrAuthority); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice);
IDPSSODescriptorType idpSSO = parseIDPSSODescriptor(xmlEventReader); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(idpSSO); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice); SPSSODescriptorType spSSO = parseSPSSODescriptor(xmlEventReader); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(spSSO); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice); AttributeAuthorityDescriptorType attrAuthority = parseAttributeAuthorityDescriptor(xmlEventReader); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(attrAuthority); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice); RoleDescriptorType roleDescriptor = parseRoleDescriptor(xmlEventReader); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(roleDescriptor); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice);
IDPSSODescriptorType idpSSO = parseIDPSSODescriptor(xmlEventReader); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(idpSSO); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice); SPSSODescriptorType spSSO = parseSPSSODescriptor(xmlEventReader); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(spSSO); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice); AttributeAuthorityDescriptorType attrAuthority = parseAttributeAuthorityDescriptor(xmlEventReader); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(attrAuthority); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice); RoleDescriptorType roleDescriptor = parseRoleDescriptor(xmlEventReader); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(roleDescriptor); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice);
IDPSSODescriptorType idpSSO = parseIDPSSODescriptor(xmlEventReader); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(idpSSO); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice); SPSSODescriptorType spSSO = parseSPSSODescriptor(xmlEventReader); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(spSSO); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice); AttributeAuthorityDescriptorType attrAuthority = parseAttributeAuthorityDescriptor(xmlEventReader); EDTDescriptorChoiceType edtDescChoice = new EDTDescriptorChoiceType(attrAuthority); EDTChoiceType edtChoice = EDTChoiceType.oneValue(edtDescChoice); entityDescriptorType.addChoiceType(edtChoice);
@Override public EntityDescriptorType getMetaData() { ArrayList<String> protocols = new ArrayList<String>(); protocols.add(PROTOCOL); SPSSODescriptorType spSSO = new SPSSODescriptorType(protocols); spSSO.setAuthnRequestsSigned(true); spSSO.setWantAssertionsSigned(true); if (bindingUri!=null && logoutPage != null) { EndpointType endpointType = new EndpointType(URI.create(bindingUri), URI.create(logoutPage)); endpointType.setResponseLocation(URI.create(logoutResponseLocation)); spSSO.addSingleLogoutService(endpointType); } IndexedEndpointType assertionConsumerSvc = new IndexedEndpointType(URI.create(bindingUri), URI.create(serviceUrl)); assertionConsumerSvc.setIsDefault(true); spSSO.addAssertionConsumerService(assertionConsumerSvc); if (serviceName != null) { spSSO.addAttributeConsumerService(getAttributeConsumerService()); if(nameIdFormat != null) { spSSO.addNameIDFormat(nameIdFormat); } } EntityDescriptorType.EDTDescriptorChoiceType edtDescChoice = new EntityDescriptorType.EDTDescriptorChoiceType(spSSO); EntityDescriptorType.EDTChoiceType edtChoice = EntityDescriptorType.EDTChoiceType.oneValue(edtDescChoice); EntityDescriptorType entityDescriptor = new EntityDescriptorType(entityId); entityDescriptor.addChoiceType(edtChoice); return entityDescriptor; }
@Override public EntityDescriptorType getMetaData() { ArrayList<String> protocols = new ArrayList<String>(); protocols.add(PROTOCOL); SPSSODescriptorType spSSO = new SPSSODescriptorType(protocols); spSSO.setAuthnRequestsSigned(true); spSSO.setWantAssertionsSigned(true); if (bindingUri!=null && logoutPage != null) { EndpointType endpointType = new EndpointType(URI.create(bindingUri), URI.create(logoutPage)); endpointType.setResponseLocation(URI.create(logoutResponseLocation)); spSSO.addSingleLogoutService(endpointType); } IndexedEndpointType assertionConsumerSvc = new IndexedEndpointType(URI.create(bindingUri), URI.create(serviceUrl)); assertionConsumerSvc.setIsDefault(true); spSSO.addAssertionConsumerService(assertionConsumerSvc); if (serviceName != null) { spSSO.addAttributeConsumerService(getAttributeConsumerService()); if(nameIdFormat != null) { spSSO.addNameIDFormat(nameIdFormat); } } EntityDescriptorType.EDTDescriptorChoiceType edtDescChoice = new EntityDescriptorType.EDTDescriptorChoiceType(spSSO); EntityDescriptorType.EDTChoiceType edtChoice = EntityDescriptorType.EDTChoiceType.oneValue(edtDescChoice); EntityDescriptorType entityDescriptor = new EntityDescriptorType(entityId); entityDescriptor.addChoiceType(edtChoice); return entityDescriptor; }
/** * Create an Entity Descriptor * * @param idpOrSPDescriptor a descriptor for either the IDP or SSO * * @return */ public static EntityDescriptorType createEntityDescriptor(SSODescriptorType idpOrSPDescriptor) { EDTDescriptorChoiceType edtDescriptorChoiceType = new EDTDescriptorChoiceType(idpOrSPDescriptor); List<EDTDescriptorChoiceType> edtList = new ArrayList<EntityDescriptorType.EDTDescriptorChoiceType>(); edtList.add(edtDescriptorChoiceType); EDTChoiceType choiceType = new EDTChoiceType(edtList); EntityDescriptorType entity = new EntityDescriptorType(" "); entity.addChoiceType(choiceType); return entity; }
/** * Create an Entity Descriptor * * @param idpOrSPDescriptor a descriptor for either the IDP or SSO * * @return */ public static EntityDescriptorType createEntityDescriptor(SSODescriptorType idpOrSPDescriptor) { EDTDescriptorChoiceType edtDescriptorChoiceType = new EDTDescriptorChoiceType(idpOrSPDescriptor); List<EDTDescriptorChoiceType> edtList = new ArrayList<EntityDescriptorType.EDTDescriptorChoiceType>(); edtList.add(edtDescriptorChoiceType); EDTChoiceType choiceType = new EDTChoiceType(edtList); EntityDescriptorType entity = new EntityDescriptorType(" "); entity.addChoiceType(choiceType); return entity; }