Class ShieldClient

java.lang.Object
dev.getshield.ShieldClient

public class ShieldClient extends Object
Official Shield SDK client for Java.
ShieldClient client = new ShieldClient("sk_live_xxx");
ShieldSession session = client.sessions().create("Deal with Acme Corp");
  • Field Details

  • Constructor Details

    • ShieldClient

      public ShieldClient(String apiKey)
    • ShieldClient

      public ShieldClient(String apiKey, String baseUrl)
    • ShieldClient

      public ShieldClient(String apiKey, String baseUrl, String hmacSecret)
  • Method Details

    • sessions

      public SessionsResource sessions()
    • events

      public EventsResource events()
    • verify

      public VerifyResource verify()
    • request

      public com.fasterxml.jackson.databind.JsonNode request(String method, String path, Map<String,Object> body)
      Perform an HTTP request to the Shield API.
    • requestBytes

      public byte[] requestBytes(String path)
      Perform a GET request that returns raw bytes (for PDF export).
    • getObjectMapper

      public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()