PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.core.saml.v2.metadata.store
Class FileBasedMetadataConfigurationStore

java.lang.Object
  extended by org.picketlink.identity.federation.core.saml.v2.metadata.store.FileBasedMetadataConfigurationStore
All Implemented Interfaces:
IMetadataConfigurationStore

public class FileBasedMetadataConfigurationStore
extends Object
implements IMetadataConfigurationStore

File based metadata store that uses the ${user.home}/jbid-store location to persist the data

Since:
Apr 27, 2009
Author:
Anil.Saldhana@redhat.com

Constructor Summary
FileBasedMetadataConfigurationStore()
           
 
Method Summary
 void bootstrap()
           Perform any bootstrap or initialization the store needs.
 void cleanup()
           Perform final cleanup if needed.
 void delete(String id)
          Delete the descriptor from the external data sink
 void deleteTrustedProviders(String id)
          Delete the trusted providers from the external data sink
 Set<String> getIdentityProviderID()
          Get a set of the identity provider ID, which can individually be drilled down to get additional trusted provider information
 Set<String> getServiceProviderID()
          Get a set of the service provider ID, which can individually be drilled down to get additional trusted provider information
 EntityDescriptorType load(String id)
          Load the descriptor from the external data sink
 Map<String,String> loadTrustedProviders(String id)
          Get the Trusted Providers
 void persist(EntityDescriptorType entity, String id)
          Persist into an external sink (file system, ldap, db etc)
 void persistTrustedProviders(String id, Map<String,String> trusted)
          Persist the map of trusted providers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBasedMetadataConfigurationStore

public FileBasedMetadataConfigurationStore()
Method Detail

bootstrap

public void bootstrap()
Description copied from interface: IMetadataConfigurationStore

Perform any bootstrap or initialization the store needs.

Specified by:
bootstrap in interface IMetadataConfigurationStore
See Also:
IMetadataConfigurationStore#bootstrap()}

getIdentityProviderID

public Set<String> getIdentityProviderID()
Description copied from interface: IMetadataConfigurationStore
Get a set of the identity provider ID, which can individually be drilled down to get additional trusted provider information

Specified by:
getIdentityProviderID in interface IMetadataConfigurationStore
Returns:
See Also:
IMetadataConfigurationStore.getIdentityProviderID()

getServiceProviderID

public Set<String> getServiceProviderID()
Description copied from interface: IMetadataConfigurationStore
Get a set of the service provider ID, which can individually be drilled down to get additional trusted provider information

Specified by:
getServiceProviderID in interface IMetadataConfigurationStore
Returns:
See Also:
IMetadataConfigurationStore.getServiceProviderID()

load

public EntityDescriptorType load(String id)
                          throws IOException
Description copied from interface: IMetadataConfigurationStore
Load the descriptor from the external data sink

Specified by:
load in interface IMetadataConfigurationStore
Parameters:
id - unique identifier used during persistence
Returns:
Throws:
IOException
See Also:
IMetadataConfigurationStore.load(String)

persist

public void persist(EntityDescriptorType entity,
                    String id)
             throws IOException
Description copied from interface: IMetadataConfigurationStore
Persist into an external sink (file system, ldap, db etc)

Specified by:
persist in interface IMetadataConfigurationStore
id - An unique identifier useful for retrieval
Throws:
IOException
See Also:
IMetadataConfigurationStore.persist(EntityDescriptorType, String)

delete

public void delete(String id)
Description copied from interface: IMetadataConfigurationStore
Delete the descriptor from the external data sink

Specified by:
delete in interface IMetadataConfigurationStore
See Also:
IMetadataConfigurationStore.delete(String)

loadTrustedProviders

public Map<String,String> loadTrustedProviders(String id)
                                        throws IOException,
                                               ClassNotFoundException
Description copied from interface: IMetadataConfigurationStore
Get the Trusted Providers

Specified by:
loadTrustedProviders in interface IMetadataConfigurationStore
Returns:
a map of name of provider, metadata urls
Throws:
IOException
ClassNotFoundException
See Also:
IMetadataConfigurationStore.loadTrustedProviders(String)

persistTrustedProviders

public void persistTrustedProviders(String id,
                                    Map<String,String> trusted)
                             throws IOException
Description copied from interface: IMetadataConfigurationStore
Persist the map of trusted providers

Specified by:
persistTrustedProviders in interface IMetadataConfigurationStore
Throws:
IOException
See Also:
IMetadataConfigurationStore#persistTrustedProviders(Map)

deleteTrustedProviders

public void deleteTrustedProviders(String id)
Description copied from interface: IMetadataConfigurationStore
Delete the trusted providers from the external data sink

Specified by:
deleteTrustedProviders in interface IMetadataConfigurationStore
See Also:
IMetadataConfigurationStore.deleteTrustedProviders(String)

cleanup

public void cleanup()
Description copied from interface: IMetadataConfigurationStore

Perform final cleanup if needed.

Specified by:
cleanup in interface IMetadataConfigurationStore
See Also:
IMetadataConfigurationStore#cleanup()}

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.