|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.saml2.metadata.provider.BaseMetadataProvider
org.opensaml.saml2.metadata.provider.AbstractMetadataProvider
org.opensaml.saml2.metadata.provider.AbstractObservableMetadataProvider
org.opensaml.saml2.metadata.provider.AbstractReloadingMetadataProvider
org.opensaml.saml2.metadata.provider.ResourceBackedMetadataProvider
public class ResourceBackedMetadataProvider
A metadata provider that reads metadata from a {#link Resource.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.opensaml.saml2.metadata.provider.ObservableMetadataProvider |
|---|
ObservableMetadataProvider.Observer |
| Field Summary |
|---|
| Fields inherited from class org.opensaml.saml2.metadata.provider.BaseMetadataProvider |
|---|
unmarshallerFactory |
| Constructor Summary | |
|---|---|
ResourceBackedMetadataProvider(org.opensaml.util.resource.Resource resource,
java.util.Timer timer,
long maxMetadataCacheDuration)
Deprecated. |
|
ResourceBackedMetadataProvider(java.util.Timer timer,
org.opensaml.util.resource.Resource resource)
Constructor. |
|
| Method Summary | |
|---|---|
protected byte[] |
fetchMetadata()
Fetches metadata from a source. |
protected java.lang.String |
getMetadataIdentifier()
Gets an identifier which may be used to distinguish this metadata in logging statements. |
boolean |
maintainExpiredMetadata()
Deprecated. use BaseMetadataProvider.requireValidMetadata() instead |
void |
setMaintainExpiredMetadata(boolean maintain)
Deprecated. use BaseMetadataProvider.setRequireValidMetadata(boolean) instead |
| Methods inherited from class org.opensaml.saml2.metadata.provider.AbstractReloadingMetadataProvider |
|---|
computeNextRefreshDelay, doGetMetadata, doInitialization, getExpirationTime, getLastRefresh, getLastUpdate, getMaxRefreshDelay, getMinRefreshDelay, getNextRefresh, getRefreshDelayFactor, inputstreamToByteArray, postProcessMetadata, processCachedMetadata, processNewMetadata, processNonExpiredMetadata, processPreExpiredMetadata, refresh, setMaxRefreshDelay, setMinRefreshDelay, setRefreshDelayFactor, unmarshallMetadata |
| Methods inherited from class org.opensaml.saml2.metadata.provider.AbstractObservableMetadataProvider |
|---|
emitChangeEvent, getObservers |
| 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 org.opensaml.saml2.metadata.provider.BaseMetadataProvider |
|---|
getMetadataFilter, requireValidMetadata, setMetadataFilter, setRequireValidMetadata |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opensaml.saml2.metadata.provider.MetadataProvider |
|---|
getEntitiesDescriptor, getEntityDescriptor, getMetadata, getMetadataFilter, getRole, getRole, requireValidMetadata, setMetadataFilter, setRequireValidMetadata |
| Constructor Detail |
|---|
public ResourceBackedMetadataProvider(org.opensaml.util.resource.Resource resource,
java.util.Timer timer,
long maxMetadataCacheDuration)
throws MetadataProviderException
resource - resource from which to read the metadata file.timer - task timer used to schedule metadata refresh tasksmaxMetadataCacheDuration - maximum amount of time, in milliseconds, that metadata may be cached before being
re-read
MetadataProviderException - thrown if there is a problem retrieving information about the resource
public ResourceBackedMetadataProvider(java.util.Timer timer,
org.opensaml.util.resource.Resource resource)
throws MetadataProviderException
resource - resource from which to read the metadata file.timer - task timer used to schedule metadata refresh tasks
MetadataProviderException - thrown if there is a problem retrieving information about the resource| Method Detail |
|---|
public boolean maintainExpiredMetadata()
BaseMetadataProvider.requireValidMetadata() instead
public void setMaintainExpiredMetadata(boolean maintain)
BaseMetadataProvider.setRequireValidMetadata(boolean) instead
maintain - whether cached metadata should be discarded if it expires and can not be refreshed.protected java.lang.String getMetadataIdentifier()
getMetadataIdentifier in class AbstractReloadingMetadataProvider
protected byte[] fetchMetadata()
throws MetadataProviderException
fetchMetadata in class AbstractReloadingMetadataProviderMetadataProviderException - thrown if there is a problem fetching the metadata
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||