### YamlMime:JavaType
uid: "com.azure.search.SearchApiKeyPipelinePolicy"
fullName: "com.azure.search.SearchApiKeyPipelinePolicy"
name: "SearchApiKeyPipelinePolicy"
nameWithType: "SearchApiKeyPipelinePolicy"
summary: "Policy that adds the Cognitive Search Service api-key into the request's Authorization header."
inheritances:
- ""
inheritedClassMethods:
- classRef: "java.lang.Object"
methodsRef:
- "clone"
- "equals"
- "finalize"
- "getClass"
- "hashCode"
- "notify"
- "notifyAll"
- "toString"
- "wait"
- "wait"
- "wait"
syntax: "public final class **SearchApiKeyPipelinePolicy** implements "
constructors:
- uid: "com.azure.search.SearchApiKeyPipelinePolicy.SearchApiKeyPipelinePolicy(com.azure.search.SearchApiKeyCredential)"
fullName: "com.azure.search.SearchApiKeyPipelinePolicy.SearchApiKeyPipelinePolicy(SearchApiKeyCredential apiKey)"
name: "SearchApiKeyPipelinePolicy(SearchApiKeyCredential apiKey)"
nameWithType: "SearchApiKeyPipelinePolicy.SearchApiKeyPipelinePolicy(SearchApiKeyCredential apiKey)"
summary: "Constructor"
parameters:
- description: "Azure Cognitive Search service api admin or query key"
name: "apiKey"
type: ""
syntax: "public SearchApiKeyPipelinePolicy(SearchApiKeyCredential apiKey)"
desc: "Constructor"
methods:
- uid: "com.azure.search.SearchApiKeyPipelinePolicy.process(com.azure.core.http.HttpPipelineCallContext,com.azure.core.http.HttpPipelineNextPolicy)"
fullName: "com.azure.search.SearchApiKeyPipelinePolicy.process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)"
name: "process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)"
nameWithType: "SearchApiKeyPipelinePolicy.process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)"
parameters:
- name: "context"
type: ""
- name: "next"
type: ""
syntax: "public Mono process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)"
returns:
type: "Mono<>"
type: "class"
desc: "Policy that adds the Cognitive Search Service api-key into the request's Authorization header."
implements:
- ""
metadata: {}
package: "com.azure.search"
artifact: com.azure:azure-search:11.0.0-beta.1