Skip to content

Commit 7b548a7

Browse files
committed
Rename backends
1 parent 5c8800d commit 7b548a7

9 files changed

Lines changed: 12 additions & 12 deletions

File tree

authlib/jose/rfc7518/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from .jws_algorithms import register_jws_rfc7518
22
from .jwe_algorithms import register_jwe_rfc7518
33
from .oct_key import OctKey
4-
from ._backends import (
4+
from ._cryptography_backends import (
55
RSAKey, ECKey, ECDHAlgorithm,
66
import_key, load_pem_key, export_key,
77
)

authlib/jose/rfc7518/_backends/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from ._jws import JWS_ALGORITHMS
2+
from ._jwe_alg import JWE_ALG_ALGORITHMS, ECDHAlgorithm
3+
from ._jwe_enc import JWE_ENC_ALGORITHMS
4+
from ._keys import (
5+
RSAKey, ECKey,
6+
load_pem_key, import_key, export_key,
7+
)

authlib/jose/rfc7518/_backends/_jwe_alg_cryptography.py renamed to authlib/jose/rfc7518/_cryptography_backends/_jwe_alg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
urlsafe_b64encode
1818
)
1919
from authlib.jose.rfc7516 import JWEAlgorithm
20-
from ._keys_cryptography import RSAKey, ECKey
20+
from ._keys import RSAKey, ECKey
2121
from ..oct_key import OctKey
2222

2323

authlib/jose/rfc7518/_backends/_jwe_enc_cryptography.py renamed to authlib/jose/rfc7518/_cryptography_backends/_jwe_enc.py

File renamed without changes.

authlib/jose/rfc7518/_backends/_jws_cryptography.py renamed to authlib/jose/rfc7518/_cryptography_backends/_jws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from cryptography.hazmat.primitives.asymmetric import padding
1717
from cryptography.exceptions import InvalidSignature
1818
from authlib.jose.rfc7515 import JWSAlgorithm
19-
from ._keys_cryptography import RSAKey, ECKey
19+
from ._keys import RSAKey, ECKey
2020
from ..util import encode_int, decode_int
2121

2222

File renamed without changes.

authlib/jose/rfc7518/jwe_algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import zlib
2-
from ._backends import JWE_ALG_ALGORITHMS, JWE_ENC_ALGORITHMS
32
from .oct_key import OctKey
3+
from ._cryptography_backends import JWE_ALG_ALGORITHMS, JWE_ENC_ALGORITHMS
44
from ..rfc7516 import JWEAlgorithm, JWEZipAlgorithm, JsonWebEncryption
55

66

authlib/jose/rfc7518/jws_algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
import hmac
1212
import hashlib
13-
from ._backends import JWS_ALGORITHMS
1413
from .oct_key import OctKey
14+
from ._cryptography_backends import JWS_ALGORITHMS
1515
from ..rfc7515 import JWSAlgorithm, JsonWebSignature
1616

1717

0 commit comments

Comments
 (0)