Class GrpcClientSecurity
- java.lang.Object
-
- io.grpc.CallCredentials
-
- io.helidon.security.integration.grpc.GrpcClientSecurity
-
public final class GrpcClientSecurity extends io.grpc.CallCredentials
A gRPCCallCredentials
implementation.Only works as part of integration with the Helidon Security component.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GrpcClientSecurity.Builder
A builder ofGrpcClientSecurity
instances.
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_PROVIDER
Property name for outbound security provider name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
thisUsesUnstableApi()
-
-
-
Field Detail
-
PROPERTY_PROVIDER
public static final String PROPERTY_PROVIDER
Property name for outbound security provider name. Set this withGrpcClientSecurity.Builder.property(String, Object)
.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public static GrpcClientSecurity create(SecurityContext securityContext)
Create aGrpcClientSecurity
instance.- Parameters:
securityContext
- theSecurityContext
to use- Returns:
- a
GrpcClientSecurity
builder.
-
create
public static GrpcClientSecurity create(ServerRequest req)
Create aGrpcClientSecurity
instance.- Parameters:
req
- the httpServerRequest
to use to obtain theSecurityContext
- Returns:
- a
GrpcClientSecurity
builder.
-
builder
public static GrpcClientSecurity.Builder builder(SecurityContext securityContext)
Obtain aGrpcClientSecurity
builder.- Parameters:
securityContext
- theSecurityContext
to use- Returns:
- a
GrpcClientSecurity
builder.
-
builder
public static GrpcClientSecurity.Builder builder(ServerRequest req)
Obtain aGrpcClientSecurity
builder.- Parameters:
req
- the httpServerRequest
to use to obtain theSecurityContext
- Returns:
- a
GrpcClientSecurity
builder.
-
-