GET | /nemidvalidatelogin |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ValidateNemIdRequestModel
{
}
public static class NemIDFlowResult extends FlowResult
{
public AuthenticationInfo authenticationInfo = null;
public AuthenticationInfo getAuthenticationInfo() { return authenticationInfo; }
public NemIDFlowResult setAuthenticationInfo(AuthenticationInfo value) { this.authenticationInfo = value; return this; }
}
public static class FlowResult extends FlowMessage
{
public ClientFlow clientFlow = null;
public FlowStatus status = null;
public Boolean isSuccess = null;
public String message = null;
public String userMessage = null;
public String flowErrorCode = null;
public ClientFlow getClientFlow() { return clientFlow; }
public FlowResult setClientFlow(ClientFlow value) { this.clientFlow = value; return this; }
public FlowStatus getStatus() { return status; }
public FlowResult setStatus(FlowStatus value) { this.status = value; return this; }
public Boolean getIsSuccess() { return isSuccess; }
public FlowResult setIsSuccess(Boolean value) { this.isSuccess = value; return this; }
public String getMessage() { return message; }
public FlowResult setMessage(String value) { this.message = value; return this; }
public String getUserMessage() { return userMessage; }
public FlowResult setUserMessage(String value) { this.userMessage = value; return this; }
public String getFlowErrorCode() { return flowErrorCode; }
public FlowResult setFlowErrorCode(String value) { this.flowErrorCode = value; return this; }
}
public static class FlowMessage extends Body
{
public String timestamp = null;
public String transactionIdentifier = null;
public String getTimestamp() { return timestamp; }
public FlowMessage setTimestamp(String value) { this.timestamp = value; return this; }
public String getTransactionIdentifier() { return transactionIdentifier; }
public FlowMessage setTransactionIdentifier(String value) { this.transactionIdentifier = value; return this; }
}
public static class Body
{
}
public static enum ClientFlow
{
NemID,
NemIDSignature,
NemIDKeyFile,
NemIDKeyFileSignature,
NL3Signature,
Invalid,
LoadTest;
}
public static enum FlowStatus
{
Ok,
UserCancel,
ClientFlowError,
FlowError,
ValidationError;
}
public static class AuthenticationInfo
{
public String pid = null;
public String dn = null;
public String commonName = null;
public String rid = null;
public String cpr = null;
public String cvr = null;
public String company = null;
public String email = null;
public String signedXml = null;
public String issuerDn = null;
public Boolean isYouthCert = null;
public CertificateType certificateType = null;
public String subjectSerialNumber = null;
public IList<SignProperty> signProperties = null;
public String rememberUserIdToken = null;
public LogonType logonType = null;
public String certificateSerialNumber = null;
public byte[] clientCertificate = null;
public String authorizedToRepresent = null;
public String getPid() { return pid; }
public AuthenticationInfo setPid(String value) { this.pid = value; return this; }
public String getDn() { return dn; }
public AuthenticationInfo setDn(String value) { this.dn = value; return this; }
public String getCommonName() { return commonName; }
public AuthenticationInfo setCommonName(String value) { this.commonName = value; return this; }
public String getRid() { return rid; }
public AuthenticationInfo setRid(String value) { this.rid = value; return this; }
public String getCpr() { return cpr; }
public AuthenticationInfo setCpr(String value) { this.cpr = value; return this; }
public String getCvr() { return cvr; }
public AuthenticationInfo setCvr(String value) { this.cvr = value; return this; }
public String getCompany() { return company; }
public AuthenticationInfo setCompany(String value) { this.company = value; return this; }
public String getEmail() { return email; }
public AuthenticationInfo setEmail(String value) { this.email = value; return this; }
public String getSignedXml() { return signedXml; }
public AuthenticationInfo setSignedXml(String value) { this.signedXml = value; return this; }
public String getIssuerDn() { return issuerDn; }
public AuthenticationInfo setIssuerDn(String value) { this.issuerDn = value; return this; }
public Boolean getIsYouthCert() { return isYouthCert; }
public AuthenticationInfo setIsYouthCert(Boolean value) { this.isYouthCert = value; return this; }
public CertificateType getCertificateType() { return certificateType; }
public AuthenticationInfo setCertificateType(CertificateType value) { this.certificateType = value; return this; }
public String getSubjectSerialNumber() { return subjectSerialNumber; }
public AuthenticationInfo setSubjectSerialNumber(String value) { this.subjectSerialNumber = value; return this; }
public IList<SignProperty> getSignProperties() { return signProperties; }
public AuthenticationInfo setSignProperties(IList<SignProperty> value) { this.signProperties = value; return this; }
public String getRememberUserIdToken() { return rememberUserIdToken; }
public AuthenticationInfo setRememberUserIdToken(String value) { this.rememberUserIdToken = value; return this; }
public LogonType getLogonType() { return logonType; }
public AuthenticationInfo setLogonType(LogonType value) { this.logonType = value; return this; }
public String getCertificateSerialNumber() { return certificateSerialNumber; }
public AuthenticationInfo setCertificateSerialNumber(String value) { this.certificateSerialNumber = value; return this; }
public byte[] getClientCertificate() { return clientCertificate; }
public AuthenticationInfo setClientCertificate(byte[] value) { this.clientCertificate = value; return this; }
public String getAuthorizedToRepresent() { return authorizedToRepresent; }
public AuthenticationInfo setAuthorizedToRepresent(String value) { this.authorizedToRepresent = value; return this; }
}
public static enum CertificateType
{
Poces,
Moces,
Voces,
Foces;
}
public static class SignProperty
{
public String name = null;
public String value = null;
public String getName() { return name; }
public SignProperty setName(String value) { this.name = value; return this; }
public String getValue() { return value; }
public SignProperty setValue(String value) { this.value = value; return this; }
}
public static enum LogonType
{
Otp,
KeyFile,
Unknown;
}
}
Java ValidateNemIdRequestModel DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /nemidvalidatelogin HTTP/1.1 Host: hcbtas-q-albamfs-api.azurewebsites.net Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"authenticationInfo":{"pid":"String","dn":"String","commonName":"String","rid":"String","cpr":"String","cvr":"String","company":"String","email":"String","signedXml":"String","issuerDn":"String","isYouthCert":false,"certificateType":"Poces","subjectSerialNumber":"String","rememberUserIdToken":"String","logonType":"Otp","certificateSerialNumber":"String","clientCertificate":"AA==","authorizedToRepresent":"String"},"clientFlow":"NemID","status":"Ok","isSuccess":true,"message":"String","userMessage":"String","flowErrorCode":"String","timestamp":"String","transactionIdentifier":"String"}