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 protected
EndpointImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getEndpointType()
Returns the endpoint type URI.String
getEntityID()
Returns the entityID for the endpoint.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".List<XMLObject>
getOrderedChildren()
boolean
getSuspend()
For the Swedish eIDAS configuration, theSuspend
attribute is used to indicate whether an endpoint has been suspended.AttributeMap
getUnknownAttributes()
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, 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:
getOrderedChildren
in interfaceXMLObject
-
getEndpointType
public String getEndpointType()
Returns the endpoint type URI.- Specified by:
getEndpointType
in interfaceEndpoint
- Returns:
- the endpoint type
-
setEndpointType
public void setEndpointType(String endpointType)
Assigns the endpoint type URI.- Specified by:
setEndpointType
in interfaceEndpoint
- Parameters:
endpointType
- the endpoint type
-
getEntityID
public String getEntityID()
Returns the entityID for the endpoint.- Specified by:
getEntityID
in interfaceEndpoint
- Returns:
- the entityID
-
setEntityID
public void setEntityID(String entityID)
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
public AttributeMap getUnknownAttributes()
- Specified by:
getUnknownAttributes
in interfaceAttributeExtensibleXMLObject
-
-