@Test public void testImmutableSignatureBytes() throws IOException { JsonWebSignature signature = TestCertificates.getJsonWebSignature(); byte[] bytes = signature.getSignatureBytes(); bytes[0] = (byte) (bytes[0] + 1); byte[] bytes2 = signature.getSignatureBytes(); Assert.assertNotEquals(bytes2[0], bytes[0]); }
public final byte[] getSignatureBytes() { return Arrays.copyOf(signatureBytes, signatureBytes.length); }
JsonWebSignature extends JsonWebToken { public final byte[] getSignatureBytes() { return Arrays.copyOf(signatureBytes, signatureBytes.length); } }
JsonWebSignature extends JsonWebToken { public final byte[] getSignatureBytes() { return Arrays.copyOf(signatureBytes, signatureBytes.length); } JsonWebSignature(
      Header header, Payload payload, byte[] signatureBytes, byte[] signedContentBytes); }
JsonWebSignature extends JsonWebToken { public final byte[] getSignatureBytes() { return Arrays.copyOf(signatureBytes, signatureBytes.length); } 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 { public final byte[] getSignatureBytes() { return Arrays.copyOf(signatureBytes, signatureBytes.length); } 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);  }