CallCredentials as if they were one. If the first credential fails, the
second will not be used. Both must succeed to allow the RPC.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final CallCredentials | |
| private final CallCredentials |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | applyRequestMetadata(CallCredentials.
request-related information requestInfo,The application thread-pool. It is provided to the implementation in case it
needs to perform blocking operations. appExecutor, CallCredentials.The outlet of the produced headers. It can be called either before or after this
method returns. applierImplements abstract io. CallCredentials., which will
propagate it to the request metadata.
|
| credentials1 | back to summary |
|---|---|
| private final CallCredentials credentials1 | |
| credentials2 | back to summary |
|---|---|
| private final CallCredentials credentials2 | |
| CompositeCallCredentials | back to summary |
|---|---|
| public CompositeCallCredentials(CallCredentials creds1, CallCredentials creds2) | |
| applyRequestMetadata | back to summary |
|---|---|
| public void applyRequestMetadata(CallCredentials. Implements abstract io. Doc from io. Pass the credential data to the given It is called for each individual RPC, within the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final CallCredentials. | |
| private final Metadata |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | apply(Metadata headers)
Implements abstract io. |
| public void | fail(Status status)
Implements abstract io. |
| delegate | back to summary |
|---|---|
| private final CallCredentials. | |
| firstHeaders | back to summary |
|---|---|
| private final Metadata firstHeaders | |
| CombiningMetadataApplier | back to summary |
|---|---|
| public CombiningMetadataApplier(CallCredentials. | |
| apply | back to summary |
|---|---|
| public void apply(Metadata headers) Implements abstract io. Doc from io. Called when headers are successfully generated. They will be merged into the original headers.
| |
| fail | back to summary |
|---|---|
| public void fail(Status status) Implements abstract io. Doc from io. Called when there has been an error when preparing the headers. This will fail the RPC.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Executor | |
| private final Context | |
| private final CallCredentials. | |
| private final CallCredentials. |
| Access | Constructor and Description |
|---|---|
| public | WrappingMetadataApplier(CallCredentials.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | apply(Metadata headers)
Implements abstract io. |
| public void | fail(Status status)
Implements abstract io. |
| appExecutor | back to summary |
|---|---|
| private final Executor appExecutor | |
| context | back to summary |
|---|---|
| private final Context context | |
| delegate | back to summary |
|---|---|
| private final CallCredentials. | |
| requestInfo | back to summary |
|---|---|
| private final CallCredentials. | |
| WrappingMetadataApplier | back to summary |
|---|---|
| public WrappingMetadataApplier(CallCredentials. | |
| apply | back to summary |
|---|---|
| public void apply(Metadata headers) Implements abstract io. Doc from io. Called when headers are successfully generated. They will be merged into the original headers.
| |
| fail | back to summary |
|---|---|
| public void fail(Status status) Implements abstract io. Doc from io. Called when there has been an error when preparing the headers. This will fail the RPC.
| |