public interface JwtTokenBuilder
Authentication objects.| Modifier and Type | Interface and Description |
|---|---|
static class |
JwtTokenBuilder.AuthPart
Enumeration of
Authentication parts |
| Modifier and Type | Method and Description |
|---|---|
default String |
buildJwt(JwtConfiguration configuration,
Authentication authentication)
Build a JSON Web Token using given
JwtConfiguration for given Authentication. |
String |
buildJwt(JwtConfiguration configuration,
Authentication authentication,
String jwtTokenId)
Build a JSON Web Token using given
JwtConfiguration for given Authentication. |
static String |
buildJwtToken(JwtConfiguration configuration,
Authentication authentication,
String jwtTokenId)
Deprecated.
Use
get() to obtain the default JwtTokenBuilder on which to call the
buildJwt(JwtConfiguration, Authentication, String) method |
static JwtTokenBuilder |
get()
Get the default
JwtTokenBuilder. |
String buildJwt(JwtConfiguration configuration, Authentication authentication, String jwtTokenId) throws JwtConfiguration.InvalidJwtConfigurationException
JwtConfiguration for given Authentication.configuration - JWT configuration (not null)authentication - Authentication for which to create the JWT (not null)jwtTokenId - JWT token id (jit claim)JwtConfiguration.InvalidJwtConfigurationException - Invalid JWT configurationdefault String buildJwt(JwtConfiguration configuration, Authentication authentication) throws JwtConfiguration.InvalidJwtConfigurationException
JwtConfiguration for given Authentication.configuration - JWT configuration (not null)authentication - Authentication for which to create the JWT (not null)JwtConfiguration.InvalidJwtConfigurationException - Invalid JWT configurationstatic JwtTokenBuilder get()
JwtTokenBuilder.JwtTokenBuilder.@Deprecated static String buildJwtToken(JwtConfiguration configuration, Authentication authentication, String jwtTokenId) throws JwtConfiguration.InvalidJwtConfigurationException
get() to obtain the default JwtTokenBuilder on which to call the
buildJwt(JwtConfiguration, Authentication, String) methodJwtConfiguration for given Authentication.configuration - JWT configuration (not null)authentication - Authentication for which to create the token (not null)jwtTokenId - Optional JWT token id (jit claim)JwtConfiguration.InvalidJwtConfigurationException - Invalid JWT configurationCopyright © 2019 The Holon Platform. All rights reserved.