Package com.networknt.http.client
Class KeyRequest
- java.lang.Object
-
- com.networknt.http.client.KeyRequest
-
public class KeyRequest extends Object
This is the generic key request with an id as parameter. The static serverUrl will be used if available. Otherwise, the serviceId will be used to lookup the key service. There are two sub classes for signature verification and access token verification with different configurations in the client.yml file.- Author:
- Steve Hu
-
-
Constructor Summary
Constructors Constructor Description KeyRequest(String kid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClientId()StringgetClientSecret()StringgetKid()StringgetProxyHost()intgetProxyPort()StringgetServerUrl()StringgetServiceId()StringgetUri()booleanisEnableHttp2()voidsetClientId(String clientId)voidsetClientSecret(String clientSecret)voidsetEnableHttp2(boolean enableHttp2)voidsetKid(String kid)voidsetProxyHost(String proxyHost)voidsetProxyPort(int proxyPort)voidsetServerUrl(String serverUrl)voidsetServiceId(String serviceId)voidsetUri(String uri)
-
-
-
Field Detail
-
serverUrl
protected String serverUrl
-
proxyHost
protected String proxyHost
-
proxyPort
protected int proxyPort
-
serviceId
protected String serviceId
-
uri
protected String uri
-
clientId
protected String clientId
-
clientSecret
protected String clientSecret
-
enableHttp2
protected boolean enableHttp2
-
kid
protected String kid
-
-
Constructor Detail
-
KeyRequest
public KeyRequest(String kid)
-
-
Method Detail
-
getUri
public String getUri()
-
setUri
public void setUri(String uri)
-
getClientId
public String getClientId()
-
setClientId
public void setClientId(String clientId)
-
getClientSecret
public String getClientSecret()
-
setClientSecret
public void setClientSecret(String clientSecret)
-
getServerUrl
public String getServerUrl()
-
setServerUrl
public void setServerUrl(String serverUrl)
-
getServiceId
public String getServiceId()
-
setServiceId
public void setServiceId(String serviceId)
-
isEnableHttp2
public boolean isEnableHttp2()
-
setEnableHttp2
public void setEnableHttp2(boolean enableHttp2)
-
getKid
public String getKid()
-
setKid
public void setKid(String kid)
-
getProxyHost
public String getProxyHost()
-
setProxyHost
public void setProxyHost(String proxyHost)
-
getProxyPort
public int getProxyPort()
-
setProxyPort
public void setProxyPort(int proxyPort)
-
-