Class DuoAdminResponseWrapper<T>

java.lang.Object
net.shibboleth.idp.plugin.authn.duo.DuoAdminResponseWrapper<T>
Type Parameters:
T - the class being wrapped
Direct Known Subclasses:
DuoAdminListMapResponseWrapper

public class DuoAdminResponseWrapper<T> extends Object
Handle a generic object returned from the response that will come from the Duo AdminAPI.
Since:
2.1.0
  • Field Details

    • response

      private T response
      the inner response.
    • stat

      private String stat
      the response status.
    • metadata

      @Nullable private Map<String,Object> metadata
      Paging metadata.
  • Constructor Details

    • DuoAdminResponseWrapper

      public DuoAdminResponseWrapper()
  • Method Details

    • getResponse

      @Nonnull public T getResponse()
      Get the inner response.
      Returns:
      inner response
    • getStat

      @Nonnull public String getStat()
      Get the response status.
      Returns:
      response status
    • getMetadata

      @Nullable public Map<String,Object> getMetadata()
      Get the metadata associated with this response.
      Returns:
      the metadata.