@Test public void testImmutableCertificates() throws IOException { JsonWebSignature signature = TestCertificates.getJsonWebSignature(); List<String> certificates = signature.getHeader().getX509Certificates(); certificates.set(0, "foo"); Assert.assertNotEquals("foo", signature.getHeader().getX509Certificates().get(0)); }
@Override public Header getHeader() { return (Header) super.getHeader(); }
JsonWebSignature extends JsonWebToken { @Override public Header getHeader() { return (Header) super.getHeader(); } }
JsonWebSignature extends JsonWebToken { @Override public Header getHeader() { return (Header) super.getHeader(); } JsonWebSignature(
      Header header, Payload payload, byte[] signatureBytes, byte[] signedContentBytes); }
JsonWebSignature extends JsonWebToken { @Override public Header getHeader() { return (Header) super.getHeader(); } JsonWebSignature(
      Header header, Payload payload, byte[] signatureBytes, byte[] signedContentBytes); @Override Header getHeader(); final boolean verifySignature(PublicKey publicKey); @Beta final X509Certificate verifySignature(X509TrustManager trustManager); @Beta final X509Certificate verifySignature(); final byte[] getSignatureBytes(); final byte[] getSignedContentBytes(); static JsonWebSignature parse(JsonFactory jsonFactory, String tokenString); static Parser parser(JsonFactory jsonFactory); static String signUsingRsaSha256(
      PrivateKey privateKey,
      JsonFactory jsonFactory,
      JsonWebSignature.Header header,
      JsonWebToken.Payload payload); }
JsonWebSignature extends JsonWebToken { @Override public Header getHeader() { return (Header) super.getHeader(); } JsonWebSignature(
      Header header, Payload payload, byte[] signatureBytes, byte[] signedContentBytes); @Override Header getHeader(); final boolean verifySignature(PublicKey publicKey); @Beta final X509Certificate verifySignature(X509TrustManager trustManager); @Beta final X509Certificate verifySignature(); final byte[] getSignatureBytes(); final byte[] getSignedContentBytes(); static JsonWebSignature parse(JsonFactory jsonFactory, String tokenString); static Parser parser(JsonFactory jsonFactory); static String signUsingRsaSha256(
      PrivateKey privateKey,
      JsonFactory jsonFactory,
      JsonWebSignature.Header header,
      JsonWebToken.Payload payload);  }