Commit f8ba3bf6 authored by yanzg's avatar yanzg

表结构修改

parent b0513f09
...@@ -484,33 +484,19 @@ public final class RsaHelper { ...@@ -484,33 +484,19 @@ public final class RsaHelper {
* 私钥 * 私钥
*/ */
private String privateKey; private String privateKey;
/**
* 加密超时时间
*/
private long timeout;
public RsaInfo() { public RsaInfo() {
} }
public RsaInfo(PublicKey publicKeyFrom, PrivateKey privateKeyFrom) { public RsaInfo(PublicKey publicKeyFrom, PrivateKey privateKeyFrom) {
this(publicKeyFrom, privateKeyFrom, 0);
}
public RsaInfo(PublicKey publicKeyFrom, PrivateKey privateKeyFrom, long timeout) {
this.publicKeyFrom = publicKeyFrom; this.publicKeyFrom = publicKeyFrom;
this.privateKeyFrom = privateKeyFrom; this.privateKeyFrom = privateKeyFrom;
this.timeout = timeout;
this.initToWithFrom(); this.initToWithFrom();
} }
public RsaInfo(String publicKey, String privateKey) { public RsaInfo(String publicKey, String privateKey) {
this(publicKey, privateKey, 0);
}
public RsaInfo(String publicKey, String privateKey, long timeout) {
this.publicKey = publicKey; this.publicKey = publicKey;
this.privateKey = privateKey; this.privateKey = privateKey;
this.timeout = timeout;
this.initFromWithTo(); this.initFromWithTo();
} }
...@@ -555,13 +541,5 @@ public final class RsaHelper { ...@@ -555,13 +541,5 @@ public final class RsaHelper {
public void setPrivateKey(String privateKey) { public void setPrivateKey(String privateKey) {
this.privateKey = privateKey; this.privateKey = privateKey;
} }
public long getTimeout() {
return timeout;
}
public void setTimeout(long timeout) {
this.timeout = timeout;
}
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment