# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .http_authentication_py3 import HttpAuthentication
[docs]class ClientCertAuthentication(HttpAuthentication):
"""ClientCertAuthentication.
All required parameters must be populated in order to send to Azure.
:param type: Required. Constant filled by server.
:type type: str
:param password: Gets or sets the certificate password, return value will
always be empty.
:type password: str
:param pfx: Gets or sets the pfx certificate. Accepts certification in
base64 encoding, return value will always be empty.
:type pfx: str
:param certificate_thumbprint: Gets or sets the certificate thumbprint.
:type certificate_thumbprint: str
:param certificate_expiration_date: Gets or sets the certificate
expiration date.
:type certificate_expiration_date: datetime
:param certificate_subject_name: Gets or sets the certificate subject
name.
:type certificate_subject_name: str
"""
_validation = {
'type': {'required': True},
}
_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'password': {'key': 'password', 'type': 'str'},
'pfx': {'key': 'pfx', 'type': 'str'},
'certificate_thumbprint': {'key': 'certificateThumbprint', 'type': 'str'},
'certificate_expiration_date': {'key': 'certificateExpirationDate', 'type': 'iso-8601'},
'certificate_subject_name': {'key': 'certificateSubjectName', 'type': 'str'},
}
def __init__(self, *, password: str=None, pfx: str=None, certificate_thumbprint: str=None, certificate_expiration_date=None, certificate_subject_name: str=None, **kwargs) -> None:
super(ClientCertAuthentication, self).__init__(**kwargs)
self.password = password
self.pfx = pfx
self.certificate_thumbprint = certificate_thumbprint
self.certificate_expiration_date = certificate_expiration_date
self.certificate_subject_name = certificate_subject_name
self.type = 'ClientCertificate'