Interface MetadataLocation
- All Superinterfaces:
AttributeExtensibleXMLObject, SAMLObject, XMLObject
- All Known Implementing Classes:
MetadataLocationImpl
Definition of the
MetadataLocation type.
The following schema fragment defines the MetadataLocationType complex type:
<xs:complexType name="MetadataLocationType">
<xs:sequence>
<xs:element name="Endpoint" type="ser:MsEndpointType" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
A list of eIDAS endpoints (nodes) for the current location.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="ds:KeyInfo" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
Key material (usually a certificate) that should be used to verify the signature
of the downloaded metadata for this metadata location.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="Location" type="xs:anyURI" use="required">
<xs:annotation>
<xs:documentation>
The URL from where the metadata for the endpoint(s) can be obtained.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:anyAttribute namespace="##any" processContents="lax" />
</xs:complexType>
- Author:
- Martin Lindström
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddX509Certificate(X509Certificate certificate) Utility method that creates aKeyInfoobject and assigns the supplied certificate to it before adding it togetKeyInfos().Returns the list of endpoints.default KeyInfoDeprecated, for removal: This API element is subject to removal in a future version.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.default voidsetKeyInfo(KeyInfo keyInfo) Deprecated, for removal: This API element is subject to removal in a future version.UsegetKeyInfos()instead and add the element to the live listvoidsetLocation(String location) Assigns the location attribute, i.e., the URL from where the metadata endpoint(s) can be obtained.voidsetSuspend(boolean suspendFlag) Assigns theSuspendflag.default voidsetX509Certificate(X509Certificate certificate) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface AttributeExtensibleXMLObject
getUnknownAttributesMethods inherited from interface XMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
DEFAULT_ELEMENT_LOCAL_NAME
-
DEFAULT_ELEMENT_NAME
Default element name. -
TYPE_LOCAL_NAME
-
TYPE_NAME
QName of the XSI type. -
LOCATION_ATTR_NAME
-
-
Method Details
-
getEndpoints
-
getKeyInfo
Deprecated, for removal: This API element is subject to removal in a future version.UsegetKeyInfos()insteadReturns the key info element to be used when verifying downloaded metadata.- Returns:
- key info element, or
null
-
getKeyInfos
-
setKeyInfo
Deprecated, for removal: This API element is subject to removal in a future version.UsegetKeyInfos()instead and add the element to the live listAssigns the key info element to be used when verifying downloaded metadata.- Parameters:
keyInfo- key info element- See Also:
-
setX509Certificate
@Deprecated(since="3.0.1", forRemoval=true) default void setX509Certificate(X509Certificate certificate) Deprecated, for removal: This API element is subject to removal in a future version.Utility method that creates aKeyInfoobject and assigns the supplied certificate to it before invokingsetKeyInfo(KeyInfo).- Parameters:
certificate- the X.509 certificate to assign to a key info
-
addX509Certificate
Utility method that creates aKeyInfoobject and assigns the supplied certificate to it before adding it togetKeyInfos().- Parameters:
certificate- certificate the X.509 certificate to assign to a key info
-
getLocation
String getLocation()Returns the location attribute, i.e., the URL from where the metadata endpoint(s) can be obtained.- Returns:
- URL
-
setLocation
Assigns the location attribute, i.e., the URL from where the metadata endpoint(s) can be obtained.- Parameters:
location- URL
-
getSuspend
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().- Returns:
- if the
Suspendflag has been set totruethis method returnstrue, otherwisefalse
-
setSuspend
void setSuspend(boolean suspendFlag) Assigns theSuspendflag. SeegetSuspend().- Parameters:
suspendFlag- the suspend flag
-
getKeyInfos()instead