File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- """Verifier and signer that use the ``cryptography`` library.
15
+ """RSA verifier and signer that use the ``cryptography`` library.
16
16
17
17
This is a much faster implementation than the default (in
18
18
``google.auth.crypt._python_rsa``), which depends on the pure-Python
33
33
_SHA256 = hashes .SHA256 ()
34
34
35
35
36
- class CryptographySigner (base .Signer , base ._FromServiceAccountMixin ):
36
+ class RSASigner (base .Signer , base ._FromServiceAccountMixin ):
37
37
"""Signs messages with a cryptography ``PKey`` private key.
38
38
39
39
Args:
@@ -61,14 +61,14 @@ def sign(self, message):
61
61
62
62
@classmethod
63
63
def from_string (cls , key , key_id = None ):
64
- """Construct a CryptographySigner from a private key in PEM format.
64
+ """Construct a RSASigner from a private key in PEM format.
65
65
66
66
Args:
67
67
key (Union[bytes, str]): Private key in PEM format.
68
68
key_id (str): An optional key id used to identify the private key.
69
69
70
70
Returns:
71
- google.auth.crypt._cryptography_rsa.CryptographySigner : The
71
+ google.auth.crypt._cryptography_rsa.RSASigner : The
72
72
constructed signer.
73
73
74
74
Raises:
Original file line number Diff line number Diff line change 17
17
try :
18
18
from google .auth .crypt import _cryptography_rsa
19
19
20
- RSASigner = _cryptography_rsa .CryptographySigner
20
+ RSASigner = _cryptography_rsa .RSASigner
21
21
RSAVerifier = NotImplemented
22
22
except ImportError :
23
23
from google .auth .crypt import _python_rsa
You can’t perform that action at this time.
0 commit comments