Class BasicExpiringJWTSharedSecretCredentialFactoryBean
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<T>
-
- net.shibboleth.ext.spring.factory.AbstractComponentAwareFactoryBean<T>
-
- net.shibboleth.idp.profile.spring.factory.AbstractCredentialFactoryBean<ExpiringJWKCredential>
-
- net.shibboleth.oidc.security.credential.BasicExpiringJWTSharedSecretCredentialFactoryBean
-
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<ExpiringJWKCredential>,InitializingBean
public class BasicExpiringJWTSharedSecretCredentialFactoryBean extends net.shibboleth.idp.profile.spring.factory.AbstractCredentialFactoryBean<ExpiringJWKCredential>
A factory bean for creating aBasicExpiringJWKCredentialfrom an injected secret.- Since:
- 2.2.0
-
-
Field Summary
Fields Modifier and Type Field Description private com.nimbusds.jose.AlgorithmalgThe key management algorithm ('alg') this credential supports.private DurationcredentialExpiresAtWhen the credential expires in seconds since 1970-01-01T0:0:0Z.private StringjcaAlgThe JCA algorithm to set on theSecretKey.private StringsecretThe secret to use when creating a BasicJWKCredential.-
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 BasicExpiringJWTSharedSecretCredentialFactoryBean()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExpiringJWKCredentialdoCreateInstance()Class<?>getObjectType()voidsetAlg(com.nimbusds.jose.Algorithm algorithm)Set the algorithm 'alg' associated with this credential.voidsetCredentialExpiresAt(Duration expiresAt)Set the expiry in seconds since 1970-01-01T0:0:0Z.voidsetJcaAlg(String javaAlg)Set the JCA Algorithm to associate with this credential.voidsetSecret(String secretIn)Set the secret to use.-
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
-
secret
@Nullable private String secret
The secret to use when creating a BasicJWKCredential.
-
alg
@Nullable private com.nimbusds.jose.Algorithm alg
The key management algorithm ('alg') this credential supports.
-
credentialExpiresAt
@Nonnull private Duration credentialExpiresAt
When the credential expires in seconds since 1970-01-01T0:0:0Z. 0 seconds represents no expiry. Defaults to 0.
-
-
Method Detail
-
setCredentialExpiresAt
public void setCredentialExpiresAt(@Nonnull Duration expiresAt)Set the expiry in seconds since 1970-01-01T0:0:0Z.- Parameters:
expiresAt- the expiry.
-
setJcaAlg
public void setJcaAlg(@Nullable String javaAlg)Set the JCA Algorithm to associate with this credential.- Parameters:
javaAlg- the jca algorithm.
-
setAlg
public void setAlg(@Nonnull com.nimbusds.jose.Algorithm algorithm)Set the algorithm 'alg' associated with this credential.- Parameters:
algorithm- the algorithm.
-
setSecret
public void setSecret(@Nonnull @NotEmpty String secretIn)
Set the secret to use.- Parameters:
secretIn- the secret
-
doCreateInstance
protected ExpiringJWKCredential doCreateInstance() throws Exception
- Specified by:
doCreateInstancein classAbstractComponentAwareFactoryBean<ExpiringJWKCredential>- Throws:
Exception
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<ExpiringJWKCredential>- Specified by:
getObjectTypein classAbstractFactoryBean<ExpiringJWKCredential>
-
-