org.picketlink.idm.spi.ContextInitializer Maven / Gradle / Ivy
package org.picketlink.idm.spi;
/**
* Context initializers can be used populate an specific {@link org.picketlink.idm.spi.IdentityContext} instance
* with additional state.
*
* Usually, this is useful when a specific {@link org.picketlink.idm.spi.IdentityStore} requires a specific resource or state
* in order to perform an identity operation.
*
* They can be provided at configuration time using the {@link org.picketlink.idm.config.IdentityStoreConfigurationBuilder#addContextInitializer(ContextInitializer)}.
*
* @author Shane Bryzak
*
*/
public interface ContextInitializer {
/**
* This method is invoked once and right after the {@link org.picketlink.idm.spi.IdentityContext} is created.
*
* @param context
* @param store
*/
void initContextForStore(IdentityContext context, IdentityStore> store);
}