@ThreadSafe public class MockAttributeDefinition extends net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition
| Modifier and Type | Field and Description |
|---|---|
private int |
destroyCount
Number of times
AbstractInitializableComponent.destroy() was called. |
private int |
initializeCount
Number of times
AbstractInitializableComponent.initialize() was called. |
private net.shibboleth.idp.attribute.resolver.ResolutionException |
resolutionException
Exception thrown by resolution.
|
private IdPAttribute |
staticValue
Static value returned by this definition.
|
| Constructor and Description |
|---|
MockAttributeDefinition(String id,
IdPAttribute value)
Constructor.
|
MockAttributeDefinition(String id,
net.shibboleth.idp.attribute.resolver.ResolutionException exception)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected IdPAttribute |
doAttributeDefinitionResolve(net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext resolutionContext,
net.shibboleth.idp.attribute.resolver.context.AttributeResolverWorkContext workContext) |
void |
doDestroy() |
void |
doInitialize() |
int |
getDestroyCount()
Gets the number of times
AbstractInitializableComponent.destroy() was called. |
int |
getInitializeCount()
Gets the number of times
AbstractInitializableComponent.initialize() was called. |
boolean |
isInitialized() |
doResolve, getAttributeEncoders, getDisplayDescriptions, getDisplayNames, getLogPrefix, getSourceAttributeId, isDependencyOnly, setAttributeEncoders, setDependencyOnly, setDisplayDescriptions, setDisplayNames, setSourceAttributeIdequals, getActivationCondition, getDependencies, getProfileContextStrategy, hashCode, isPropagateResolutionExceptions, resolve, setActivationCondition, setDependencies, setProfileContextStrategy, setPropagateResolutionExceptionssetIdgetIddestroy, initialize, isDestroyedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetActivationCondition, getDependencies, isPropagateResolutionExceptions, resolveinitializedestroy, isDestroyedgetIdprivate int destroyCount
AbstractInitializableComponent.destroy() was called.private int initializeCount
AbstractInitializableComponent.initialize() was called.private IdPAttribute staticValue
private net.shibboleth.idp.attribute.resolver.ResolutionException resolutionException
public MockAttributeDefinition(String id, IdPAttribute value) throws ComponentInitializationException
id - unique ID of this attribute definitionvalue - static value returned by this definitionComponentInitializationExceptionpublic MockAttributeDefinition(String id, net.shibboleth.idp.attribute.resolver.ResolutionException exception)
id - id of the data connectorexception - exception thrown by resolution@Nullable protected IdPAttribute doAttributeDefinitionResolve(@Nonnull net.shibboleth.idp.attribute.resolver.context.AttributeResolutionContext resolutionContext, @Nonnull net.shibboleth.idp.attribute.resolver.context.AttributeResolverWorkContext workContext) throws net.shibboleth.idp.attribute.resolver.ResolutionException
public void doDestroy()
doDestroy in class net.shibboleth.idp.attribute.resolver.AbstractResolverPlugin<IdPAttribute>public boolean isInitialized()
isInitialized in interface InitializableComponentisInitialized in class AbstractInitializableComponentpublic void doInitialize()
throws ComponentInitializationException
doInitialize in class net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinitionComponentInitializationExceptionpublic int getDestroyCount()
AbstractInitializableComponent.destroy() was called.AbstractInitializableComponent.destroy() was calledpublic int getInitializeCount()
AbstractInitializableComponent.initialize() was called.AbstractInitializableComponent.initialize() was calledCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.