@Test void testNewJwtBundleWithTrustDomainAndAuthorities_Success() { HashMap<String, PublicKey> authorities = new HashMap<>(); KeyPair key1 = TestUtils.generateECKeyPair(Curve.P_521); KeyPair key2 = TestUtils.generateRSAKeyPair(2048); authorities.put("authority1", key1.getPublic()); authorities.put("authority2", key2.getPublic()); JwtBundle jwtBundle = new JwtBundle(TrustDomain.of("example.org"), authorities); authorities.put("authority1", key2.getPublic()); assertNotNull(jwtBundle); assertEquals(TrustDomain.of("example.org"), jwtBundle.getTrustDomain()); assertEquals(2, jwtBundle.getJwtAuthorities().size()); assertEquals(key1.getPublic(), jwtBundle.getJwtAuthorities().get("authority1")); assertEquals(key2.getPublic(), jwtBundle.getJwtAuthorities().get("authority2")); }
public Map<String, PublicKey> getJwtAuthorities() { return Collections.unmodifiableMap(jwtAuthorities); }
JwtBundle implements BundleSource<JwtBundle> { public Map<String, PublicKey> getJwtAuthorities() { return Collections.unmodifiableMap(jwtAuthorities); } }
JwtBundle implements BundleSource<JwtBundle> { public Map<String, PublicKey> getJwtAuthorities() { return Collections.unmodifiableMap(jwtAuthorities); } JwtBundle(@NonNull final TrustDomain trustDomain);  JwtBundle(@NonNull final TrustDomain trustDomain, @NonNull final Map<String, PublicKey> jwtAuthorities); }
JwtBundle implements BundleSource<JwtBundle> { public Map<String, PublicKey> getJwtAuthorities() { return Collections.unmodifiableMap(jwtAuthorities); } JwtBundle(@NonNull final TrustDomain trustDomain);  JwtBundle(@NonNull final TrustDomain trustDomain, @NonNull final Map<String, PublicKey> jwtAuthorities); static JwtBundle load(@NonNull final TrustDomain trustDomain, @NonNull final Path bundlePath); static JwtBundle parse(
            @NonNull final TrustDomain trustDomain,
            @NonNull final byte[] bundleBytes); @Override JwtBundle getBundleForTrustDomain(final TrustDomain trustDomain); Map<String, PublicKey> getJwtAuthorities(); PublicKey findJwtAuthority(final String keyId); boolean hasJwtAuthority(final String keyId); void putJwtAuthority(@NonNull final String keyId, @NonNull final PublicKey jwtAuthority); void removeJwtAuthority(final String keyId); }
JwtBundle implements BundleSource<JwtBundle> { public Map<String, PublicKey> getJwtAuthorities() { return Collections.unmodifiableMap(jwtAuthorities); } JwtBundle(@NonNull final TrustDomain trustDomain);  JwtBundle(@NonNull final TrustDomain trustDomain, @NonNull final Map<String, PublicKey> jwtAuthorities); static JwtBundle load(@NonNull final TrustDomain trustDomain, @NonNull final Path bundlePath); static JwtBundle parse(
            @NonNull final TrustDomain trustDomain,
            @NonNull final byte[] bundleBytes); @Override JwtBundle getBundleForTrustDomain(final TrustDomain trustDomain); Map<String, PublicKey> getJwtAuthorities(); PublicKey findJwtAuthority(final String keyId); boolean hasJwtAuthority(final String keyId); void putJwtAuthority(@NonNull final String keyId, @NonNull final PublicKey jwtAuthority); void removeJwtAuthority(final String keyId);  }