
@Component public class JsonClientValidator extends Object implements ClientValidator
| Modifier and Type | Field and Description |
|---|---|
private Clients |
clients |
private File |
clientsFile |
private net.trajano.ms.core.JsonOps |
jsonOps |
| Constructor and Description |
|---|
JsonClientValidator() |
| Modifier and Type | Method and Description |
|---|---|
private ClientInfo |
getClientInfo(String clientId) |
URI |
getJwksUri(String clientId)
Gets the JWKS URI associated with the client ID.
|
void |
init() |
boolean |
isValid(String grantType,
String clientId,
String clientSecret) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValidprivate Clients clients
@Value(value="${client_validator.file:clients.json}")
private File clientsFile
@Inject private net.trajano.ms.core.JsonOps jsonOps
private ClientInfo getClientInfo(String clientId)
public URI getJwksUri(String clientId)
ClientValidatorgetJwksUri in interface ClientValidatorclientId - client ID@PostConstruct public void init() throws IOException
IOExceptionpublic boolean isValid(String grantType, String clientId, String clientSecret)
isValid in interface ClientValidatorCopyright © 2012–2017 Trajano. All rights reserved.