Class AbstractCredentialFactoryBean<T extends Credential>
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
net.shibboleth.ext.spring.factory.AbstractComponentAwareFactoryBean<T>
net.shibboleth.idp.profile.spring.factory.AbstractCredentialFactoryBean<T>
- Type Parameters:
T
- the type of credential to create.
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<T>
,InitializingBean
- Direct Known Subclasses:
AbstractBasicCredentialFactoryBean
,AbstractX509CredentialFactoryBean
public abstract class AbstractCredentialFactoryBean<T extends Credential>
extends AbstractComponentAwareFactoryBean<T>
A factory bean to accumulate the information pertaining to an
AbstractCredential
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
For logging: The description of the source of the configuration.private String
Identifier for the owner of the credential.Names for the key represented by the credential.private char[]
The privateKey Password (if any).private String
Usage type of the credential.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 -
Method Summary
Modifier and TypeMethodDescriptionFor logging, get the description of the resource that defined this bean.Get the entity ID of the credential.Gets the names for the key represented by the credential.char[]
Get the password for the private key.Gets the usage type of the credential.void
setConfigDescription
(String desc) For logging, set the description of the resource that defined this bean.void
setEntityID
(String newEntityID) Set the entity ID of the credential.void
setKeyNames
(List<String> names) Sets the names for the key represented by the credential.void
setPrivateKeyPassword
(char[] password) Set the password for the private key.void
setUsageType
(String type) Sets the usage type of the credential.Methods inherited from class net.shibboleth.ext.spring.factory.AbstractComponentAwareFactoryBean
createInstance, destroyInstance, doCreateInstance
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, getObjectType, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
usageType
Usage type of the credential. -
keyNames
Names for the key represented by the credential. -
entityID
Identifier for the owner of the credential. -
privateKeyPassword
@Nullable private char[] privateKeyPasswordThe privateKey Password (if any). -
configDescription
For logging: The description of the source of the configuration.
-
-
Constructor Details
-
AbstractCredentialFactoryBean
public AbstractCredentialFactoryBean()
-
-
Method Details
-
getKeyNames
Gets the names for the key represented by the credential.- Returns:
- names for the key represented by the credential
-
getUsageType
Gets the usage type of the credential.- Returns:
- usage type of the credential
-
getEntityID
Get the entity ID of the credential.- Returns:
- the entity ID
-
setKeyNames
Sets the names for the key represented by the credential.- Parameters:
names
- names for the key represented by the credential
-
setUsageType
Sets the usage type of the credential.- Parameters:
type
- usage type of the credential
-
setEntityID
Set the entity ID of the credential.- Parameters:
newEntityID
- the entity ID
-
getPrivateKeyPassword
@Nullable public char[] getPrivateKeyPassword()Get the password for the private key.- Returns:
- Returns the privateKeyPassword.
-
setPrivateKeyPassword
public void setPrivateKeyPassword(@Nullable char[] password) Set the password for the private key.- Parameters:
password
- The password to set.
-
getConfigDescription
For logging, get the description of the resource that defined this bean.- Returns:
- Returns the description.
-
setConfigDescription
For logging, set the description of the resource that defined this bean.- Parameters:
desc
- what to set.
-