be.fgov.ehealth.etee.crypto.status
Interface CryptoResult<T>

All Known Implementing Classes:
BasicCryptoResult

public interface CryptoResult<T>

Basic result for information on the cryptographic process.


Method Summary
 void copyNotifications(CryptoResult<?> subResult)
          Copies notifications of subresults to this one.
 T getData()
           
 java.util.List<NotificationError> getErrors()
           
 NotificationFatal getFatal()
           
 java.util.List<NotificationWarning> getWarnings()
           
 boolean hasData()
           
 boolean hasErrors()
           
 boolean hasWarnings()
           
 

Method Detail

hasData

boolean hasData()
Returns:
true if the result contains expected data.

hasErrors

boolean hasErrors()
Returns:
true if the result contains a fatal notification or at least one notificationerror.

hasWarnings

boolean hasWarnings()
Returns:
true if the result contains at least one notificationwarning.

getErrors

java.util.List<NotificationError> getErrors()
Returns:
list of NotificationErrors.

getWarnings

java.util.List<NotificationWarning> getWarnings()
Returns:
list of NotificationWarnings

getFatal

NotificationFatal getFatal()
Returns:
fatal notification

getData

T getData()
Returns:
data processed as result of the cryptographic process

copyNotifications

void copyNotifications(CryptoResult<?> subResult)
Copies notifications of subresults to this one.

Parameters:
subResult -


Copyright © 2018 eHealth. All Rights Reserved.