Package net.shibboleth.oidc.metadata
Class ProviderMetadataProviderContainer
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.shared.spring.service.AbstractServiceableComponent<ProviderMetadataResolver>
net.shibboleth.oidc.metadata.ProviderMetadataProviderContainer
- All Implemented Interfaces:
AutoCloseable,Comparable<ProviderMetadataProviderContainer>,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,ServiceableComponent<ProviderMetadataResolver>,Aware,ApplicationContextAware
public class ProviderMetadataProviderContainer
extends AbstractServiceableComponent<ProviderMetadataResolver>
implements Comparable<ProviderMetadataProviderContainer>
This class is a sortable container of
ProviderMetadataResolvers, wrapped into a serviceable component.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private ProviderMetadataResolverThe embedded resolver.private IntegerThe key by which we sort the provider.private static intIf we autogenerate a sort key it comes from this count. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected voidboolean.Return what we are build around.inthashCode()voidsetEmbeddedResolver(ProviderMetadataResolver theResolver) Set theProviderMetadataResolverto embed.voidsetSortKey(int key) Set the sort key.Methods inherited from class net.shibboleth.shared.spring.service.AbstractServiceableComponent
close, doDestroy, getApplicationContext, pinComponent, setApplicationContext, unloadComponent, unpinComponentMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
sortKeyValue
private static int sortKeyValueIf we autogenerate a sort key it comes from this count. -
log
@Nonnull private final org.slf4j.Logger logClass logger. -
resolver
The embedded resolver. -
sortKey
The key by which we sort the provider.
-
-
Constructor Details
-
ProviderMetadataProviderContainer
public ProviderMetadataProviderContainer()
-
-
Method Details
-
setSortKey
public void setSortKey(int key) Set the sort key.- Parameters:
key- what to set
-
setEmbeddedResolver
Set theProviderMetadataResolverto embed.- Parameters:
theResolver- TheProviderMetadataResolverto embed.
-
getEmbeddedResolver
Return what we are build around. Used for testing.- Returns:
- the parameter we got as a constructor
-
doInitialize
- Overrides:
doInitializein classAbstractServiceableComponent<ProviderMetadataResolver>- Throws:
ComponentInitializationException
-
getComponent
- Specified by:
getComponentin interfaceServiceableComponent<ProviderMetadataResolver>- Specified by:
getComponentin classAbstractServiceableComponent<ProviderMetadataResolver>
-
compareTo
- Specified by:
compareToin interfaceComparable<ProviderMetadataProviderContainer>
-
equals
. We are within a spring context and so equality can be determined by ID, however we also test by sortKey just in case. -
hashCode
public int hashCode()
-