@@ -90,7 +90,7 @@ def decode_base64_and_inflate(value, ignore_zip=False):
9090 @staticmethod
9191 def deflate_and_base64_encode (value ):
9292 """
93- Deflates and the base64 encodes a string
93+ Deflates and then base64 encodes a string
9494 :param value: The string to deflate and encode
9595 :type value: string
9696 :returns: The deflated and encoded string
@@ -103,13 +103,13 @@ def format_cert(cert, heads=True):
103103 """
104104 Returns a x509 cert (adding header & footer if required).
105105
106- :param cert: A x509 unformated cert
106+ :param cert: A x509 unformatted cert
107107 :type: string
108108
109109 :param heads: True if we want to include head and footer
110110 :type: boolean
111111
112- :returns: Formated cert
112+ :returns: Formatted cert
113113 :rtype: string
114114 """
115115 x509_cert = cert .replace ('\x0D ' , '' )
@@ -519,16 +519,16 @@ def calculate_x509_fingerprint(x509_cert, alg='sha1'):
519519 @staticmethod
520520 def format_finger_print (fingerprint ):
521521 """
522- Formates a fingerprint.
522+ Formats a fingerprint.
523523
524524 :param fingerprint: fingerprint
525525 :type: string
526526
527- :returns: Formated fingerprint
527+ :returns: Formatted fingerprint
528528 :rtype: string
529529 """
530- formated_fingerprint = fingerprint .replace (':' , '' )
531- return formated_fingerprint .lower ()
530+ formatted_fingerprint = fingerprint .replace (':' , '' )
531+ return formatted_fingerprint .lower ()
532532
533533 @staticmethod
534534 def generate_name_id (value , sp_nq , sp_format , cert = None , debug = False , nq = None ):
@@ -723,7 +723,7 @@ def validate_sign(xml, cert=None, fingerprint=None, fingerprintalg='sha1', valid
723723 :param xml: The element we should validate
724724 :type: string | Document
725725
726- :param cert: The pubic cert
726+ :param cert: The public cert
727727 :type: string
728728
729729 :param fingerprint: The fingerprint of the public cert
@@ -772,7 +772,7 @@ def validate_metadata_sign(xml, cert=None, fingerprint=None, fingerprintalg='sha
772772 :param xml: The element we should validate
773773 :type: string | Document
774774
775- :param cert: The pubic cert
775+ :param cert: The public cert
776776 :type: string
777777
778778 :param fingerprint: The fingerprint of the public cert
@@ -825,7 +825,7 @@ def validate_node_sign(signature_node, elem, cert=None, fingerprint=None, finger
825825 :param xml: The element we should validate
826826 :type: Document
827827
828- :param cert: The pubic cert
828+ :param cert: The public cert
829829 :type: string
830830
831831 :param fingerprint: The fingerprint of the public cert
@@ -903,7 +903,7 @@ def sign_binary(msg, key, algorithm=xmlsec.Transform.RSA_SHA1, debug=False):
903903 @staticmethod
904904 def validate_binary_sign (signed_query , signature , cert = None , algorithm = OneLogin_Saml2_Constants .RSA_SHA1 , debug = False ):
905905 """
906- Validates signed bynary data (Used to validate GET Signature).
906+ Validates signed binary data (Used to validate GET Signature).
907907
908908 :param signed_query: The element we should validate
909909 :type: string
@@ -912,7 +912,7 @@ def validate_binary_sign(signed_query, signature, cert=None, algorithm=OneLogin_
912912 :param signature: The signature that will be validate
913913 :type: string
914914
915- :param cert: The pubic cert
915+ :param cert: The public cert
916916 :type: string
917917
918918 :param algorithm: Signature algorithm
0 commit comments