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 .xml suffix or ?format=xml
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/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <NemIDFlowResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SPS.Core.Api.Frame.NemID"> <Timestamp xmlns="http://schemas.datacontract.org/2004/07/SPS.Core.Api.Frame">String</Timestamp> <TransactionIdentifier xmlns="http://schemas.datacontract.org/2004/07/SPS.Core.Api.Frame">String</TransactionIdentifier> <ClientFlow xmlns="http://schemas.datacontract.org/2004/07/SPS.Core.Api.Frame">NemID</ClientFlow> <FlowErrorCode xmlns="http://schemas.datacontract.org/2004/07/SPS.Core.Api.Frame">String</FlowErrorCode> <Message xmlns="http://schemas.datacontract.org/2004/07/SPS.Core.Api.Frame">String</Message> <Status xmlns="http://schemas.datacontract.org/2004/07/SPS.Core.Api.Frame">Ok</Status> <UserMessage xmlns="http://schemas.datacontract.org/2004/07/SPS.Core.Api.Frame">String</UserMessage> <AuthenticationInfo> <AuthorizedToRepresent>String</AuthorizedToRepresent> <CertificateSerialNumber>String</CertificateSerialNumber> <CertificateType>Poces</CertificateType> <ClientCertificate>AA==</ClientCertificate> <CommonName>String</CommonName> <Company>String</Company> <Cpr>String</Cpr> <Cvr>String</Cvr> <Dn>String</Dn> <Email>String</Email> <IsYouthCert>false</IsYouthCert> <IssuerDn>String</IssuerDn> <LogonType>Otp</LogonType> <Pid>String</Pid> <RememberUserIdToken>String</RememberUserIdToken> <Rid>String</Rid> <SignProperties i:nil="true" /> <SignedXml>String</SignedXml> <SubjectSerialNumber>String</SubjectSerialNumber> </AuthenticationInfo> </NemIDFlowResult>