Class BasicJWKCredentialFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
net.shibboleth.shared.spring.factory.AbstractComponentAwareFactoryBean<T>
org.opensaml.spring.credential.AbstractCredentialFactoryBean<BasicJWKCredential>
net.shibboleth.oidc.security.credential.BasicJWKCredentialFactoryBean
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<BasicJWKCredential>,InitializingBean
public class BasicJWKCredentialFactoryBean
extends AbstractCredentialFactoryBean<BasicJWKCredential>
Factory bean for Basic JSON Web Keys (JWK).
- Since:
- 2.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanShould the factory throw an exception if the resource is null?.private ResourceWhere the private key is to be found.private final org.slf4j.LoggerClass logger.private StringThe JCA algorithm name to use if the key to be converted is a symmetric key.Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicJWKCredentialClass<?>voidsetFailIfResourceIsNull(boolean flag) Should the factory throw an exeception if the resource is null?voidsetResource(Resource res) Set the resource containing the private key.voidsetSymmetricKeyAlgorithm(String algorithm) Set the JCA algorithm name to use if the key to be converted is a symmetric key.Methods inherited from class org.opensaml.spring.credential.AbstractCredentialFactoryBean
getConfigDescription, getEntityID, getKeyNames, getPrivateKeyPassword, getUsageType, setConfigDescription, setEntityID, setKeyNames, setPrivateKeyPassword, setUsageTypeMethods inherited from class net.shibboleth.shared.spring.factory.AbstractComponentAwareFactoryBean
createInstance, destroyInstanceMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
jwkResource
Where the private key is to be found. -
failIfResourceIsNull
private boolean failIfResourceIsNullShould the factory throw an exception if the resource is null?. -
symmetricKeyAlgorithm
The JCA algorithm name to use if the key to be converted is a symmetric key. Default is AES.
-
-
Constructor Details
-
BasicJWKCredentialFactoryBean
public BasicJWKCredentialFactoryBean()Constructor.
-
-
Method Details
-
setSymmetricKeyAlgorithm
Set the JCA algorithm name to use if the key to be converted is a symmetric key.- Parameters:
algorithm- the JCA name
-
setFailIfResourceIsNull
public void setFailIfResourceIsNull(boolean flag) Should the factory throw an exeception if the resource is null?- Parameters:
flag- the flag
-
setResource
Set the resource containing the private key.- Parameters:
res- private key resource, nevernull
-
doCreateInstance
- Specified by:
doCreateInstancein classAbstractComponentAwareFactoryBean<BasicJWKCredential>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<BasicJWKCredential>- Specified by:
getObjectTypein classAbstractFactoryBean<BasicJWKCredential>
-