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 anAbstractCredential.
-
-
Field Summary
Fields Modifier and Type Field Description private StringconfigDescriptionFor logging: The description of the source of the configuration.private StringentityIDIdentifier for the owner of the credential.private List<String>keyNamesNames for the key represented by the credential.private char[]privateKeyPasswordThe privateKey Password (if any).private StringusageTypeUsage 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 Constructor Description AbstractCredentialFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConfigDescription()For logging, get the description of the resource that defined this bean.StringgetEntityID()Get the entity ID of the credential.List<String>getKeyNames()Gets the names for the key represented by the credential.char[]getPrivateKeyPassword()Get the password for the private key.StringgetUsageType()Gets the usage type of the credential.voidsetConfigDescription(String desc)For logging, set the description of the resource that defined this bean.voidsetEntityID(String newEntityID)Set the entity ID of the credential.voidsetKeyNames(List<String> names)Sets the names for the key represented by the credential.voidsetPrivateKeyPassword(char[] password)Set the password for the private key.voidsetUsageType(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 Detail
-
usageType
private String usageType
Usage type of the credential.
-
entityID
private String entityID
Identifier for the owner of the credential.
-
privateKeyPassword
@Nullable private char[] privateKeyPassword
The privateKey Password (if any).
-
configDescription
@Nonnull private String configDescription
For logging: The description of the source of the configuration.
-
-
Method Detail
-
getKeyNames
@Nullable public List<String> getKeyNames()
Gets the names for the key represented by the credential.- Returns:
- names for the key represented by the credential
-
getUsageType
@Nullable public String getUsageType()
Gets the usage type of the credential.- Returns:
- usage type of the credential
-
getEntityID
@Nullable public String getEntityID()
Get the entity ID of the credential.- Returns:
- the entity ID
-
setKeyNames
public void setKeyNames(@Nullable List<String> names)Sets the names for the key represented by the credential.- Parameters:
names- names for the key represented by the credential
-
setUsageType
public void setUsageType(@Nullable String type)Sets the usage type of the credential.- Parameters:
type- usage type of the credential
-
setEntityID
public void setEntityID(@Nullable String newEntityID)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
public String getConfigDescription()
For logging, get the description of the resource that defined this bean.- Returns:
- Returns the description.
-
setConfigDescription
public void setConfigDescription(@Nonnull String desc)For logging, set the description of the resource that defined this bean.- Parameters:
desc- what to set.
-
-