ApiKeyAuthentication Class
- java.
lang. Object - com.
azure. resourcemanager. deploymentmanager. models. RestRequestAuthentication - com.
azure. resourcemanager. deploymentmanager. models. ApiKeyAuthentication
- com.
- com.
public final class ApiKeyAuthentication
extends RestRequestAuthentication
ApiKey authentication gives a name and a value that can be included in either the request header or query parameters.
Constructor Summary
Constructor | Description |
---|---|
ApiKeyAuthentication() |
Creates an instance of Api |
Method Summary
Modifier and Type | Method and Description |
---|---|
Rest |
in()
Get the in property: The location of the authentication key/value pair in the request. |
String |
name()
Get the name property: The key name of the authentication key/value pair. |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: The value of the authentication key/value pair. |
Api |
withIn(RestAuthLocation in)
Set the in property: The location of the authentication key/value pair in the request. |
Api |
withName(String name)
Set the name property: The key name of the authentication key/value pair. |
Api |
withValue(String value)
Set the value property: The value of the authentication key/value pair. |
Methods inherited from RestRequestAuthentication
Methods inherited from java.lang.Object
Constructor Details
ApiKeyAuthentication
public ApiKeyAuthentication()
Creates an instance of ApiKeyAuthentication class.
Method Details
in
public RestAuthLocation in()
Get the in property: The location of the authentication key/value pair in the request.
Returns:
name
public String name()
Get the name property: The key name of the authentication key/value pair.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
ApiKeyAuthentication.validate()value
public String value()
Get the value property: The value of the authentication key/value pair.
Returns:
withIn
public ApiKeyAuthentication withIn(RestAuthLocation in)
Set the in property: The location of the authentication key/value pair in the request.
Parameters:
Returns:
withName
public ApiKeyAuthentication withName(String name)
Set the name property: The key name of the authentication key/value pair.
Parameters:
Returns:
withValue
public ApiKeyAuthentication withValue(String value)
Set the value property: The value of the authentication key/value pair.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for