@Test void testNewSpiffeId() { TrustDomain trustDomain = TrustDomain.of("test.domain"); SpiffeId spiffeId = trustDomain.newSpiffeId("path1", "host"); assertEquals(trustDomain, spiffeId.getTrustDomain()); assertEquals("/path1/host", spiffeId.getPath()); }
public SpiffeId newSpiffeId(final String... segments) { return SpiffeId.of(this, segments); }
TrustDomain { public SpiffeId newSpiffeId(final String... segments) { return SpiffeId.of(this, segments); } }
TrustDomain { public SpiffeId newSpiffeId(final String... segments) { return SpiffeId.of(this, segments); } private  TrustDomain(final String trustDomain); }
TrustDomain { public SpiffeId newSpiffeId(final String... segments) { return SpiffeId.of(this, segments); } private  TrustDomain(final String trustDomain); static TrustDomain of(@NonNull final String trustDomain); SpiffeId newSpiffeId(final String... segments); @Override String toString(); }
TrustDomain { public SpiffeId newSpiffeId(final String... segments) { return SpiffeId.of(this, segments); } private  TrustDomain(final String trustDomain); static TrustDomain of(@NonNull final String trustDomain); SpiffeId newSpiffeId(final String... segments); @Override String toString();  }