Class MetadataLocationImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
se.swedenconnect.opensaml.eidas.metadata.impl.MetadataLocationImpl
- All Implemented Interfaces:
AttributeExtensibleXMLObject,XMLObject,SAMLObject,MetadataLocation
Implementation class for
MetadataLocation.- Author:
- Martin Lindström
-
Field Summary
Fields inherited from interface se.swedenconnect.opensaml.eidas.metadata.MetadataLocation
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, LOCATION_ATTR_NAME, TYPE_LOCAL_NAME, TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionMetadataLocationImpl(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddX509Certificate(X509Certificate certificate) Utility method that creates aKeyInfoobject and assigns the supplied certificate to it before adding it toMetadataLocation.getKeyInfos().Returns the list of endpoints.Returns a list of the key info elements that may be used when verifying downloaded metadata.Returns the location attribute, i.e., the URL from where the metadata endpoint(s) can be obtained.booleanFor the Swedish eIDAS configuration, a flag,Suspendis used to indicate whether an endpoint has been suspended.voidsetLocation(String location) Assigns the location attribute, i.e., the URL from where the metadata endpoint(s) can be obtained.voidsetSuspend(boolean suspendFlag) Assigns theSuspendflag.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, setSchemaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.swedenconnect.opensaml.eidas.metadata.MetadataLocation
getKeyInfo, setKeyInfo, setX509CertificateMethods 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
-
MetadataLocationImpl
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:
getOrderedChildrenin interfaceXMLObject
-
getEndpoints
Returns the list of endpoints.- Specified by:
getEndpointsin interfaceMetadataLocation- Returns:
- endpoint list
-
getKeyInfos
Returns a list of the key info elements that may be used when verifying downloaded metadata.- Specified by:
getKeyInfosin interfaceMetadataLocation- Returns:
- a (possibly empty) list of key info elements
-
addX509Certificate
Utility method that creates aKeyInfoobject and assigns the supplied certificate to it before adding it toMetadataLocation.getKeyInfos().- Specified by:
addX509Certificatein interfaceMetadataLocation- Parameters:
certificate- certificate the X.509 certificate to assign to a key info
-
getLocation
Returns the location attribute, i.e., the URL from where the metadata endpoint(s) can be obtained.- Specified by:
getLocationin interfaceMetadataLocation- Returns:
- URL
-
setLocation
Assigns the location attribute, i.e., the URL from where the metadata endpoint(s) can be obtained.- Specified by:
setLocationin interfaceMetadataLocation- Parameters:
location- URL
-
getSuspend
public boolean getSuspend()For the Swedish eIDAS configuration, a flag,Suspendis used to indicate whether an endpoint has been suspended. This method is just a shortcut instead of usingAttributeExtensibleXMLObject.getUnknownAttributes().- Specified by:
getSuspendin interfaceMetadataLocation- Returns:
- if the
Suspendflag has been set totruethis method returnstrue, otherwisefalse
-
setSuspend
public void setSuspend(boolean suspendFlag) Assigns theSuspendflag. SeeMetadataLocation.getSuspend().- Specified by:
setSuspendin interfaceMetadataLocation- Parameters:
suspendFlag- the suspend flag
-
getUnknownAttributes
- Specified by:
getUnknownAttributesin interfaceAttributeExtensibleXMLObject
-