Class GrpcClientSecurity
java.lang.Object
io.grpc.CallCredentials
io.helidon.security.integration.grpc.GrpcClientSecurity
public final class GrpcClientSecurity
extends io.grpc.CallCredentials
A gRPC
CallCredentials
implementation.
Only works as part of integration with the Helidon Security component.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.CallCredentials
io.grpc.CallCredentials.MetadataApplier, io.grpc.CallCredentials.RequestInfo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Property name for outbound security provider name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyRequestMetadata
(io.grpc.CallCredentials.RequestInfo requestInfo, Executor appExecutor, io.grpc.CallCredentials.MetadataApplier applier) static GrpcClientSecurity.Builder
builder
(SecurityContext securityContext) Obtain aGrpcClientSecurity
builder.static GrpcClientSecurity.Builder
builder
(ServerRequest req) Obtain aGrpcClientSecurity
builder.static GrpcClientSecurity
create
(SecurityContext securityContext) Create aGrpcClientSecurity
instance.static GrpcClientSecurity
create
(ServerRequest req) Create aGrpcClientSecurity
instance.void
-
Field Details
-
PROPERTY_PROVIDER
Property name for outbound security provider name. Set this withGrpcClientSecurity.Builder.property(String, Object)
.- See Also:
-
-
Method Details
-
applyRequestMetadata
public void applyRequestMetadata(io.grpc.CallCredentials.RequestInfo requestInfo, Executor appExecutor, io.grpc.CallCredentials.MetadataApplier applier) - Specified by:
applyRequestMetadata
in classio.grpc.CallCredentials
-
thisUsesUnstableApi
public void thisUsesUnstableApi()- Overrides:
thisUsesUnstableApi
in classio.grpc.CallCredentials
-
create
Create aGrpcClientSecurity
instance.- Parameters:
securityContext
- theSecurityContext
to use- Returns:
- a
GrpcClientSecurity
builder.
-
create
Create aGrpcClientSecurity
instance.- Parameters:
req
- the httpServerRequest
to use to obtain theSecurityContext
- Returns:
- a
GrpcClientSecurity
builder.
-
builder
Obtain aGrpcClientSecurity
builder.- Parameters:
securityContext
- theSecurityContext
to use- Returns:
- a
GrpcClientSecurity
builder.
-
builder
Obtain aGrpcClientSecurity
builder.- Parameters:
req
- the httpServerRequest
to use to obtain theSecurityContext
- Returns:
- a
GrpcClientSecurity
builder.
-