Skip to content

Commit

Permalink
Renaming cryptography signer.
Browse files Browse the repository at this point in the history
Also making "RSA" explicit in `_cryptography_rsa` module docstring.
  • Loading branch information
dhermes committed Aug 14, 2017
1 parent 17c3414 commit a414ddb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions google/auth/crypt/_cryptography_rsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

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


class CryptographySigner(base.Signer, base._FromServiceAccountMixin):
class RSASigner(base.Signer, base._FromServiceAccountMixin):
"""Signs messages with a cryptography ``PKey`` private key.
Args:
Expand Down Expand Up @@ -61,14 +61,14 @@ def sign(self, message):

@classmethod
def from_string(cls, key, key_id=None):
"""Construct a CryptographySigner from a private key in PEM format.
"""Construct a RSASigner from a private key in PEM format.
Args:
key (Union[bytes, str]): Private key in PEM format.
key_id (str): An optional key id used to identify the private key.
Returns:
google.auth.crypt._cryptography_rsa.CryptographySigner: The
google.auth.crypt._cryptography_rsa.RSASigner: The
constructed signer.
Raises:
Expand Down
2 changes: 1 addition & 1 deletion google/auth/crypt/rsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
try:
from google.auth.crypt import _cryptography_rsa

RSASigner = _cryptography_rsa.CryptographySigner
RSASigner = _cryptography_rsa.RSASigner
RSAVerifier = NotImplemented
except ImportError:
from google.auth.crypt import _python_rsa
Expand Down

0 comments on commit a414ddb

Please sign in to comment.