Interface RxPep<T>
- Type Parameters:
T
- the generic type
- All Known Implementing Classes:
AbstractRxPep
,ReactivePep
public interface RxPep<T>
Reactive Pep interface Created by chattapa on 10/23/16.
-
Method Summary
Modifier and TypeMethodDescriptionrx.Observable<Boolean>
Registers the Pep at PMP.It returns a valid instance ofIPolicyEnforcementPoint
getState()
Returns one of the following RxPep states: REGISTRATION_DONE_SUCCESSFULLY: Pep is already registered at PMP. REGISTRATION_FAILED: Pep failed to register at PMP. REGISTRATION_NOT_STARTED: Registration has not been started yet and Pep needs to be initialized for the registration to be started. REGISTRATION_UNDER_PROCESS: Registration is being processed.
-
Method Details
-
createInstanceAPI
T createInstanceAPI()- Returns:
- the generic type
-
doRegisterAtPMP
rx.Observable<Boolean> doRegisterAtPMP()Registers the Pep at PMP.- Returns:
- true if Pep is registered at PMP and returns false if Pep had been registered before or registration is failed.
-
getPolicyEnforcementPoint
IPolicyEnforcementPoint getPolicyEnforcementPoint()It returns a valid instance ofIPolicyEnforcementPoint
- Returns:
IPolicyEnforcementPoint
-
getState
RxPepState getState()Returns one of the following RxPep states:- REGISTRATION_DONE_SUCCESSFULLY: Pep is already registered at PMP.
- REGISTRATION_FAILED: Pep failed to register at PMP.
- REGISTRATION_NOT_STARTED: Registration has not been started yet and Pep needs to be initialized for the registration to be started.
- REGISTRATION_UNDER_PROCESS: Registration is being processed.
- Returns:
- the current RxPep state
-