Class CredentialsListFactory
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<List<Credential>>
-
- net.shibboleth.oidc.profile.config.CredentialsListFactory
-
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<List<Credential>>,InitializingBean
public class CredentialsListFactory extends AbstractFactoryBean<List<Credential>>
A factory that returns a list of credentials which does not contain any null elements.Primarily created to support signature credential injection into the
SignatureSigningConfigurationwhen the credential list may contain, in its raw state, null elements.- Since:
- 2.2.0
-
-
Field Summary
Fields Modifier and Type Field Description private List<Credential>credentialsThe credentials which may contain null elements.-
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
-
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description CredentialsListFactory(List<Credential> creds)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Credential>createInstance()Class<?>getObjectType()-
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
-
-
-
Field Detail
-
credentials
@Nonnull private List<Credential> credentials
The credentials which may contain null elements.
-
-
Constructor Detail
-
CredentialsListFactory
public CredentialsListFactory(@Nullable List<Credential> creds)Constructor.- Parameters:
creds- the credentials, which can be null and may contain null elements.
-
-
Method Detail
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<List<Credential>>- Specified by:
getObjectTypein classAbstractFactoryBean<List<Credential>>
-
createInstance
protected List<Credential> createInstance() throws Exception
- Specified by:
createInstancein classAbstractFactoryBean<List<Credential>>- Throws:
Exception
-
-