Skip to content

Commit a414ddb

Browse files
committed
Renaming cryptography signer.
Also making "RSA" explicit in `_cryptography_rsa` module docstring.
1 parent 17c3414 commit a414ddb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

google/auth/crypt/_cryptography_rsa.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"""Verifier and signer that use the ``cryptography`` library.
15+
"""RSA verifier and signer that use the ``cryptography`` library.
1616
1717
This is a much faster implementation than the default (in
1818
``google.auth.crypt._python_rsa``), which depends on the pure-Python
@@ -33,7 +33,7 @@
3333
_SHA256 = hashes.SHA256()
3434

3535

36-
class CryptographySigner(base.Signer, base._FromServiceAccountMixin):
36+
class RSASigner(base.Signer, base._FromServiceAccountMixin):
3737
"""Signs messages with a cryptography ``PKey`` private key.
3838
3939
Args:
@@ -61,14 +61,14 @@ def sign(self, message):
6161

6262
@classmethod
6363
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.
6565
6666
Args:
6767
key (Union[bytes, str]): Private key in PEM format.
6868
key_id (str): An optional key id used to identify the private key.
6969
7070
Returns:
71-
google.auth.crypt._cryptography_rsa.CryptographySigner: The
71+
google.auth.crypt._cryptography_rsa.RSASigner: The
7272
constructed signer.
7373
7474
Raises:

google/auth/crypt/rsa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
try:
1818
from google.auth.crypt import _cryptography_rsa
1919

20-
RSASigner = _cryptography_rsa.CryptographySigner
20+
RSASigner = _cryptography_rsa.RSASigner
2121
RSAVerifier = NotImplemented
2222
except ImportError:
2323
from google.auth.crypt import _python_rsa

0 commit comments

Comments
 (0)