@Extension(ordinal=-999.0) public class InternalJwtGenerator extends JwtGenerator
JwtGenerator
that generates an internally signed JWT.JwtGenerator.OAuthAccessTokenResponse
Constructor and Description |
---|
InternalJwtGenerator() |
Modifier and Type | Method and Description |
---|---|
static JwtAuthenticationStore |
getJwtStore(org.acegisecurity.Authentication authentication) |
JwtGenerator.OAuthAccessTokenResponse |
getToken(org.acegisecurity.Authentication authentication,
Integer expiryTimeInMins,
Integer maxExpiryTimeInMins)
Get a token for the given user.
|
all
addDependency, dependsOn, execute, getDependencies, getDescription, getIf, getLocation, getName, getProject, getTasks, getUnless, parseDepends, performTasks, setDepends, setDescription, setIf, setLocation, setName, setProject, setUnless, toString
public static JwtAuthenticationStore getJwtStore(org.acegisecurity.Authentication authentication)
public JwtGenerator.OAuthAccessTokenResponse getToken(org.acegisecurity.Authentication authentication, @Nullable @QueryParameter(value="expiryTimeInMins") Integer expiryTimeInMins, @Nullable @QueryParameter(value="maxExpiryTimeInMins") Integer maxExpiryTimeInMins)
JwtGenerator
getToken
in class JwtGenerator
authentication
- the Authentication
(user) to generate a token forexpiryTimeInMins
- the requested expiry time in MinsmaxExpiryTimeInMins
- the maximum expiry time in minsCopyright © 2016–2018. All rights reserved.