Class TokenCredentialsProperties
java.lang.Object
com.azure.resourcemanager.containerregistry.models.TokenCredentialsProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TokenCredentialsProperties>
public final class TokenCredentialsProperties
extends Object
implements com.azure.json.JsonSerializable<TokenCredentialsProperties>
The properties of the credentials that can be used for authenticating the token.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TokenCredentialsProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the certificates property: The certificates property.static TokenCredentialsPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TokenCredentialsProperties from the JsonReader.Get the passwords property: The passwords property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCertificates(List<TokenCertificate> certificates) Set the certificates property: The certificates property.withPasswords(List<TokenPassword> passwords) Set the passwords property: The passwords property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TokenCredentialsProperties
public TokenCredentialsProperties()Creates an instance of TokenCredentialsProperties class.
-
-
Method Details
-
certificates
Get the certificates property: The certificates property.- Returns:
- the certificates value.
-
withCertificates
Set the certificates property: The certificates property.- Parameters:
certificates- the certificates value to set.- Returns:
- the TokenCredentialsProperties object itself.
-
passwords
Get the passwords property: The passwords property.- Returns:
- the passwords value.
-
withPasswords
Set the passwords property: The passwords property.- Parameters:
passwords- the passwords value to set.- Returns:
- the TokenCredentialsProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TokenCredentialsProperties>- Throws:
IOException
-
fromJson
public static TokenCredentialsProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TokenCredentialsProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TokenCredentialsProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the TokenCredentialsProperties.
-