@ClientBinding(configClass=SecureClient.SecureClientConfig.class, inheritServerProviders=false) @Documented @Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER}) public @interface SecureClient
ClientSecurityFeature.PROPERTY_CONTEXT and
security will be handled for outgoing request(s) on this client.
@SecureClient
@Uri("http://service-name:8787/base_path")
private WebTarget target;
@GET
public Response getIt(@Context SecurityContext context) {
return target.request()
.property(SecureClient.PROPERTY_CONTEXT, context)
.get();
}
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.