public class CachingMetadataManager extends MetadataManager
The class is synchronized using the superclass ReentrantReadWriteLock.
keyManager, log
Constructor and Description |
---|
CachingMetadataManager(List<org.opensaml.saml2.metadata.provider.MetadataProvider> providers)
Creates caching metadata provider.
|
Modifier and Type | Method and Description |
---|---|
org.opensaml.saml2.metadata.EntityDescriptor |
getEntityDescriptor(byte[] hash)
Locates entity descriptor whose entityId SHA-1 hash equals the one in the parameter.
|
org.opensaml.saml2.metadata.EntityDescriptor |
getEntityDescriptor(String entityID)
In case entity exists in the cache it is returned, otherwise mechanism from the super class is used to locate it.
|
String |
getEntityIdForAlias(String entityAlias)
Locates name of the entity for the given alias.
|
ExtendedMetadata |
getExtendedMetadata(String entityID)
In case entity exists in the cache it is returned, otherwise mechanism from the super class is used to locate it.
|
void |
refreshMetadata()
Guaranteed to be called by the superclass as part of the initialization.
|
addMetadataProvider, afterPropertiesSet, destroy, getAvailableProviders, getDefaultExtendedMetadata, getDefaultIDP, getHostedSPName, getIDPEntityNames, getPKIXResolver, getProviders, getSPEntityNames, getTrustEngine, initializeProvider, initializeProviderData, initializeProviderFilters, isIDPValid, isRefreshRequired, isSPValid, parseProvider, removeMetadataProvider, setDefaultExtendedMetadata, setDefaultIDP, setHostedSPName, setKeyManager, setProviders, setRefreshCheckInterval, setRefreshRequired, setTLSConfigurer
doAddMetadataProvider, emitChangeEvent, getEntitiesDescriptor, getMetadata, getMetadataFilter, getObservers, getRole, getRole, setMetadataFilter, setRequireValidMetadata
requireValidMetadata
public CachingMetadataManager(List<org.opensaml.saml2.metadata.provider.MetadataProvider> providers) throws org.opensaml.saml2.metadata.provider.MetadataProviderException
providers
- providers to includeorg.opensaml.saml2.metadata.provider.MetadataProviderException
- error initializingpublic void refreshMetadata()
refreshMetadata
in class MetadataManager
public String getEntityIdForAlias(String entityAlias) throws org.opensaml.saml2.metadata.provider.MetadataProviderException
getEntityIdForAlias
in class MetadataManager
entityAlias
- to load entityId fororg.opensaml.saml2.metadata.provider.MetadataProviderException
- provider in case alias is not unique or missingpublic org.opensaml.saml2.metadata.EntityDescriptor getEntityDescriptor(String entityID) throws org.opensaml.saml2.metadata.provider.MetadataProviderException
getEntityDescriptor
in interface org.opensaml.saml2.metadata.provider.MetadataProvider
getEntityDescriptor
in class org.opensaml.saml2.metadata.provider.ChainingMetadataProvider
entityID
- id to load descriptor fororg.opensaml.saml2.metadata.provider.MetadataProviderException
- providerpublic org.opensaml.saml2.metadata.EntityDescriptor getEntityDescriptor(byte[] hash) throws org.opensaml.saml2.metadata.provider.MetadataProviderException
getEntityDescriptor
in class MetadataManager
hash
- hash of the entity descriptororg.opensaml.saml2.metadata.provider.MetadataProviderException
- in case metadata required for processing can't be loadedpublic ExtendedMetadata getExtendedMetadata(String entityID) throws org.opensaml.saml2.metadata.provider.MetadataProviderException
getExtendedMetadata
in interface ExtendedMetadataProvider
getExtendedMetadata
in class MetadataManager
entityID
- id to load extended metadata fororg.opensaml.saml2.metadata.provider.MetadataProviderException
- provider