Class AbstractJwtGenerator<T extends com.nimbusds.jose.jwk.JWK>
java.lang.Object
org.frankframework.management.security.AbstractJwtGenerator<T>
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
DefaultJwtKeyGenerator, HmacJwtGenerator, KeystoreJwtGenerator
public abstract class AbstractJwtGenerator<T extends com.nimbusds.jose.jwk.JWK>
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractJwtGenerator(com.nimbusds.jose.JWSAlgorithm algorithm) -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal @NonNull StringUses the Spring Authentication object to create a signed JWT.final @NonNull StringUses the Spring Authentication object to create a signed JWT.protected abstract TgetJwk()protected StringgetPrincipalName(org.springframework.security.core.Authentication authentication) protected abstract com.nimbusds.jose.JWSSignerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
-
Field Details
-
jwtHeader
protected com.nimbusds.jose.JWSHeader jwtHeader -
publicJwk
protected @Nullable com.nimbusds.jose.jwk.JWK publicJwk
-
-
Constructor Details
-
AbstractJwtGenerator
protected AbstractJwtGenerator(com.nimbusds.jose.JWSAlgorithm algorithm)
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getJwk
- Throws:
GeneralSecurityExceptioncom.nimbusds.jose.JOSEException
-
getSigner
protected abstract com.nimbusds.jose.JWSSigner getSigner(T jwkKey) throws com.nimbusds.jose.JOSEException - Throws:
com.nimbusds.jose.JOSEException
-
createJWT
Uses the Spring Authentication object to create a signed JWT. -
createJWT
-
getPrincipalName
-