Class EndpointImpl

java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
se.swedenconnect.opensaml.eidas.metadata.impl.EndpointImpl
All Implemented Interfaces:
AttributeExtensibleXMLObject, XMLObject, SAMLObject, Endpoint

public class EndpointImpl extends AbstractXMLObject implements Endpoint
Implementation class for Endpoint.
Author:
Martin Lindström
  • Constructor Details

    • EndpointImpl

      protected EndpointImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - the namespace the element is in
      elementLocalName - the local name of the XML element this Object represents
      namespacePrefix - the prefix for the given namespace
  • Method Details

    • getOrderedChildren

      public List<XMLObject> getOrderedChildren()
      Specified by:
      getOrderedChildren in interface XMLObject
    • getEndpointType

      public String getEndpointType()
      Returns the endpoint type URI.
      Specified by:
      getEndpointType in interface Endpoint
      Returns:
      the endpoint type
    • setEndpointType

      public void setEndpointType(String endpointType)
      Assigns the endpoint type URI.
      Specified by:
      setEndpointType in interface Endpoint
      Parameters:
      endpointType - the endpoint type
    • getEntityID

      public String getEntityID()
      Returns the entityID for the endpoint.
      Specified by:
      getEntityID in interface Endpoint
      Returns:
      the entityID
    • setEntityID

      public void setEntityID(String entityID)
      Assigns the entityID for the endpoint.
      Specified by:
      setEntityID in interface Endpoint
      Parameters:
      entityID - the entityID
    • getSuspend

      public boolean getSuspend()
      For the Swedish eIDAS configuration, the Suspend attribute is used to indicate whether an endpoint has been suspended. This method is just a shortcut instead of using AttributeExtensibleXMLObject.getUnknownAttributes().
      Specified by:
      getSuspend in interface Endpoint
      Returns:
      if the Suspend attribute has been set to true this method returns true, otherwise false 
    • setSuspend

      public void setSuspend(boolean suspendFlag)
      Assigns the Suspend attribute. See Endpoint.getSuspend().
      Specified by:
      setSuspend in interface Endpoint
      Parameters:
      suspendFlag - the suspend flag
    • getHideFromDiscovery

      public boolean getHideFromDiscovery()
      For the Swedish eIDAS configuration, the HideFromDiscovery attribute is used to indicate whether the proxy service within an endpoint should be hidden from the connector "select country view". This method is just a shortcut instead of using AttributeExtensibleXMLObject.getUnknownAttributes().
      Specified by:
      getHideFromDiscovery in interface Endpoint
      Returns:
      if the HideFromDiscovery attribute has been set to true this method returns true, otherwise false
    • setHideFromDiscovery

      public void setHideFromDiscovery(boolean hideFlag)
      Assigns the HideFromDiscovery attribute. See Endpoint.getHideFromDiscovery().
      Specified by:
      setHideFromDiscovery in interface Endpoint
      Parameters:
      hideFlag - the "HideFromDiscovery" flag
    • getUnknownAttributes

      @Nonnull public AttributeMap getUnknownAttributes()
      Specified by:
      getUnknownAttributes in interface AttributeExtensibleXMLObject