All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.unbound.provider.kmip.response.FailureResponse Maven / Gradle / Ivy

Go to download

This is a collection of JAVA libraries that implement Unbound cryptographic classes for JAVA provider, PKCS11 wrapper, cryptoki, and advapi

There is a newer version: 42761
Show newest version
package com.unbound.provider.kmip.response;

import com.unbound.common.Log;
import com.unbound.provider.kmip.KMIP;
import com.unbound.provider.kmip.KMIPConvertException;
import com.unbound.provider.kmip.KMIPConverter;

/**
 * Created by saar.peer on 06-Nov-16.
 */
public class FailureResponse extends ResponseItem
{

  public String resultTitle = null;

  public FailureResponse()
  {
    super(0);
  }

  public FailureResponse(Integer resultReason, String message, String resultTitle)
  {
    this(resultReason, message, KMIP.ResultStatus.OperationFailed, resultTitle);
  }

  public FailureResponse(Integer resultReason, String message, int status, String resultTitle)
  {
    super(0);

    resultStatus = status;
    reason = resultReason;
    resultMsg = message;
    this.resultTitle = resultTitle;
  }

  @Override
  public void convert(KMIPConverter converter) throws KMIPConvertException
  {
  }

  public void log()
  {
    Log.print("FailureResponse").log("resultTitle", resultTitle).end();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy