Merge pull request #54 from rturner3/java-spiffe-provider-doc-fix
Remove separator argument from toSetOfSpiffeIds() examples
This commit is contained in:
commit
45e3fc86a6
|
|
@ -190,7 +190,7 @@ with a [X509Source instance](../java-spiffe-core/README.md#x509-source).
|
||||||
KeyManager keyManager = new SpiffeKeyManager(x509Source);
|
KeyManager keyManager = new SpiffeKeyManager(x509Source);
|
||||||
|
|
||||||
// TrustManager gets the X509Source and the supplier of the Set of accepted SPIFFE IDs.
|
// TrustManager gets the X509Source and the supplier of the Set of accepted SPIFFE IDs.
|
||||||
TrustManager trustManager = new SpiffeTrustManager(x509Source, () -> SpiffeIdUtils.toSetOfSpiffeIds("spiffe://example.org/workload-client", ','));
|
TrustManager trustManager = new SpiffeTrustManager(x509Source, () -> SpiffeIdUtils.toSetOfSpiffeIds("spiffe://example.org/workload-client"));
|
||||||
|
|
||||||
SslContextBuilder sslContextBuilder =
|
SslContextBuilder sslContextBuilder =
|
||||||
SslContextBuilder
|
SslContextBuilder
|
||||||
|
|
@ -213,7 +213,7 @@ the GRPC SSL context, analogous to the config for the Server:
|
||||||
|
|
||||||
KeyManager keyManager = new SpiffeKeyManager(x509Source);
|
KeyManager keyManager = new SpiffeKeyManager(x509Source);
|
||||||
|
|
||||||
Supplier<Set<SpiffeId>> acceptedSpiffeIds = () -> SpiffeIdUtils.toSetOfSpiffeIds("spiffe://example.org/workload-server", ',');
|
Supplier<Set<SpiffeId>> acceptedSpiffeIds = () -> SpiffeIdUtils.toSetOfSpiffeIds("spiffe://example.org/workload-server");
|
||||||
TrustManager trustManager = new SpiffeTrustManager(x509Source, acceptedSpiffeIds);
|
TrustManager trustManager = new SpiffeTrustManager(x509Source, acceptedSpiffeIds);
|
||||||
|
|
||||||
SslContextBuilder sslContextBuilder = SslContextBuilder
|
SslContextBuilder sslContextBuilder = SslContextBuilder
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue