How to use StatusEntry API key pairs to authenticate your request
{
"iss": "${access_key}",
"exp": 1641170086,
"aud": "www.statusentry.com"
}String accessKey = "AK123";
String secretKey = "SK456";
String relativeRequestUrl = "/v1/incidents";
String signedKey = Jwts.builder()
.setIssuer(accessKey)
.setIssuedAt(Date.from(Instant.now()))
.setExpiration(Date.from(Instant.now().plus(1, ChronoUnit.DAYS)))
.setAudience("www.statusentry.com")
.signWith(SignatureAlgorithm.HS256, secretKey.getBytes(StandardCharsets.UTF_8))
.compact();Last updated