Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issuer validation handling in JWSHelper and split JWSHelper into se… #319

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyeudiw/federation/statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
EntityStatementPayload
)
from pydantic import ValidationError
from pyeudiw.jwt.jws_helper import JWSHelper
from pyeudiw.jwt.utils import decode_jwt_payload, decode_jwt_header
from pyeudiw.jwt import JWSHelper
from pyeudiw.jwk import find_jwk_by_kid
from pyeudiw.tools.utils import get_http_url

Expand Down
10 changes: 5 additions & 5 deletions pyeudiw/federation/trust_chain_validator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
from pyeudiw.jwt.jws_helper import JWSHelper
from pyeudiw.tools.utils import iat_now
from pyeudiw.jwt import JWSHelper
from pyeudiw.jwt.utils import decode_jwt_payload, decode_jwt_header
from pyeudiw.federation import is_es
from pyeudiw.federation.policy import TrustChainPolicy
Expand Down Expand Up @@ -32,9 +32,9 @@ def __init__(
**kwargs,
) -> None:
"""
Generates a new StaticTrustChainValidator istance
Generates a new StaticTrustChainValidator instance

:param static_trust_chain: the list of JWTs, containing the EC, componing the static tust chain
:param static_trust_chain: the list of JWTs, containing the EC, composing the static trust chain
:type static_trust_chain: list[str]
:param trust_anchor_jwks: the list of trust anchor jwks
:type trust_anchor_jwks: list[dict]
Expand All @@ -61,7 +61,7 @@ def _check_expired(self, exp: int) -> bool:
"""
Checks if exp value is expired.

:param exp: an integer that represent the timestemp to check
:param exp: an integer that represent the timestamp to check
:type exp: int
:returns: True if exp is expired and False otherwise
:rtype: bool
Expand All @@ -73,7 +73,7 @@ def _validate_exp(self, exp: int) -> None:
"""
Checks if exp value is expired.

:param exp: an integer that represent the timestemp to check
:param exp: an integer that represent the timestamp to check
:type exp: int

:raises TimeValidationError: if exp value is expired
Expand Down
Loading
Loading