{
    "title": "IdentityService",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.security.IdentityService",
    "type": "object",
    "required": [
        "identityServiceName",
        "serviceAuthenticationScheme"
    ],
    "properties": {
        "identityServiceType": {
            "javaType": "com.sos.joc.model.security.IdentityServiceTypes",
            "type": "string",
            "enum": [
                "SHIRO",
                "VAULT",
                "VAULT-JOC",
                "VAULT-JOC-ACTIVE",
                "LDAP",
                "LDAP-JOC",
                "JOC"
            ]
        },
        "identityServiceName": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "serviceAuthenticationScheme": {
            "javaType": "com.sos.joc.model.security.IdentityServiceAuthenticationScheme",
            "type": "string",
            "enum": [
                "SINGLE-FACTOR",
                "TWO-FACTOR"
            ]
        },
        "ordering": {
            "type": "integer",
            "minimum": 0
        },
        "disabled": {
            "description": "controls if the object is disabled",
            "type": "boolean",
            "default": false
        },
        "singleFactorCert": {
            "description": "Identity Service allows logon via certificate",
            "type": "boolean",
            "default": false
        },
        "singleFactorPwd": {
            "description": "Identity Service allows login via user account/password",
            "type": "boolean",
            "default": false
        },
        "required": {
            "description": "controls if the identity service is required",
            "type": "boolean",
            "default": false
        },
        "auditLog": {
            "javaType": "com.sos.joc.model.audit.AuditParams",
            "type": "object",
            "properties": {
                "comment": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                },
                "timeSpent": {
                    "type": "integer",
                    "minimum": 0
                },
                "ticketLink": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                }
            }
        }
    }
}