request.authorization.baseΒΆ
Provides the AuthorizationComponent class for authorization logic.
ClassesΒΆ
Abstract base class for authorization components. |
|
Ensures the request is under the correct protocol: CMP or EST. |
|
Ensures the device is allowed to use the requested certificate profile. |
|
Ensures the request is within the authorized domain. |
|
Ensure that if this is an AOKI request, we have a matching DevOwnerID to the IDevID. |
|
Composite authorization handler for grouping and executing multiple authorization components. |
Module ContentsΒΆ
- class request.authorization.base.AuthorizationComponent[source]ΒΆ
Bases:
abc.ABCAbstract base class for authorization components.
- class request.authorization.base.ProtocolAuthorization(allowed_protocols)[source]ΒΆ
Bases:
AuthorizationComponent,trustpoint.logger.LoggerMixinEnsures the request is under the correct protocol: CMP or EST.
- Parameters:
allowed_protocols (list[str])
- class request.authorization.base.CertificateProfileAuthorization[source]ΒΆ
Bases:
AuthorizationComponent,trustpoint.logger.LoggerMixinEnsures the device is allowed to use the requested certificate profile.
- class request.authorization.base.DomainScopeValidation[source]ΒΆ
Bases:
AuthorizationComponent,trustpoint.logger.LoggerMixinEnsures the request is within the authorized domain.
- class request.authorization.base.DevOwnerIDAuthorization[source]ΒΆ
Bases:
AuthorizationComponent,trustpoint.logger.LoggerMixinEnsure that if this is an AOKI request, we have a matching DevOwnerID to the IDevID.
- class request.authorization.base.CompositeAuthorization[source]ΒΆ
Bases:
AuthorizationComponent,trustpoint.logger.LoggerMixinComposite authorization handler for grouping and executing multiple authorization components.
- components: list[AuthorizationComponent] = [][source]ΒΆ
- add(component)[source]ΒΆ
Add a new authorization component to the composite.
- Parameters:
component (AuthorizationComponent)
- Return type:
None
- remove(component)[source]ΒΆ
Remove an authorization component from the composite.
- Parameters:
component (AuthorizationComponent)
- Return type:
None