
@Configuration @Component @Path(value="/revoke") @PermitAll public class RevocationResource extends Object
| Modifier and Type | Field and Description |
|---|---|
private ClientValidator |
clientValidator |
private int |
jwtMaximumLifetimeInSeconds
Maximum life of a JWT token.
|
private static org.slf4j.Logger |
LOG |
private String |
realmName |
private TokenCache |
tokenCache |
| Constructor and Description |
|---|
RevocationResource() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonObject |
revoke(String token,
String tokenTypeHint,
String authorization)
Performs client credential validation then invokes the revocation process
from the token cache.
|
private static final org.slf4j.Logger LOG
@Autowired private ClientValidator clientValidator
@Value(value="${token.jwtMaximumLifetime:86400}")
private int jwtMaximumLifetimeInSeconds
@Value(value="${realmName:client_credentials}")
private String realmName
@Autowired private TokenCache tokenCache
@POST
@Consumes(value="application/x-www-form-urlencoded")
@Produces(value="application/json")
public com.google.gson.JsonObject revoke(@FormParam(value="token")
String token,
@FormParam(value="token_type_hint")
String tokenTypeHint,
@HeaderParam(value="Authorization")
String authorization)
Copyright © 2012–2017 Trajano. All rights reserved.