Spring Security SAML

org.springframework.security.saml.metadata
Class MetadataMemoryProvider

java.lang.Object
  extended by org.opensaml.saml2.metadata.provider.BaseMetadataProvider
      extended by org.opensaml.saml2.metadata.provider.AbstractMetadataProvider
          extended by org.springframework.security.saml.metadata.MetadataMemoryProvider
All Implemented Interfaces:
org.opensaml.saml2.metadata.provider.MetadataProvider

public class MetadataMemoryProvider
extends org.opensaml.saml2.metadata.provider.AbstractMetadataProvider

Class implements simple metadata provider which retrieves EntityDescriptor from preconfigured object.

Author:
Vladimir Sch�fer

Field Summary
 
Fields inherited from class org.opensaml.saml2.metadata.provider.BaseMetadataProvider
unmarshallerFactory
 
Constructor Summary
MetadataMemoryProvider(org.opensaml.saml2.metadata.EntityDescriptor descriptor)
          Constructor settings descriptor in parameter as the only entity available from this provider.
 
Method Summary
protected  org.opensaml.xml.XMLObject doGetMetadata()
           
 org.opensaml.xml.XMLObject getMetadata()
           
 
Methods inherited from class org.opensaml.saml2.metadata.provider.AbstractMetadataProvider
clearDescriptorIndex, destroy, doGetEntitiesDescriptor, doGetEntityDescriptor, doGetRole, doGetRole, doInitialization, filterMetadata, getEntitiesDescriptor, getEntitiesDescriptorByName, getEntityDescriptor, getEntityDescriptorById, getEntityDescriptorById, 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
 

Constructor Detail

MetadataMemoryProvider

public MetadataMemoryProvider(org.opensaml.saml2.metadata.EntityDescriptor descriptor)
Constructor settings descriptor in parameter as the only entity available from this provider.

Parameters:
descriptor - descriptor to use
Method Detail

getMetadata

public org.opensaml.xml.XMLObject getMetadata()
Specified by:
getMetadata in interface org.opensaml.saml2.metadata.provider.MetadataProvider
Overrides:
getMetadata in class org.opensaml.saml2.metadata.provider.AbstractMetadataProvider
Returns:
preconfigured entity descriptor

doGetMetadata

protected org.opensaml.xml.XMLObject doGetMetadata()
                                            throws org.opensaml.saml2.metadata.provider.MetadataProviderException
Specified by:
doGetMetadata in class org.opensaml.saml2.metadata.provider.AbstractMetadataProvider
Throws:
org.opensaml.saml2.metadata.provider.MetadataProviderException

Spring Security SAML