/** * Create an Endpoint (SingleSignOnEndpoint or SingleLogoutEndpoint) * * @param binding * @param location * @param responseLocation * * @return */ public static EndpointType createEndpoint(String binding, String location, String responseLocation) { EndpointType endpoint = new EndpointType(URI.create(binding), URI.create(location)); endpoint.setResponseLocation(URI.create(responseLocation)); return endpoint; }
/** * Create an Endpoint (SingleSignOnEndpoint or SingleLogoutEndpoint) * * @param binding * @param location * @param responseLocation * @return */ public static EndpointType createEndpoint(String binding, String location, String responseLocation) { EndpointType endpoint = new EndpointType(URI.create(binding), URI.create(location)); endpoint.setResponseLocation(URI.create(responseLocation)); return endpoint; }
/** * Create an Endpoint (SingleSignOnEndpoint or SingleLogoutEndpoint) * @param binding * @param location * @param responseLocation * @return */ public static EndpointType createEndpoint(String binding, String location, String responseLocation) { EndpointType endpoint = new EndpointType(URI.create(binding), URI.create(location)); endpoint.setResponseLocation(URI.create(responseLocation)); return endpoint; }
/** * Create an Endpoint (SingleSignOnEndpoint or SingleLogoutEndpoint) * @param binding * @param location * @param responseLocation * @return */ public static EndpointType createEndpoint(String binding, String location, String responseLocation) { EndpointType endpoint = new EndpointType(URI.create(binding), URI.create(location)); endpoint.setResponseLocation(URI.create(responseLocation)); return endpoint; }
/** * Create an Endpoint (SingleSignOnEndpoint or SingleLogoutEndpoint) * * @param binding * @param location * @param responseLocation * * @return */ public static EndpointType createEndpoint(String binding, String location, String responseLocation) { EndpointType endpoint = new EndpointType(URI.create(binding), URI.create(location)); endpoint.setResponseLocation(URI.create(responseLocation)); return endpoint; }
@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; }