當前位置: 首頁>>代碼示例>>Python>>正文


Python _Reasons.UNSUPPORTED_X509屬性代碼示例

本文整理匯總了Python中cryptography.exceptions._Reasons.UNSUPPORTED_X509屬性的典型用法代碼示例。如果您正苦於以下問題:Python _Reasons.UNSUPPORTED_X509屬性的具體用法?Python _Reasons.UNSUPPORTED_X509怎麽用?Python _Reasons.UNSUPPORTED_X509使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在cryptography.exceptions._Reasons的用法示例。


在下文中一共展示了_Reasons.UNSUPPORTED_X509屬性的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: load_pem_x509_certificate

# 需要導入模塊: from cryptography.exceptions import _Reasons [as 別名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_X509 [as 別名]
def load_pem_x509_certificate(self, data):
        for b in self._filtered_backends(X509Backend):
            return b.load_pem_x509_certificate(data)

        raise UnsupportedAlgorithm(
            "This backend does not support X.509.",
            _Reasons.UNSUPPORTED_X509
        ) 
開發者ID:DirceuSilvaLabs,項目名稱:noc-orchestrator,代碼行數:10,代碼來源:multibackend.py

示例2: load_der_x509_certificate

# 需要導入模塊: from cryptography.exceptions import _Reasons [as 別名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_X509 [as 別名]
def load_der_x509_certificate(self, data):
        for b in self._filtered_backends(X509Backend):
            return b.load_der_x509_certificate(data)

        raise UnsupportedAlgorithm(
            "This backend does not support X.509.",
            _Reasons.UNSUPPORTED_X509
        ) 
開發者ID:DirceuSilvaLabs,項目名稱:noc-orchestrator,代碼行數:10,代碼來源:multibackend.py

示例3: load_pem_x509_crl

# 需要導入模塊: from cryptography.exceptions import _Reasons [as 別名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_X509 [as 別名]
def load_pem_x509_crl(self, data):
        for b in self._filtered_backends(X509Backend):
            return b.load_pem_x509_crl(data)

        raise UnsupportedAlgorithm(
            "This backend does not support X.509.",
            _Reasons.UNSUPPORTED_X509
        ) 
開發者ID:DirceuSilvaLabs,項目名稱:noc-orchestrator,代碼行數:10,代碼來源:multibackend.py

示例4: load_der_x509_crl

# 需要導入模塊: from cryptography.exceptions import _Reasons [as 別名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_X509 [as 別名]
def load_der_x509_crl(self, data):
        for b in self._filtered_backends(X509Backend):
            return b.load_der_x509_crl(data)

        raise UnsupportedAlgorithm(
            "This backend does not support X.509.",
            _Reasons.UNSUPPORTED_X509
        ) 
開發者ID:DirceuSilvaLabs,項目名稱:noc-orchestrator,代碼行數:10,代碼來源:multibackend.py

示例5: load_der_x509_csr

# 需要導入模塊: from cryptography.exceptions import _Reasons [as 別名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_X509 [as 別名]
def load_der_x509_csr(self, data):
        for b in self._filtered_backends(X509Backend):
            return b.load_der_x509_csr(data)

        raise UnsupportedAlgorithm(
            "This backend does not support X.509.",
            _Reasons.UNSUPPORTED_X509
        ) 
開發者ID:DirceuSilvaLabs,項目名稱:noc-orchestrator,代碼行數:10,代碼來源:multibackend.py

示例6: create_x509_csr

# 需要導入模塊: from cryptography.exceptions import _Reasons [as 別名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_X509 [as 別名]
def create_x509_csr(self, builder, private_key, algorithm):
        for b in self._filtered_backends(X509Backend):
            return b.create_x509_csr(builder, private_key, algorithm)

        raise UnsupportedAlgorithm(
            "This backend does not support X.509.",
            _Reasons.UNSUPPORTED_X509
        ) 
開發者ID:DirceuSilvaLabs,項目名稱:noc-orchestrator,代碼行數:10,代碼來源:multibackend.py

示例7: create_x509_certificate

# 需要導入模塊: from cryptography.exceptions import _Reasons [as 別名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_X509 [as 別名]
def create_x509_certificate(self, builder, private_key, algorithm):
        for b in self._filtered_backends(X509Backend):
            return b.create_x509_certificate(builder, private_key, algorithm)

        raise UnsupportedAlgorithm(
            "This backend does not support X.509.",
            _Reasons.UNSUPPORTED_X509
        ) 
開發者ID:DirceuSilvaLabs,項目名稱:noc-orchestrator,代碼行數:10,代碼來源:multibackend.py

示例8: create_x509_crl

# 需要導入模塊: from cryptography.exceptions import _Reasons [as 別名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_X509 [as 別名]
def create_x509_crl(self, builder, private_key, algorithm):
        for b in self._filtered_backends(X509Backend):
            return b.create_x509_crl(builder, private_key, algorithm)

        raise UnsupportedAlgorithm(
            "This backend does not support X.509.",
            _Reasons.UNSUPPORTED_X509
        ) 
開發者ID:DirceuSilvaLabs,項目名稱:noc-orchestrator,代碼行數:10,代碼來源:multibackend.py

示例9: create_x509_revoked_certificate

# 需要導入模塊: from cryptography.exceptions import _Reasons [as 別名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_X509 [as 別名]
def create_x509_revoked_certificate(self, builder):
        for b in self._filtered_backends(X509Backend):
            return b.create_x509_revoked_certificate(builder)

        raise UnsupportedAlgorithm(
            "This backend does not support X.509.",
            _Reasons.UNSUPPORTED_X509
        ) 
開發者ID:DirceuSilvaLabs,項目名稱:noc-orchestrator,代碼行數:10,代碼來源:multibackend.py

示例10: load_pem_x509_csr

# 需要導入模塊: from cryptography.exceptions import _Reasons [as 別名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_X509 [as 別名]
def load_pem_x509_csr(self, data):
        for b in self._filtered_backends(X509Backend):
            return b.load_pem_x509_csr(data)

        raise UnsupportedAlgorithm(
            "This backend does not support X.509.",
            _Reasons.UNSUPPORTED_X509
        ) 
開發者ID:DirceuSilvaLabs,項目名稱:noc-orchestrator,代碼行數:10,代碼來源:multibackend.py

示例11: x509_name_bytes

# 需要導入模塊: from cryptography.exceptions import _Reasons [as 別名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_X509 [as 別名]
def x509_name_bytes(self, name):
        for b in self._filtered_backends(X509Backend):
            return b.x509_name_bytes(name)

        raise UnsupportedAlgorithm(
            "This backend does not support X.509.",
            _Reasons.UNSUPPORTED_X509
        ) 
開發者ID:lordmuffin,項目名稱:aws-cfn-plex,代碼行數:10,代碼來源:multibackend.py

示例12: load_pem_x509_certificate

# 需要導入模塊: from cryptography.exceptions import _Reasons [as 別名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_X509 [as 別名]
def load_pem_x509_certificate(self, data):
        for b in self._filtered_backends(
            X509Backend
        ):
            return b.load_pem_x509_certificate(data)

        raise UnsupportedAlgorithm(
            "This backend does not support X.509.",
            _Reasons.UNSUPPORTED_X509
        ) 
開發者ID:yuxiaokui,項目名稱:Intranet-Penetration,代碼行數:12,代碼來源:multibackend.py

示例13: load_der_x509_certificate

# 需要導入模塊: from cryptography.exceptions import _Reasons [as 別名]
# 或者: from cryptography.exceptions._Reasons import UNSUPPORTED_X509 [as 別名]
def load_der_x509_certificate(self, data):
        for b in self._filtered_backends(
            X509Backend
        ):
            return b.load_der_x509_certificate(data)

        raise UnsupportedAlgorithm(
            "This backend does not support X.509.",
            _Reasons.UNSUPPORTED_X509
        ) 
開發者ID:yuxiaokui,項目名稱:Intranet-Penetration,代碼行數:12,代碼來源:multibackend.py


注:本文中的cryptography.exceptions._Reasons.UNSUPPORTED_X509屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。