Class PluginState
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.installer.plugin.impl.PluginState
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent
A class which will answer questions about a plugin state as of now
(by querying the information Resources for the current published state).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hc.client5.http.classic.HttpClientThe HttpClient to use.private HttpClientSecurityParametersThe Injected security parameters.private final org.slf4j.LoggerClass logger.private InstallableComponentInfoMy Plugin Info.private final InstallableComponentVersionThe version of this plugin.private final IdPPluginThe plug in in question.If overridden these are the urls to us for update (rather than what the plguin asks for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void/**GetsHttpClientsecurity parameters, if any.get our PluginInfo.private boolean(try to) populate the information about this plugin.voidsetHttpClient(org.apache.hc.client5.http.classic.HttpClient what) Set the client.voidSetsHttpClientsecurity parameters to use.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
plugin
The plug in in question. -
myPluginInfo
My Plugin Info. -
myPluginVersion
The version of this plugin. -
log
@Nonnull private final org.slf4j.Logger logClass logger. -
httpClient
The HttpClient to use. -
httpClientSecurityParameters
The Injected security parameters. -
updateOverrideURLs
If overridden these are the urls to us for update (rather than what the plguin asks for.
-
-
Constructor Details
-
PluginState
Constructor.- Parameters:
description- what we are talking about.updateOverrides- override for update locations. An empty list signifies no overrride.
-
-
Method Details
-
getPluginInfo
get our PluginInfo.- Returns:
- our PluginInfo.
-
populate
(try to) populate the information about this plugin.- Parameters:
propertyResource- where to start looking- Returns:
- whether it worked
-
setHttpClient
public void setHttpClient(@Nonnull org.apache.hc.client5.http.classic.HttpClient what) Set the client.- Parameters:
what- what to set.
-
getHttpClientSecurityParameters
GetsHttpClientsecurity parameters, if any.- Returns:
- HTTP client security parameters to use
-
setHttpClientSecurityParameters
SetsHttpClientsecurity parameters to use.- Parameters:
params- security parameters
-
doInitialize
/**- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-