GET | /nemidvalidatelogin |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class ValidateNemIdRequestModel
{
}
open class NemIDFlowResult : FlowResult()
{
var authenticationInfo:AuthenticationInfo? = null
}
open class FlowResult : FlowMessage()
{
var clientFlow:ClientFlow? = null
var status:FlowStatus? = null
var isSuccess:Boolean? = null
var message:String? = null
var userMessage:String? = null
var flowErrorCode:String? = null
}
open class FlowMessage : Body()
{
var timestamp:String? = null
var transactionIdentifier:String? = null
}
open class Body
{
}
enum class ClientFlow
{
NemID,
NemIDSignature,
NemIDKeyFile,
NemIDKeyFileSignature,
NL3Signature,
Invalid,
LoadTest,
}
enum class FlowStatus
{
Ok,
UserCancel,
ClientFlowError,
FlowError,
ValidationError,
}
open class AuthenticationInfo
{
var pid:String? = null
var dn:String? = null
var commonName:String? = null
var rid:String? = null
var cpr:String? = null
var cvr:String? = null
var company:String? = null
var email:String? = null
var signedXml:String? = null
var issuerDn:String? = null
var isYouthCert:Boolean? = null
var certificateType:CertificateType? = null
var subjectSerialNumber:String? = null
var signProperties:IList<SignProperty>? = null
var rememberUserIdToken:String? = null
var logonType:LogonType? = null
var certificateSerialNumber:String? = null
var clientCertificate:ByteArray? = null
var authorizedToRepresent:String? = null
}
enum class CertificateType
{
Poces,
Moces,
Voces,
Foces,
}
open class SignProperty
{
var name:String? = null
var value:String? = null
}
enum class LogonType
{
Otp,
KeyFile,
Unknown,
}
Kotlin 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"}