Class UsernamePasswoordCredentialsFactoryBean
java.lang.Object
net.shibboleth.shared.spring.factory.AbstractFactoryBean<T>
net.shibboleth.shared.spring.factory.AbstractComponentAwareFactoryBean<org.apache.hc.client5.http.auth.UsernamePasswordCredentials>
net.shibboleth.shared.spring.httpclient.factory.UsernamePasswoordCredentialsFactoryBean
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<org.apache.hc.client5.http.auth.UsernamePasswordCredentials>,InitializingBean
public class UsernamePasswoordCredentialsFactoryBean
extends AbstractComponentAwareFactoryBean<org.apache.hc.client5.http.auth.UsernamePasswordCredentials>
Factory bean for
UsernamePasswordCredentials.
Mainly for insulation from Apache client API.
- Since:
- 9.0.0
-
Field Summary
FieldsFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hc.client5.http.auth.UsernamePasswordCredentialsCall the parent class to create the instance.Class<?>This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.voidsetPassword(String what) Set the password.voidsetUsername(String what) Set the username.Methods inherited from class net.shibboleth.shared.spring.factory.AbstractComponentAwareFactoryBean
createInstance, destroyInstance, setThrowIfNullMethods inherited from class net.shibboleth.shared.spring.factory.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
username
The username. -
password
The password.
-
-
Constructor Details
-
UsernamePasswoordCredentialsFactoryBean
public UsernamePasswoordCredentialsFactoryBean()
-
-
Method Details
-
getObjectType
This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.- Specified by:
getObjectTypein interfaceFactoryBean<org.apache.hc.client5.http.auth.UsernamePasswordCredentials>- Specified by:
getObjectTypein classAbstractFactoryBean<org.apache.hc.client5.http.auth.UsernamePasswordCredentials>- See Also:
-
setUsername
Set the username.- Parameters:
what- value to set
-
setPassword
Set the password.- Parameters:
what- value to set
-
doCreateInstance
@Nonnull protected org.apache.hc.client5.http.auth.UsernamePasswordCredentials doCreateInstance() throws ExceptionCall the parent class to create the instance.- Specified by:
doCreateInstancein classAbstractComponentAwareFactoryBean<org.apache.hc.client5.http.auth.UsernamePasswordCredentials>- Returns:
- the bean.
- Throws:
Exception- if needed.
-