pyeudiw.tests.trust package
Subpackages
- pyeudiw.tests.trust.handler package
- Submodules
- pyeudiw.tests.trust.handler.test_direct_trust module
fake_get_http_url()test_direct_trust_build_issuer_jwk_endpoint()test_direct_trust_build_issuer_metadata_endpoint()test_direct_trust_extract_jwks_from_jwk_metadata_by_reference()test_direct_trust_extract_jwks_from_jwk_metadata_by_value()test_direct_trust_extract_jwks_from_jwk_metadata_invalid()test_direct_trust_jwk()test_direct_trust_jwk_not_conformat_url()test_is_url()
- pyeudiw.tests.trust.handler.test_direct_trust_jar module
- pyeudiw.tests.trust.handler.test_federation module
- pyeudiw.tests.trust.handler.test_x509 module
- Module contents
Submodules
pyeudiw.tests.trust.mock_trust_handler module
- class pyeudiw.tests.trust.mock_trust_handler.MockTrustHandler(*args, **kwargs)[source]
Bases:
TrustHandlerInterfaceMock realization of TrustEvaluator for testing purposes only
- extract_and_update_trust_materials(issuer: str, trust_source: TrustSourceData) TrustSourceData[source]
Extract the trust material of a certain issuer using a trust handler implementation.
- Parameters:
issuer (str) – The issuer
trust_source (TrustSourceData) – The trust source to update
- Returns:
The updated trust source
- Return type:
- extract_jwt_header_trust_parameters(trust_source: TrustSourceData) dict[source]
Parse a trust source to extract the trust parameters (in the source) that can be used as a JWT header according to what this very own trust evaluation mechanism is capable of understanding.
Some trust evaluation mechanism is not associated to any JWT header mechanism, in which case an empty dictionary is returned.
- get_metadata(issuer: str, trust_source: TrustSourceData) dict[source]
Get the metadata of a certain issuer if is needed by the specifics.
- Parameters:
issuer (str) – The issuer
trust_source (TrustSourceData) – The trust source to update
- Returns:
The updated trust source
- Return type:
- class pyeudiw.tests.trust.mock_trust_handler.NonConformatTrustHandler[source]
Bases:
object- extract(issuer: str, trust_source: TrustSourceData) TrustSourceData[source]
- get_metadata(issuer: str, trust_source: TrustSourceData) dict[source]
- class pyeudiw.tests.trust.mock_trust_handler.UpdateTrustHandler(*args, **kwargs)[source]
Bases:
MockTrustHandlerMock realization of TrustEvaluator for testing purposes only
- extract_and_update_trust_materials(issuer: str, trust_source: TrustSourceData) TrustSourceData[source]
Extract the trust material of a certain issuer using a trust handler implementation.
- Parameters:
issuer (str) – The issuer
trust_source (TrustSourceData) – The trust source to update
- Returns:
The updated trust source
- Return type:
- extract_jwt_header_trust_parameters(trust_source: TrustSourceData) dict[source]
Parse a trust source to extract the trust parameters (in the source) that can be used as a JWT header according to what this very own trust evaluation mechanism is capable of understanding.
Some trust evaluation mechanism is not associated to any JWT header mechanism, in which case an empty dictionary is returned.