public class MetadataLocationImpl extends AbstractSAMLObject implements MetadataLocation
MetadataLocation
.DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, LOCATION_ATTR_NAME, TYPE_LOCAL_NAME, TYPE_NAME
Constructor and Description |
---|
MetadataLocationImpl(String namespaceURI,
String elementLocalName,
String namespacePrefix)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<Endpoint> |
getEndpoints()
Returns the list of endpoints.
|
KeyInfo |
getKeyInfo()
Returns the key info element to be used when verifying downloaded metadata.
|
String |
getLocation()
Returns the location attribute, i.e., the URL from where the metadata endpoint(s) can be obtained.
|
List<XMLObject> |
getOrderedChildren() |
boolean |
getSuspend()
For the Swedish eIDAS configuration, a flag,
Suspend is used to indicate whether an endpoint has been
suspended. |
AttributeMap |
getUnknownAttributes() |
void |
setKeyInfo(KeyInfo keyInfo)
Assigns the key info element to be used when verifying downloaded metadata.
|
void |
setLocation(String location)
Assigns the location attribute, i.e., the URL from where the metadata endpoint(s) can be obtained.
|
void |
setSuspend(boolean suspendFlag)
Assigns the
Suspend flag. |
void |
setX509Certificate(X509Certificate certificate)
Utility method that creates a
KeyInfo object and assigns the supplied certificate to it before invoking
MetadataLocation.setKeyInfo(KeyInfo) . |
equals, hashCode, prepareForAssignment
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
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
public MetadataLocationImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
namespaceURI
- the namespace the element is inelementLocalName
- the local name of the XML element this Object representsnamespacePrefix
- the prefix for the given namespacepublic List<XMLObject> getOrderedChildren()
getOrderedChildren
in interface XMLObject
public List<Endpoint> getEndpoints()
getEndpoints
in interface MetadataLocation
public KeyInfo getKeyInfo()
getKeyInfo
in interface MetadataLocation
null
public void setKeyInfo(KeyInfo keyInfo)
setKeyInfo
in interface MetadataLocation
keyInfo
- key info elementMetadataLocation.setX509Certificate(X509Certificate)
public void setX509Certificate(X509Certificate certificate)
KeyInfo
object and assigns the supplied certificate to it before invoking
MetadataLocation.setKeyInfo(KeyInfo)
.setX509Certificate
in interface MetadataLocation
certificate
- the X.509 certificate to assign to a key infopublic String getLocation()
getLocation
in interface MetadataLocation
public void setLocation(String location)
setLocation
in interface MetadataLocation
location
- URLpublic boolean getSuspend()
Suspend
is used to indicate whether an endpoint has been
suspended. This method is just a short cut instead of using AttributeExtensibleXMLObject.getUnknownAttributes()
.getSuspend
in interface MetadataLocation
Suspend
flag has been set to true
this method returns true
, otherwise
false
public void setSuspend(boolean suspendFlag)
Suspend
flag. See MetadataLocation.getSuspend()
.setSuspend
in interface MetadataLocation
suspendFlag
- the suspend flagpublic AttributeMap getUnknownAttributes()
getUnknownAttributes
in interface AttributeExtensibleXMLObject
Copyright © 2018 Litsec AB. All rights reserved.