/** * Information from an endpoint * @param ept * @return */ public static String toString(EndpointType ept) { StringBuilder builder = new StringBuilder(); builder.append("[Location=").append(ept.getLocation()); builder.append(",ResponseLocation=").append(ept.getResponseLocation()); builder.append("]"); builder.append(LINE_SEPARATOR); return builder.toString(); } }
/** * Information from an endpoint * * @param ept * * @return */ public static String toString(EndpointType ept) { StringBuilder builder = new StringBuilder(); builder.append("[Location=").append(ept.getLocation()); builder.append(",ResponseLocation=").append(ept.getResponseLocation()); builder.append("]"); builder.append(LINE_SEPARATOR); return builder.toString(); } }
/** * Information from an endpoint * * @param ept * @return */ public static String toString(EndpointType ept) { StringBuilder builder = new StringBuilder(); builder.append("[Location=").append(ept.getLocation()); builder.append(",ResponseLocation=").append(ept.getResponseLocation()); builder.append("]"); builder.append(LINE_SEPARATOR); return builder.toString(); } }
/** * Information from an endpoint * * @param ept * * @return */ public static String toString(EndpointType ept) { StringBuilder builder = new StringBuilder(); builder.append("[Location=").append(ept.getLocation()); builder.append(",ResponseLocation=").append(ept.getResponseLocation()); builder.append("]"); builder.append(LINE_SEPARATOR); return builder.toString(); } }
private String getParticipantURL(String destination, SAML2HandlerRequest request) { SPSSODescriptorType spMetadata = (SPSSODescriptorType) request.getOptions().get( GeneralConstants.SP_SSO_METADATA_DESCRIPTOR); // Metadata not found. We will use destination for registration to IdentityServer if (spMetadata == null) { return destination; } List<EndpointType> logoutEndpoints = spMetadata.getSingleLogoutService(); // If endpoint not found, we assume that SP doesn't support logout profile if (logoutEndpoints == null || logoutEndpoints.size() == 0) { return null; } // Use first endpoint for now (Maybe later we can find logoutType according to bindingType from SAMLRequest) EndpointType logoutEndpoint = logoutEndpoints.get(0); return logoutEndpoint.getLocation().toASCIIString(); }
private String getParticipantURL(String destination, SAML2HandlerRequest request) { SPSSODescriptorType spMetadata = (SPSSODescriptorType) request.getOptions().get( GeneralConstants.SP_SSO_METADATA_DESCRIPTOR); // Metadata not found. We will use destination for registration to IdentityServer if (spMetadata == null) { return destination; } List<EndpointType> logoutEndpoints = spMetadata.getSingleLogoutService(); // If endpoint not found, we assume that SP doesn't support logout profile if (logoutEndpoints == null || logoutEndpoints.size() == 0) { return null; } // Use first endpoint for now (Maybe later we can find logoutType according to bindingType from SAMLRequest) EndpointType logoutEndpoint = logoutEndpoints.get(0); return logoutEndpoint.getLocation().toASCIIString(); } }
private String getParticipantURL(String destination, SAML2HandlerRequest request) { SPSSODescriptorType spMetadata = (SPSSODescriptorType) request.getOptions().get( GeneralConstants.SP_SSO_METADATA_DESCRIPTOR); // Metadata not found. We will use destination for registration to IdentityServer if (spMetadata == null) { return destination; } List<EndpointType> logoutEndpoints = spMetadata.getSingleLogoutService(); // If endpoint not found, we assume that SP doesn't support logout profile if (logoutEndpoints == null || logoutEndpoints.size() == 0) { return null; } // Use first endpoint for now (Maybe later we can find logoutType according to bindingType from SAMLRequest) EndpointType logoutEndpoint = logoutEndpoints.get(0); return logoutEndpoint.getLocation().toASCIIString(); }
/** * Given a binding uri, get the IDP identity url * * @param idp * @param bindingURI * * @return */ public static String getIdentityURL(IDPSSODescriptorType idp, String bindingURI) { String identityURL = null; List<EndpointType> endpoints = idp.getSingleSignOnService(); for (EndpointType endpoint : endpoints) { if (endpoint.getBinding().toString().equals(bindingURI)) { identityURL = endpoint.getLocation().toString(); break; } } return identityURL; }
/** * Given a binding uri, get the IDP identity url * * @param idp * @param bindingURI * * @return */ public static String getLogoutURL(IDPSSODescriptorType idp, String bindingURI) { String logoutURL = null; List<EndpointType> endpoints = idp.getSingleLogoutService(); for (EndpointType endpoint : endpoints) { if (endpoint.getBinding().toString().equals(bindingURI)) { logoutURL = endpoint.getLocation().toString(); break; } } return logoutURL; }
/** * Given a binding uri, get the IDP identity url * * @param idp * @param bindingURI * * @return */ public static String getLogoutURL(IDPSSODescriptorType idp, String bindingURI) { String logoutURL = null; List<EndpointType> endpoints = idp.getSingleLogoutService(); for (EndpointType endpoint : endpoints) { if (endpoint.getBinding().toString().equals(bindingURI)) { logoutURL = endpoint.getLocation().toString(); break; } } return logoutURL; }
/** * Given a binding uri, get the IDP identity url * * @param idp * @param bindingURI * @return */ public static String getIdentityURL(IDPSSODescriptorType idp, String bindingURI) { String identityURL = null; List<EndpointType> endpoints = idp.getSingleSignOnService(); for (EndpointType endpoint : endpoints) { if (endpoint.getBinding().toString().equals(bindingURI)) { identityURL = endpoint.getLocation().toString(); break; } } return identityURL; }
/** * Given a binding uri, get the IDP identity url * @param idp * @param bindingURI * @return */ public static String getIdentityURL(IDPSSODescriptorType idp, String bindingURI) { String identityURL = null; List<EndpointType> endpoints = idp.getSingleSignOnService(); for (EndpointType endpoint : endpoints) { if (endpoint.getBinding().toString().equals(bindingURI)) { identityURL = endpoint.getLocation().toString(); break; } } return identityURL; }
/** * Given a binding uri, get the IDP logout url * * @param idp * @param bindingURI * @return */ public static String getLogoutURL(IDPSSODescriptorType idp, String bindingURI) { String logoutURL = null; List<EndpointType> endpoints = idp.getSingleLogoutService(); for (EndpointType endpoint : endpoints) { if (endpoint.getBinding().toString().equals(bindingURI)) { logoutURL = endpoint.getLocation().toString(); break; } } return logoutURL; }
/** * Given a binding uri, get the IDP identity url * @param idp * @param bindingURI * @return */ public static String getIdentityURL(IDPSSODescriptorType idp, String bindingURI) { String identityURL = null; List<EndpointType> endpoints = idp.getSingleSignOnService(); for (EndpointType endpoint : endpoints) { if (endpoint.getBinding().toString().equals(bindingURI)) { identityURL = endpoint.getLocation().toString(); break; } } return identityURL; }
/** * Given a binding uri, get the IDP identity url * * @param idp * @param bindingURI * * @return */ public static String getIdentityURL(IDPSSODescriptorType idp, String bindingURI) { String identityURL = null; List<EndpointType> endpoints = idp.getSingleSignOnService(); for (EndpointType endpoint : endpoints) { if (endpoint.getBinding().toString().equals(bindingURI)) { identityURL = endpoint.getLocation().toString(); break; } } return identityURL; }
private void writeEndpointType(EndpointType endpoint) throws ProcessingException { StaxUtil.writeAttribute(writer, JBossSAMLConstants.BINDING.get(), endpoint.getBinding().toString()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.LOCATION.get(), endpoint.getLocation().toString()); URI responseLocation = endpoint.getResponseLocation(); if (responseLocation != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.RESPONSE_LOCATION.get(), responseLocation.toString()); } }
private void writeEndpointType(EndpointType endpoint) throws ProcessingException { StaxUtil.writeAttribute(writer, JBossSAMLConstants.BINDING.get(), endpoint.getBinding().toString()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.LOCATION.get(), endpoint.getLocation().toString()); URI responseLocation = endpoint.getResponseLocation(); if (responseLocation != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.RESPONSE_LOCATION.get(), responseLocation.toString()); } }
private void writeEndpointType(EndpointType endpoint) throws ProcessingException { StaxUtil.writeAttribute(writer, JBossSAMLConstants.BINDING.get(), endpoint.getBinding().toString()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.LOCATION.get(), endpoint.getLocation().toString()); URI responseLocation = endpoint.getResponseLocation(); if (responseLocation != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.RESPONSE_LOCATION.get(), responseLocation.toString()); } }
private void writeEndpointType(EndpointType endpoint) throws ProcessingException { StaxUtil.writeAttribute(writer, JBossSAMLConstants.BINDING.get(), endpoint.getBinding().toString()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.LOCATION.get(), endpoint.getLocation().toString()); URI responseLocation = endpoint.getResponseLocation(); if (responseLocation != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.RESPONSE_LOCATION.get(), responseLocation.toString()); } }
private void writeEndpointType(EndpointType endpoint) throws ProcessingException { StaxUtil.writeAttribute(writer, JBossSAMLConstants.BINDING.get(), endpoint.getBinding().toString()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.LOCATION.get(), endpoint.getLocation().toString()); URI responseLocation = endpoint.getResponseLocation(); if (responseLocation != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.RESPONSE_LOCATION.get(), responseLocation.toString()); } }