me.chanjar.weixin.cp.api

## 类 WxCpInMemoryConfigStorage

- java.lang.Object
- - me.chanjar.weixin.cp.api.WxCpInMemoryConfigStorage

所有已实现的接口:
  WxCpConfigStorage

    public class WxCpInMemoryConfigStorage
    extends Object
    implements WxCpConfigStorage

基于内存的微信配置provider，在实际生产环境中应该将这些配置持久化

作者:
  Daniel Qian

### 字段概要

字段
`protected String` `accessToken`
`protected String` `aesKey`
`protected Integer` `agentId`
`protected String` `corpId`
`protected String` `corpSecret`
`protected long` `expiresTime`
`protected String` `httpProxyHost`
`protected String` `httpProxyPassword`
`protected int` `httpProxyPort`
`protected String` `httpProxyUsername`
`protected String` `jsapiTicket`
`protected long` `jsapiTicketExpiresTime`
`protected String` `oauth2redirectUri`
`protected File` `tmpDirFile`
`protected String` `token`

### 构造器概要

构造器
构造器和说明
`WxCpInMemoryConfigStorage()`

### 方法概要

方法
`void` `expireAccessToken()` 强制将access token过期掉
`void` `expireJsapiTicket()` 强制将jsapi ticket过期掉
`String` `getAccessToken()`
`String` `getAesKey()`
`Integer` `getAgentId()`
`ApacheHttpClientBuilder` `getApacheHttpClientBuilder()` http client builder
`String` `getCorpId()`
`String` `getCorpSecret()`
`long` `getExpiresTime()`
`String` `getHttpProxyHost()`
`String` `getHttpProxyPassword()`
`int` `getHttpProxyPort()`
`String` `getHttpProxyUsername()`
`String` `getJsapiTicket()`
`long` `getJsapiTicketExpiresTime()`
`String` `getOauth2redirectUri()`
`File` `getTmpDirFile()`
`String` `getToken()`
`boolean` `isAccessTokenExpired()`
`boolean` `isJsapiTicketExpired()`
`void` `setAccessToken(String accessToken)`
`void` `setAesKey(String aesKey)`
`void` `setAgentId(Integer agentId)`
`void` `setApacheHttpClientBuilder(ApacheHttpClientBuilder apacheHttpClientBuilder)`
`void` `setCorpId(String corpId)`
`void` `setCorpSecret(String corpSecret)`
`void` `setExpiresTime(long expiresTime)`
`void` `setHttpProxyHost(String httpProxyHost)`
`void` `setHttpProxyPassword(String httpProxyPassword)`
`void` `setHttpProxyPort(int httpProxyPort)`
`void` `setHttpProxyUsername(String httpProxyUsername)`
`void` `setJsapiTicket(String jsapiTicket)`
`void` `setJsapiTicketExpiresTime(long jsapiTicketExpiresTime)`
`void` `setOauth2redirectUri(String oauth2redirectUri)`
`void` `setTmpDirFile(File tmpDirFile)`
`void` `setToken(String token)`
`String` `toString()`
`void` `updateAccessToken(String accessToken, int expiresInSeconds)`
`void` `updateAccessToken(WxAccessToken accessToken)`
`void` `updateJsapiTicket(String jsapiTicket, int expiresInSeconds)` 应该是线程安全的

### 从类继承的方法 java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

### 字段详细资料

#### corpId

    protected volatile String corpId

#### corpSecret

    protected volatile String corpSecret

#### token

    protected volatile String token

#### accessToken

    protected volatile String accessToken

#### aesKey

    protected volatile String aesKey

#### agentId

    protected volatile Integer agentId

#### expiresTime

    protected volatile long expiresTime

#### oauth2redirectUri

    protected volatile String oauth2redirectUri

#### httpProxyHost

    protected volatile String httpProxyHost

#### httpProxyPort

    protected volatile int httpProxyPort

#### httpProxyUsername

    protected volatile String httpProxyUsername

#### httpProxyPassword

    protected volatile String httpProxyPassword

#### jsapiTicket

    protected volatile String jsapiTicket

#### jsapiTicketExpiresTime

    protected volatile long jsapiTicketExpiresTime

#### tmpDirFile

    protected volatile File tmpDirFile

### 构造器详细资料

#### WxCpInMemoryConfigStorage

    public WxCpInMemoryConfigStorage()

### 方法详细资料

#### getAccessToken

    public String getAccessToken()

指定者:
  `getAccessToken` 在接口中 `WxCpConfigStorage`

#### setAccessToken

    public void setAccessToken(String accessToken)

#### isAccessTokenExpired

    public boolean isAccessTokenExpired()

指定者:
  `isAccessTokenExpired` 在接口中 `WxCpConfigStorage`

#### expireAccessToken

    public void expireAccessToken()

从接口复制的说明: `WxCpConfigStorage`
强制将access token过期掉

指定者:
  `expireAccessToken` 在接口中 `WxCpConfigStorage`

#### updateAccessToken

    public void updateAccessToken(WxAccessToken accessToken)

指定者:
  `updateAccessToken` 在接口中 `WxCpConfigStorage`

#### updateAccessToken

    public void updateAccessToken(String accessToken,
                         int expiresInSeconds)

指定者:
  `updateAccessToken` 在接口中 `WxCpConfigStorage`

#### getJsapiTicket

    public String getJsapiTicket()

指定者:
  `getJsapiTicket` 在接口中 `WxCpConfigStorage`

#### setJsapiTicket

    public void setJsapiTicket(String jsapiTicket)

#### getJsapiTicketExpiresTime

    public long getJsapiTicketExpiresTime()

#### setJsapiTicketExpiresTime

    public void setJsapiTicketExpiresTime(long jsapiTicketExpiresTime)

#### isJsapiTicketExpired

    public boolean isJsapiTicketExpired()

指定者:
  `isJsapiTicketExpired` 在接口中 `WxCpConfigStorage`

#### updateJsapiTicket

    public void updateJsapiTicket(String jsapiTicket,
                         int expiresInSeconds)

从接口复制的说明: `WxCpConfigStorage`
应该是线程安全的

指定者:
  `updateJsapiTicket` 在接口中 `WxCpConfigStorage`

#### expireJsapiTicket

    public void expireJsapiTicket()

从接口复制的说明: `WxCpConfigStorage`
强制将jsapi ticket过期掉

指定者:
  `expireJsapiTicket` 在接口中 `WxCpConfigStorage`

#### getCorpId

    public String getCorpId()

指定者:
  `getCorpId` 在接口中 `WxCpConfigStorage`

#### setCorpId

    public void setCorpId(String corpId)

#### getCorpSecret

    public String getCorpSecret()

指定者:
  `getCorpSecret` 在接口中 `WxCpConfigStorage`

#### setCorpSecret

    public void setCorpSecret(String corpSecret)

#### getToken

    public String getToken()

指定者:
  `getToken` 在接口中 `WxCpConfigStorage`

#### setToken

    public void setToken(String token)

#### getExpiresTime

    public long getExpiresTime()

指定者:
  `getExpiresTime` 在接口中 `WxCpConfigStorage`

#### setExpiresTime

    public void setExpiresTime(long expiresTime)

#### getAesKey

    public String getAesKey()

指定者:
  `getAesKey` 在接口中 `WxCpConfigStorage`

#### setAesKey

    public void setAesKey(String aesKey)

#### getAgentId

    public Integer getAgentId()

指定者:
  `getAgentId` 在接口中 `WxCpConfigStorage`

#### setAgentId

    public void setAgentId(Integer agentId)

#### getOauth2redirectUri

    public String getOauth2redirectUri()

指定者:
  `getOauth2redirectUri` 在接口中 `WxCpConfigStorage`

#### setOauth2redirectUri

    public void setOauth2redirectUri(String oauth2redirectUri)

#### getHttpProxyHost

    public String getHttpProxyHost()

指定者:
  `getHttpProxyHost` 在接口中 `WxCpConfigStorage`

#### setHttpProxyHost

    public void setHttpProxyHost(String httpProxyHost)

#### getHttpProxyPort

    public int getHttpProxyPort()

指定者:
  `getHttpProxyPort` 在接口中 `WxCpConfigStorage`

#### setHttpProxyPort

    public void setHttpProxyPort(int httpProxyPort)

#### getHttpProxyUsername

    public String getHttpProxyUsername()

指定者:
  `getHttpProxyUsername` 在接口中 `WxCpConfigStorage`

#### setHttpProxyUsername

    public void setHttpProxyUsername(String httpProxyUsername)

#### getHttpProxyPassword

    public String getHttpProxyPassword()

指定者:
  `getHttpProxyPassword` 在接口中 `WxCpConfigStorage`

#### setHttpProxyPassword

    public void setHttpProxyPassword(String httpProxyPassword)

#### toString

    public String toString()

覆盖:
  `toString` 在类中 `Object`

#### getTmpDirFile

    public File getTmpDirFile()

指定者:
  `getTmpDirFile` 在接口中 `WxCpConfigStorage`

#### setTmpDirFile

    public void setTmpDirFile(File tmpDirFile)

#### getApacheHttpClientBuilder

    public ApacheHttpClientBuilder getApacheHttpClientBuilder()

从接口复制的说明: `WxCpConfigStorage`
http client builder

指定者:
  `getApacheHttpClientBuilder` 在接口中 `WxCpConfigStorage`
返回:
  ApacheHttpClientBuilder

#### setApacheHttpClientBuilder

    public void setApacheHttpClientBuilder(ApacheHttpClientBuilder apacheHttpClientBuilder)