request.authorizationΒΆ
Initialization for the authorization step of the request pipeline.
SubmodulesΒΆ
ClassesΒΆ
Abstract base class for authorization components. |
|
Ensures the device is allowed to use the requested certificate profile. |
|
Composite authorization handler for grouping and executing multiple authorization components. |
|
Ensure that if this is an AOKI request, we have a matching DevOwnerID to the IDevID. |
|
Ensures the request is within the authorized domain. |
|
Ensures the request is under the correct protocol: CMP or EST. |
|
Composite authorization handler for EST requests. |
|
Composite authorization handler for EST requests. |
Package ContentsΒΆ
- class request.authorization.AuthorizationComponent[source]ΒΆ
Bases:
abc.ABCAbstract base class for authorization components.
- class request.authorization.CertificateProfileAuthorization[source]ΒΆ
Bases:
AuthorizationComponent,trustpoint.logger.LoggerMixinEnsures the device is allowed to use the requested certificate profile.
- class request.authorization.CompositeAuthorization[source]ΒΆ
Bases:
AuthorizationComponent,trustpoint.logger.LoggerMixinComposite authorization handler for grouping and executing multiple authorization components.
- components: list[AuthorizationComponent] = []ΒΆ
- 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
- class request.authorization.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.DomainScopeValidation[source]ΒΆ
Bases:
AuthorizationComponent,trustpoint.logger.LoggerMixinEnsures the request is within the authorized domain.
- class request.authorization.ProtocolAuthorization(allowed_protocols)[source]ΒΆ
Bases:
AuthorizationComponent,trustpoint.logger.LoggerMixinEnsures the request is under the correct protocol: CMP or EST.
- Parameters:
allowed_protocols (list[str])
- allowed_protocolsΒΆ
- class request.authorization.CmpAuthorization(allowed_operations=None)[source]ΒΆ
Bases:
request.authorization.base.CompositeAuthorizationComposite authorization handler for EST requests.
- Parameters:
allowed_operations (list[str] | None)
- class request.authorization.EstAuthorization(allowed_operations=None)[source]ΒΆ
Bases:
request.authorization.base.CompositeAuthorizationComposite authorization handler for EST requests.
- Parameters:
allowed_operations (list[str] | None)