org.opensaml.saml2.metadata.provider
public class DOMMetadataProvider extends AbstractObservableMetadataProvider implements MetadataProvider
MetadataProvider
implementation that retrieves metadata from a DOM Element
as
supplied by the user.
It is the responsibility of the caller to re-initialize, via AbstractMetadataProvider.initialize()
, if any properties of this
provider are changed.ObservableMetadataProvider.Observer
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Class logger.
|
private XMLObject |
metadata
Unmarshalled metadata.
|
private Element |
metadataElement
Root metadata element exposed by this provider.
|
unmarshallerFactory
Constructor and Description |
---|
DOMMetadataProvider(Element mdElement)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the metadata provider and frees any resources current held by it.
|
protected XMLObject |
doGetMetadata()
Gets the metadata currently held by the provider.
|
protected void |
doInitialization()
Subclasses should override this method to perform any initialization logic necessary.
|
emitChangeEvent, getObservers
clearDescriptorIndex, doGetEntitiesDescriptor, doGetEntityDescriptor, doGetRole, doGetRole, filterMetadata, getEntitiesDescriptor, getEntitiesDescriptorByName, getEntityDescriptor, getEntityDescriptorById, getEntityDescriptorById, getMetadata, getParserPool, getRole, getRole, initialize, isFailFastInitialization, isInitialized, isValid, releaseMetadataDOM, setFailFastInitialization, setInitialized, setParserPool, unmarshallMetadata
getMetadataFilter, requireValidMetadata, setMetadataFilter, setRequireValidMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntitiesDescriptor, getEntityDescriptor, getMetadata, getMetadataFilter, getRole, getRole, requireValidMetadata, setMetadataFilter, setRequireValidMetadata
private final org.slf4j.Logger log
private Element metadataElement
private XMLObject metadata
public DOMMetadataProvider(Element mdElement)
mdElement
- the metadata elementpublic void destroy()
destroy
in class AbstractObservableMetadataProvider
protected XMLObject doGetMetadata() throws MetadataProviderException
doGetMetadata
in class AbstractMetadataProvider
MetadataProviderException
- thrown if there is a problem retrieving the metadataprotected void doInitialization() throws MetadataProviderException
doInitialization
in class AbstractMetadataProvider
MetadataProviderException
- thrown if there is a problem initializing the providerCopyright © 1999-2013 JBoss by Red Hat. All Rights Reserved.