Class TrustTokenOperationDone


  • @Beta
    public class TrustTokenOperationDone
    extends java.lang.Object
    Fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received.
    • Constructor Detail

      • TrustTokenOperationDone

        public TrustTokenOperationDone​(TrustTokenOperationDone.Status status,
                                       TrustTokenOperationType type,
                                       RequestId requestId,
                                       java.util.Optional<java.lang.String> topLevelOrigin,
                                       java.util.Optional<java.lang.String> issuerOrigin,
                                       java.util.Optional<java.lang.Integer> issuedTokenCount)
    • Method Detail

      • getStatus

        public TrustTokenOperationDone.Status getStatus()
        Detailed success or error status of the operation. 'AlreadyExists' also signifies a successful operation, as the result of the operation already exists und thus, the operation was abort preemptively (e.g. a cache hit).
      • getRequestId

        public RequestId getRequestId()
      • getTopLevelOrigin

        public java.util.Optional<java.lang.String> getTopLevelOrigin()
        Top level origin. The context in which the operation was attempted.
      • getIssuerOrigin

        public java.util.Optional<java.lang.String> getIssuerOrigin()
        Origin of the issuer in case of a "Issuance" or "Redemption" operation.
      • getIssuedTokenCount

        public java.util.Optional<java.lang.Integer> getIssuedTokenCount()
        The number of obtained Trust Tokens on a successful "Issuance" operation.