KeyCredential Class
- java.
lang. Object - com.
azure. core. credential. KeyCredential
- com.
public class KeyCredential
Represents a credential that uses a key to authenticate.
Constructor Summary
Constructor | Description |
---|---|
KeyCredential(String key) |
Creates a credential that authorizes request with the given key. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Retrieves the key associated to this credential. |
Key |
update(String key)
Rotates the key associated to this credential. |
Methods inherited from java.lang.Object
Constructor Details
KeyCredential
public KeyCredential(String key)
Creates a credential that authorizes request with the given key.
Parameters:
Method Details
getKey
public String getKey()
Retrieves the key associated to this credential.
Returns:
update
public KeyCredential update(String key)
Rotates the key associated to this credential.
Parameters:
Returns:
KeyCredential
object.Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor