org.opensaml.saml2.metadata.provider
Class DOMMetadataProvider
java.lang.Object
org.opensaml.saml2.metadata.provider.BaseMetadataProvider
org.opensaml.saml2.metadata.provider.AbstractMetadataProvider
org.opensaml.saml2.metadata.provider.AbstractObservableMetadataProvider
org.opensaml.saml2.metadata.provider.DOMMetadataProvider
- All Implemented Interfaces:
- MetadataProvider, ObservableMetadataProvider
public class DOMMetadataProvider
- extends AbstractObservableMetadataProvider
- implements MetadataProvider
A 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.
Method Summary |
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. |
Methods inherited from class org.opensaml.saml2.metadata.provider.AbstractMetadataProvider |
clearDescriptorIndex, doGetEntitiesDescriptor, doGetEntityDescriptor, doGetRole, doGetRole, filterMetadata, getEntitiesDescriptor, getEntitiesDescriptorByName, getEntityDescriptor, getEntityDescriptorById, getEntityDescriptorById, getMetadata, getParserPool, getRole, getRole, initialize, isFailFastInitialization, isInitialized, isValid, releaseMetadataDOM, setFailFastInitialization, setInitialized, setParserPool, unmarshallMetadata |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private final org.slf4j.Logger log
- Class logger.
metadataElement
private Element metadataElement
- Root metadata element exposed by this provider.
metadata
private XMLObject metadata
- Unmarshalled metadata.
DOMMetadataProvider
public DOMMetadataProvider(Element mdElement)
- Constructor.
- Parameters:
mdElement
- the metadata element
destroy
public void destroy()
- Destroys the metadata provider and frees any resources current held by it. Default method is a no-op.
- Overrides:
destroy
in class AbstractObservableMetadataProvider
doGetMetadata
protected XMLObject doGetMetadata()
throws MetadataProviderException
- Gets the metadata currently held by the provider. This method should not check if the provider is initialized, if
the metadata is valid, etc. All of this is done by the invoker of this method.
- Specified by:
doGetMetadata
in class AbstractMetadataProvider
- Returns:
- the metadata currently held by this provider or null if no metadata is available
- Throws:
MetadataProviderException
- thrown if there is a problem retrieving the metadata
doInitialization
protected void doInitialization()
throws MetadataProviderException
- Subclasses should override this method to perform any initialization logic necessary. Default implementation is a
no-op.
- Overrides:
doInitialization
in class AbstractMetadataProvider
- Throws:
MetadataProviderException
- thrown if there is a problem initializing the provider
Copyright © 1999-2012. All Rights Reserved.