Class EndpointImpl
- java.lang.Object
-
- org.opensaml.core.xml.AbstractXMLObject
-
- se.litsec.eidas.opensaml.metadata.impl.EndpointImpl
-
- All Implemented Interfaces:
AttributeExtensibleXMLObject,XMLObject,SAMLObject,Endpoint
public class EndpointImpl extends AbstractXMLObject implements Endpoint
Implementation class forEndpoint.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Field Summary
-
Fields inherited from interface se.litsec.eidas.opensaml.metadata.Endpoint
CONNECTOR_ENDPOINT_TYPE, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ENDPOINT_TYPE_ATTR_NAME, ENTITY_ID_ATTR_NAME, PROXY_SERVICE_ENDPOINT_TYPE, TYPE_LOCAL_NAME, TYPE_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEndpointImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEndpointType()Returns the endpoint type URI.StringgetEntityID()Returns the entityID for the endpoint.booleangetHideFromDiscovery()For the Swedish eIDAS configuration, theHideFromDiscoveryattribute is used to indicate whether the proxy service within an endpoint should be hidden from the connector "select country view".List<XMLObject>getOrderedChildren()booleangetSuspend()For the Swedish eIDAS configuration, theSuspendattribute is used to indicate whether an endpoint has been suspended.AttributeMapgetUnknownAttributes()voidsetEndpointType(String endpointType)Assigns the endpoint type URI.voidsetEntityID(String entityID)Assigns the entityID for the endpoint.voidsetHideFromDiscovery(boolean hideFlag)Assigns theHideFromDiscoveryattribute.voidsetSuspend(boolean suspendFlag)Assigns theSuspendattribute.-
Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
-
-
-
Constructor Detail
-
EndpointImpl
protected EndpointImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
Constructor.- Parameters:
namespaceURI- the namespace the element is inelementLocalName- the local name of the XML element this Object representsnamespacePrefix- the prefix for the given namespace
-
-
Method Detail
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildrenin interfaceXMLObject
-
getEndpointType
public String getEndpointType()
Returns the endpoint type URI.- Specified by:
getEndpointTypein interfaceEndpoint- Returns:
- the endpoint type
-
setEndpointType
public void setEndpointType(String endpointType)
Assigns the endpoint type URI.- Specified by:
setEndpointTypein interfaceEndpoint- Parameters:
endpointType- the endpoint type
-
getEntityID
public String getEntityID()
Returns the entityID for the endpoint.- Specified by:
getEntityIDin interfaceEndpoint- Returns:
- the entityID
-
setEntityID
public void setEntityID(String entityID)
Assigns the entityID for the endpoint.- Specified by:
setEntityIDin interfaceEndpoint- Parameters:
entityID- the entityID
-
getSuspend
public boolean getSuspend()
For the Swedish eIDAS configuration, theSuspendattribute is used to indicate whether an endpoint has been suspended. This method is just a shortcut instead of usingAttributeExtensibleXMLObject.getUnknownAttributes().- Specified by:
getSuspendin interfaceEndpoint- Returns:
- if the
Suspendattribute has been set totruethis method returnstrue, otherwisefalse
-
setSuspend
public void setSuspend(boolean suspendFlag)
Assigns theSuspendattribute. SeeEndpoint.getSuspend().- Specified by:
setSuspendin interfaceEndpoint- Parameters:
suspendFlag- the suspend flag
-
getHideFromDiscovery
public boolean getHideFromDiscovery()
For the Swedish eIDAS configuration, theHideFromDiscoveryattribute 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 usingAttributeExtensibleXMLObject.getUnknownAttributes().- Specified by:
getHideFromDiscoveryin interfaceEndpoint- Returns:
- if the
HideFromDiscoveryattribute has been set totruethis method returnstrue, otherwisefalse
-
setHideFromDiscovery
public void setHideFromDiscovery(boolean hideFlag)
Assigns theHideFromDiscoveryattribute. SeeEndpoint.getHideFromDiscovery().- Specified by:
setHideFromDiscoveryin interfaceEndpoint- Parameters:
hideFlag- the "HideFromDiscovery" flag
-
getUnknownAttributes
public AttributeMap getUnknownAttributes()
- Specified by:
getUnknownAttributesin interfaceAttributeExtensibleXMLObject
-
-