@Test public void claims_dateParse_issueTime() { try { AwsProxyRequest req = new AwsProxyRequestBuilder().fromJsonString(USER_POOLS_REQUEST).build(); assertEquals(EXP_TIME, req.getRequestContext().getAuthorizer().getClaims().getExpiration()); assertNotNull(req.getRequestContext().getAuthorizer().getClaims().getExpiration()); ZonedDateTime expTime = ZonedDateTime.from(TOKEN_DATE_FORMATTER.parse(EXP_TIME)); ZonedDateTime issueTime = ZonedDateTime.from(TOKEN_DATE_FORMATTER.parse(ISSUE_TIME)); assertEquals(expTime, ZonedDateTime.from(TOKEN_DATE_FORMATTER.parse(req.getRequestContext().getAuthorizer().getClaims().getExpiration()))); assertEquals(expTime, issueTime.plusHours(1)); } catch (IOException e) { e.printStackTrace(); fail(); } }
public String getExpiration() { return expiration; }
CognitoAuthorizerClaims { public String getExpiration() { return expiration; } }
CognitoAuthorizerClaims { public String getExpiration() { return expiration; }  }
CognitoAuthorizerClaims { public String getExpiration() { return expiration; }  @JsonAnyGetter String getClaim(String claim); @JsonAnySetter void setClaim(String claim, String value); String getSubject(); void setSubject(String subject); String getAudience(); void setAudience(String audience); String getIssuer(); void setIssuer(String issuer); String getTokenUse(); void setTokenUse(String tokenUse); String getUsername(); void setUsername(String username); String getEmail(); void setEmail(String email); boolean isEmailVerified(); void setEmailVerified(boolean emailVerified); Long getAuthTime(); void setAuthTime(Long authTime); String getExpiration(); void setExpiration(String expiration); String getIssuedAt(); void setIssuedAt(String issuedAt); }
CognitoAuthorizerClaims { public String getExpiration() { return expiration; }  @JsonAnyGetter String getClaim(String claim); @JsonAnySetter void setClaim(String claim, String value); String getSubject(); void setSubject(String subject); String getAudience(); void setAudience(String audience); String getIssuer(); void setIssuer(String issuer); String getTokenUse(); void setTokenUse(String tokenUse); String getUsername(); void setUsername(String username); String getEmail(); void setEmail(String email); boolean isEmailVerified(); void setEmailVerified(boolean emailVerified); Long getAuthTime(); void setAuthTime(Long authTime); String getExpiration(); void setExpiration(String expiration); String getIssuedAt(); void setIssuedAt(String issuedAt);  }