public static RsaSsaPssPublicKey createRsaSsaPssPubKey(
      byte[] modulus, byte[] exponent, HashType sigHash, HashType mgf1Hash, int saltLength)
      throws Exception {
    final int version = 0;
    RsaSsaPssParams params =
        RsaSsaPssParams.newBuilder()
            .setSigHash(sigHash)
            .setMgf1Hash(mgf1Hash)
            .setSaltLength(saltLength)
            .build();

    return RsaSsaPssPublicKey.newBuilder()
        .setVersion(version)
        .setParams(params)
        .setN(ByteString.copyFrom(modulus))
        .setE(ByteString.copyFrom(exponent))
        .build();
  }
Returns a {@code RsaSsaPssPublicKey} constructed from {@code modulus}, {@code exponent}, {@code
sigHash}, {@code mgf1Hash} and {@code saltLength}.
java_src/src/main/java/com/google/crypto/tink/testing/TestUtil.java