Class AttestationService
-
- All Implemented Interfaces:
-
com.sap.cloud.mobile.foundation.networking.InterceptorProvider
@Deprecated(message = "Deprecated in SDK 7.0", replaceWith = @ReplaceWith(imports = {}, expression = "IntegrityService")) public final class AttestationService extends MobileService implements InterceptorProvider
-
-
Field Summary
Fields Modifier and Type Field Description private Duration
duration
private Application
application
private String
apiKey
-
Constructor Summary
Constructors Constructor Description AttestationService(Duration duration)
AttestationService()
-
Method Summary
Modifier and Type Method Description final Duration
getDuration()
final Unit
setDuration(Duration duration)
Interceptor
getInterceptor()
Returns interceptor to be used in OkHttpClient. Interceptor
getNetworkInterceptor()
Returns network interceptor to be used in OkHttpClient. Unit
init(Application application, String apiKey)
Initializes the mobile service Unit
reset()
Resets the mobile service to the state that just initialized. Unit
onStateChange(ApplicationState state)
Notified when application state changes. final ServiceResult<AttestationResult>
attest(Boolean force)
final String
getAttestationToken()
final Long
getAttestationTime()
-
Methods inherited from class com.sap.cloud.mobile.foundation.mobileservices.MobileService
enableNetworkPolicy, getApiKey, getApplication, isApplicationInitialized, mayStartNewProcess, setApiKey, setApplication
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDuration
final Duration getDuration()
-
setDuration
final Unit setDuration(Duration duration)
-
getInterceptor
Interceptor getInterceptor()
Returns interceptor to be used in OkHttpClient.
-
getNetworkInterceptor
Interceptor getNetworkInterceptor()
Returns network interceptor to be used in OkHttpClient.
-
init
Unit init(Application application, String apiKey)
Initializes the mobile service
-
reset
Unit reset()
Resets the mobile service to the state that just initialized.
-
onStateChange
Unit onStateChange(ApplicationState state)
Notified when application state changes. This function will be called on Main thread.
-
attest
final ServiceResult<AttestationResult> attest(Boolean force)
-
getAttestationToken
final String getAttestationToken()
-
getAttestationTime
final Long getAttestationTime()
-
-
-
-