Class EndpointImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
se.swedenconnect.opensaml.eidas.metadata.impl.EndpointImpl
- All Implemented Interfaces:
org.opensaml.core.xml.AttributeExtensibleXMLObject
,org.opensaml.core.xml.XMLObject
,org.opensaml.saml.common.SAMLObject
,Endpoint
Implementation class for
Endpoint
.- Author:
- Martin Lindström
-
Field Summary
Fields inherited from interface se.swedenconnect.opensaml.eidas.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
ModifierConstructorDescriptionprotected
EndpointImpl
(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the endpoint type URI.Returns the entityID for the endpoint.boolean
For the Swedish eIDAS configuration, theHideFromDiscovery
attribute is used to indicate whether the proxy service within an endpoint should be hidden from the connector "select country view".List
<org.opensaml.core.xml.XMLObject> boolean
For the Swedish eIDAS configuration, theSuspend
attribute is used to indicate whether an endpoint has been suspended.org.opensaml.core.xml.util.AttributeMap
void
setEndpointType
(String endpointType) Assigns the endpoint type URI.void
setEntityID
(String entityID) Assigns the entityID for the endpoint.void
setHideFromDiscovery
(boolean hideFlag) Assigns theHideFromDiscovery
attribute.void
setSuspend
(boolean suspendFlag) Assigns theSuspend
attribute.Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, ensureDOM, 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, ensureDOM, 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 Details
-
EndpointImpl
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 Details
-
getOrderedChildren
- Specified by:
getOrderedChildren
in interfaceorg.opensaml.core.xml.XMLObject
-
getEndpointType
Returns the endpoint type URI.- Specified by:
getEndpointType
in interfaceEndpoint
- Returns:
- the endpoint type
-
setEndpointType
Assigns the endpoint type URI.- Specified by:
setEndpointType
in interfaceEndpoint
- Parameters:
endpointType
- the endpoint type
-
getEntityID
Returns the entityID for the endpoint.- Specified by:
getEntityID
in interfaceEndpoint
- Returns:
- the entityID
-
setEntityID
Assigns the entityID for the endpoint.- Specified by:
setEntityID
in interfaceEndpoint
- Parameters:
entityID
- the entityID
-
getSuspend
public boolean getSuspend()For the Swedish eIDAS configuration, theSuspend
attribute is used to indicate whether an endpoint has been suspended. This method is just a shortcut instead of usingAttributeExtensibleXMLObject.getUnknownAttributes()
.- Specified by:
getSuspend
in interfaceEndpoint
- Returns:
- if the
Suspend
attribute has been set totrue
this method returnstrue
, otherwisefalse
-
setSuspend
public void setSuspend(boolean suspendFlag) Assigns theSuspend
attribute. SeeEndpoint.getSuspend()
.- Specified by:
setSuspend
in interfaceEndpoint
- Parameters:
suspendFlag
- the suspend flag
-
getHideFromDiscovery
public boolean getHideFromDiscovery()For the Swedish eIDAS configuration, theHideFromDiscovery
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 usingAttributeExtensibleXMLObject.getUnknownAttributes()
.- Specified by:
getHideFromDiscovery
in interfaceEndpoint
- Returns:
- if the
HideFromDiscovery
attribute has been set totrue
this method returnstrue
, otherwisefalse
-
setHideFromDiscovery
public void setHideFromDiscovery(boolean hideFlag) Assigns theHideFromDiscovery
attribute. SeeEndpoint.getHideFromDiscovery()
.- Specified by:
setHideFromDiscovery
in interfaceEndpoint
- Parameters:
hideFlag
- the "HideFromDiscovery" flag
-
getUnknownAttributes
@Nonnull public org.opensaml.core.xml.util.AttributeMap getUnknownAttributes()- Specified by:
getUnknownAttributes
in interfaceorg.opensaml.core.xml.AttributeExtensibleXMLObject
-