| POST | /api/misa-esign/verify |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class VerifyMisaESignRequest implements IPost
{
public Integer accountSignatureId = null;
public String certAlias = null;
public Integer getAccountSignatureId() { return accountSignatureId; }
public VerifyMisaESignRequest setAccountSignatureId(Integer value) { this.accountSignatureId = value; return this; }
public String getCertAlias() { return certAlias; }
public VerifyMisaESignRequest setCertAlias(String value) { this.certAlias = value; return this; }
}
public static class MisaESignVerifyResponse implements IResponseRequest
{
public Boolean ok = null;
public Integer code = null;
public String message = null;
public String certificateSerial = null;
public ArrayList<MisaESignCertificate> certificates = null;
public Boolean isOk() { return ok; }
public MisaESignVerifyResponse setOk(Boolean value) { this.ok = value; return this; }
public Integer getCode() { return code; }
public MisaESignVerifyResponse setCode(Integer value) { this.code = value; return this; }
public String getMessage() { return message; }
public MisaESignVerifyResponse setMessage(String value) { this.message = value; return this; }
public String getCertificateSerial() { return certificateSerial; }
public MisaESignVerifyResponse setCertificateSerial(String value) { this.certificateSerial = value; return this; }
public ArrayList<MisaESignCertificate> getCertificates() { return certificates; }
public MisaESignVerifyResponse setCertificates(ArrayList<MisaESignCertificate> value) { this.certificates = value; return this; }
}
public static class MisaESignCertificate
{
public String userId = null;
public String keyAlias = null;
public String appName = null;
public String keyStatus = null;
public String emailName = null;
public String effectiveDate = null;
public String expirationDate = null;
public String getUserId() { return userId; }
public MisaESignCertificate setUserId(String value) { this.userId = value; return this; }
public String getKeyAlias() { return keyAlias; }
public MisaESignCertificate setKeyAlias(String value) { this.keyAlias = value; return this; }
public String getAppName() { return appName; }
public MisaESignCertificate setAppName(String value) { this.appName = value; return this; }
public String getKeyStatus() { return keyStatus; }
public MisaESignCertificate setKeyStatus(String value) { this.keyStatus = value; return this; }
public String getEmailName() { return emailName; }
public MisaESignCertificate setEmailName(String value) { this.emailName = value; return this; }
public String getEffectiveDate() { return effectiveDate; }
public MisaESignCertificate setEffectiveDate(String value) { this.effectiveDate = value; return this; }
public String getExpirationDate() { return expirationDate; }
public MisaESignCertificate setExpirationDate(String value) { this.expirationDate = value; return this; }
}
}
Java VerifyMisaESignRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/misa-esign/verify HTTP/1.1
Host: qlcn-api.vsmlab.vn
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
accountSignatureId: 0,
certAlias: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ok: False,
code: 0,
message: String,
certificateSerial: String,
certificates:
[
{
userId: String,
keyAlias: String,
appName: String,
keyStatus: String,
emailName: String,
effectiveDate: String,
expirationDate: String
}
]
}