Class BasicExpiringJWTSharedSecretCredentialFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
net.shibboleth.shared.spring.factory.AbstractComponentAwareFactoryBean<T>
org.opensaml.spring.credential.AbstractCredentialFactoryBean<ExpiringJWKCredential>
net.shibboleth.oidc.security.credential.BasicExpiringJWTSharedSecretCredentialFactoryBean
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<ExpiringJWKCredential>,InitializingBean
public class BasicExpiringJWTSharedSecretCredentialFactoryBean
extends AbstractCredentialFactoryBean<ExpiringJWKCredential>
A factory bean for creating a
BasicExpiringJWKCredential from an injected secret.- Since:
- 2.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AlgorithmThe key management algorithm ('alg') this credential supports.private DurationWhen the credential expires in seconds since 1970-01-01T0:0:0Z.private StringThe JCA algorithm to set on theSecretKey.private StringThe secret to use when creating a BasicJWKCredential.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 ExpiringJWKCredentialClass<?>voidSet the algorithm 'alg' associated with this credential.voidsetCredentialExpiresAt(Duration expiresAt) Set the expiry in seconds since 1970-01-01T0:0:0Z.voidSet the JCA Algorithm to associate with this credential.voidSet the secret to use.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
-
secret
The secret to use when creating a BasicJWKCredential. -
jcaAlg
The JCA algorithm to set on theSecretKey. Defaults to AES. -
alg
The key management algorithm ('alg') this credential supports. -
credentialExpiresAt
When the credential expires in seconds since 1970-01-01T0:0:0Z. 0 seconds represents no expiry. Defaults to 0.
-
-
Constructor Details
-
BasicExpiringJWTSharedSecretCredentialFactoryBean
public BasicExpiringJWTSharedSecretCredentialFactoryBean()Constructor.
-
-
Method Details
-
setCredentialExpiresAt
Set the expiry in seconds since 1970-01-01T0:0:0Z.- Parameters:
expiresAt- the expiry.
-
setJcaAlg
Set the JCA Algorithm to associate with this credential.- Parameters:
javaAlg- the jca algorithm.
-
setAlg
Set the algorithm 'alg' associated with this credential.- Parameters:
algorithm- the algorithm.
-
setSecret
Set the secret to use.- Parameters:
secretIn- the secret
-
doCreateInstance
- Specified by:
doCreateInstancein classAbstractComponentAwareFactoryBean<ExpiringJWKCredential>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<ExpiringJWKCredential>- Specified by:
getObjectTypein classAbstractFactoryBean<ExpiringJWKCredential>
-