private static String decodePayload(String idToken){
  Preconditions.checkNotNull(idToken);
  String[] jwtParts=idToken.split("\\.");
  Preconditions.checkState(jwtParts.length == 3);
  String payloadStr=jwtParts[1];
  Preconditions.checkNotNull(payloadStr);
  return new String(Base64.decodeBase64(payloadStr));
}

private static String decodePayload ( String idToken ) { Preconditions . checkNotNull ( idToken ) ; String [ ] jwtParts = idToken . split ( "\\." ) ; Preconditions . checkState ( jwtParts . length == 3 ) ; String payloadStr = jwtParts [ 1 ] ; Preconditions . checkNotNull ( payloadStr ) ; return new String ( Base64 . decodeBase64 ( payloadStr ) ) ; }
decode payload from jwt according to spec : " header . payload . signature "
