Class BasicX509CredentialFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
net.shibboleth.ext.spring.factory.AbstractComponentAwareFactoryBean<T>
net.shibboleth.idp.profile.spring.factory.AbstractCredentialFactoryBean<BasicX509Credential>
net.shibboleth.idp.profile.spring.factory.AbstractX509CredentialFactoryBean
net.shibboleth.idp.profile.spring.factory.BasicX509CredentialFactoryBean
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<BasicX509Credential>
,InitializingBean
Spring bean factory for producing a
BasicX509Credential
from Resource
s.
This factory bean supports DER and PEM encoded certificate resources and encrypted and non-encrypted PKCS8, DER, or PEM encoded private key resources.
-
Field Summary
FieldsModifier and TypeFieldDescriptionWhere the certificates are to be found.Where the crls are to be found.private Resource
The specification of where the entity Resource is to be found.private final org.slf4j.Logger
log.private Resource
Where the private key is to be found.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 TypeMethodDescriptionprotected List<X509Certificate>
Get the configured certificates.getCRLs()
Get the configured CRL list.protected X509Certificate
return the explicitly configured entity certificate.protected PrivateKey
Get the configured private key.boolean
void
Set the certificate resource.void
setCertificates
(List<Resource> what) Sets the Resources which contain the certificates.void
Sets the Resources which contain the crls.void
Set the Resource with the entity certificate.void
setEntityId
(String id) Set the entityID for the credential.void
setPrivateKey
(Resource what) Set the Resource with the entity certificate.void
setPrivateKeyPassword
(String password) Set the password for the private key.void
Set the resource containing the private key.Methods inherited from class net.shibboleth.idp.profile.spring.factory.AbstractX509CredentialFactoryBean
doCreateInstance, getObjectType
Methods inherited from class net.shibboleth.idp.profile.spring.factory.AbstractCredentialFactoryBean
getConfigDescription, getEntityID, getKeyNames, getPrivateKeyPassword, getUsageType, setConfigDescription, setEntityID, setKeyNames, setPrivateKeyPassword, setUsageType
Methods inherited from class net.shibboleth.ext.spring.factory.AbstractComponentAwareFactoryBean
createInstance, destroyInstance
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
log
private final org.slf4j.Logger loglog. -
entityResource
The specification of where the entity Resource is to be found. -
certificateResources
Where the certificates are to be found. -
privateKeyResource
Where the private key is to be found. -
crlResources
Where the crls are to be found.
-
-
Constructor Details
-
BasicX509CredentialFactoryBean
public BasicX509CredentialFactoryBean()
-
-
Method Details
-
setEntity
Set the Resource with the entity certificate.- Parameters:
what
- The Resource to set.
-
setCertificates
Sets the Resources which contain the certificates.- Parameters:
what
- The values to set.
-
setPrivateKey
Set the Resource with the entity certificate.- Parameters:
what
- The resource to set.
-
setCRLs
Sets the Resources which contain the crls.- Parameters:
what
- The value to set.
-
setPrivateKeyResource
Set the resource containing the private key.- Parameters:
res
- private key resource, nevernull
-
setPrivateKeyPassword
Set the password for the private key.- Parameters:
password
- password for the private key, may be null if the key is not encrypted
-
setCertificateResource
Set the certificate resource.- Parameters:
res
- certificate resource
-
setEntityId
Set the entityID for the credential.- Parameters:
id
- entityID
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceFactoryBean<BasicX509Credential>
- Overrides:
isSingleton
in classAbstractFactoryBean<BasicX509Credential>
-
getEntityCertificate
return the explicitly configured entity certificate..- Specified by:
getEntityCertificate
in classAbstractX509CredentialFactoryBean
- Returns:
- the certificate, or none if not configured.
-
getCertificates
Get the configured certificates. This MUST include the entity certificate if it was configured.- Specified by:
getCertificates
in classAbstractX509CredentialFactoryBean
- Returns:
- the certificates.
-
getPrivateKey
Get the configured private key.- Specified by:
getPrivateKey
in classAbstractX509CredentialFactoryBean
- Returns:
- the key or null if non configured
-
getCRLs
Get the configured CRL list.- Specified by:
getCRLs
in classAbstractX509CredentialFactoryBean
- Returns:
- the crls or null
-