Class BasicResourceCredentialFactoryBean
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<T>
-
- net.shibboleth.ext.spring.factory.AbstractComponentAwareFactoryBean<T>
-
- net.shibboleth.idp.profile.spring.factory.AbstractCredentialFactoryBean<BasicCredential>
-
- net.shibboleth.idp.profile.spring.factory.AbstractBasicCredentialFactoryBean
-
- net.shibboleth.idp.profile.spring.factory.BasicResourceCredentialFactoryBean
-
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<BasicCredential>,InitializingBean
public class BasicResourceCredentialFactoryBean extends AbstractBasicCredentialFactoryBean
Spring bean factory for producing aBasicCredentialfromResources.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.shibboleth.idp.profile.spring.factory.AbstractBasicCredentialFactoryBean
AbstractBasicCredentialFactoryBean.SecretKeyEncoding
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.Loggerloglog.private ResourceprivateKeyInfoConfigured private key Info.private ResourcepublicKeyInfoConfigured public key Info.private ResourcesecretKeyInfoConfigured secret key Info.-
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 BasicResourceCredentialFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PrivateKeygetPrivateKey()Get the configured Private key.ResourcegetPrivateKeyInfo()Get the information used to generate the private key.protected PublicKeygetPublicKey()return the configured Public Key.ResourcegetPublicKeyInfo()Get the information used to generate the public key.protected SecretKeygetSecretKey()return the configured Secret Key.ResourcegetSecretKeyInfo()Get the information used to generate the secret key.voidsetPrivateKeyInfo(Resource info)Set the information used to generate the private key.voidsetPublicKeyInfo(Resource info)Set the information used to generate the public key.voidsetSecretKeyInfo(Resource info)Set the information used to generate the secret key.-
Methods inherited from class net.shibboleth.idp.profile.spring.factory.AbstractBasicCredentialFactoryBean
decodeSecretKey, decodeSecretKey, doCreateInstance, getObjectType, getSecretKeyAlgorithm, getSecretKeyEncoding, setSecretKeyAlgorithm, setSecretKeyEncoding
-
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, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
-
-
-
Field Detail
-
log
private final org.slf4j.Logger log
log.
-
publicKeyInfo
@Nullable private Resource publicKeyInfo
Configured public key Info.
-
privateKeyInfo
@Nullable private Resource privateKeyInfo
Configured private key Info.
-
secretKeyInfo
@Nullable private Resource secretKeyInfo
Configured secret key Info.
-
-
Method Detail
-
getPublicKeyInfo
@Nullable public Resource getPublicKeyInfo()
Get the information used to generate the public key.- Returns:
- Returns the info.
-
setPublicKeyInfo
public void setPublicKeyInfo(@Nullable Resource info)Set the information used to generate the public key.- Parameters:
info- The info to set.
-
getPrivateKeyInfo
@Nullable public Resource getPrivateKeyInfo()
Get the information used to generate the private key.- Returns:
- Returns the info.
-
setPrivateKeyInfo
public void setPrivateKeyInfo(@Nullable Resource info)Set the information used to generate the private key.- Parameters:
info- The info to set.
-
getSecretKeyInfo
@Nullable public Resource getSecretKeyInfo()
Get the information used to generate the secret key.- Returns:
- Returns the info.
-
setSecretKeyInfo
public void setSecretKeyInfo(@Nullable Resource info)Set the information used to generate the secret key.- Parameters:
info- The info to set.
-
getPublicKey
@Nullable protected PublicKey getPublicKey()
return the configured Public Key.- Specified by:
getPublicKeyin classAbstractBasicCredentialFactoryBean- Returns:
- the key, or none if not configured.
-
getPrivateKey
@Nullable protected PrivateKey getPrivateKey()
Get the configured Private key.- Specified by:
getPrivateKeyin classAbstractBasicCredentialFactoryBean- Returns:
- the key or null if non configured
-
getSecretKey
@Nullable protected SecretKey getSecretKey()
return the configured Secret Key.- Specified by:
getSecretKeyin classAbstractBasicCredentialFactoryBean- Returns:
- the key, or none if not configured.
-
-