Class AzureFilesIdentityBasedAuthentication
java.lang.Object
com.azure.resourcemanager.storage.models.AzureFilesIdentityBasedAuthentication
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureFilesIdentityBasedAuthentication>
public final class AzureFilesIdentityBasedAuthentication
extends Object
implements com.azure.json.JsonSerializable<AzureFilesIdentityBasedAuthentication>
Settings for Azure Files identity based authentication.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureFilesIdentityBasedAuthentication class. -
Method Summary
Modifier and TypeMethodDescriptionGet the activeDirectoryProperties property: Additional information about the directory service.Get the defaultSharePermission property: Default share permission for users using Kerberos authentication if RBAC role is not assigned.Get the directoryServiceOptions property: Indicates the directory service used.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureFilesIdentityBasedAuthentication from the JsonReader.Get the smbOAuthSettings property: Required for Managed Identities access using OAuth over SMB.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withActiveDirectoryProperties(ActiveDirectoryProperties activeDirectoryProperties) Set the activeDirectoryProperties property: Additional information about the directory service.withDefaultSharePermission(DefaultSharePermission defaultSharePermission) Set the defaultSharePermission property: Default share permission for users using Kerberos authentication if RBAC role is not assigned.withDirectoryServiceOptions(DirectoryServiceOptions directoryServiceOptions) Set the directoryServiceOptions property: Indicates the directory service used.withSmbOAuthSettings(SmbOAuthSettings smbOAuthSettings) Set the smbOAuthSettings property: Required for Managed Identities access using OAuth over SMB.Methods inherited from class 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
-
AzureFilesIdentityBasedAuthentication
public AzureFilesIdentityBasedAuthentication()Creates an instance of AzureFilesIdentityBasedAuthentication class.
-
-
Method Details
-
directoryServiceOptions
Get the directoryServiceOptions property: Indicates the directory service used. Note that this enum may be extended in the future.- Returns:
- the directoryServiceOptions value.
-
withDirectoryServiceOptions
public AzureFilesIdentityBasedAuthentication withDirectoryServiceOptions(DirectoryServiceOptions directoryServiceOptions) Set the directoryServiceOptions property: Indicates the directory service used. Note that this enum may be extended in the future.- Parameters:
directoryServiceOptions- the directoryServiceOptions value to set.- Returns:
- the AzureFilesIdentityBasedAuthentication object itself.
-
activeDirectoryProperties
Get the activeDirectoryProperties property: Additional information about the directory service. Required if directoryServiceOptions is AD (AD DS authentication). Optional for directoryServiceOptions AADDS (Entra DS authentication) and AADKERB (Entra authentication).- Returns:
- the activeDirectoryProperties value.
-
withActiveDirectoryProperties
public AzureFilesIdentityBasedAuthentication withActiveDirectoryProperties(ActiveDirectoryProperties activeDirectoryProperties) Set the activeDirectoryProperties property: Additional information about the directory service. Required if directoryServiceOptions is AD (AD DS authentication). Optional for directoryServiceOptions AADDS (Entra DS authentication) and AADKERB (Entra authentication).- Parameters:
activeDirectoryProperties- the activeDirectoryProperties value to set.- Returns:
- the AzureFilesIdentityBasedAuthentication object itself.
-
smbOAuthSettings
Get the smbOAuthSettings property: Required for Managed Identities access using OAuth over SMB.- Returns:
- the smbOAuthSettings value.
-
withSmbOAuthSettings
public AzureFilesIdentityBasedAuthentication withSmbOAuthSettings(SmbOAuthSettings smbOAuthSettings) Set the smbOAuthSettings property: Required for Managed Identities access using OAuth over SMB.- Parameters:
smbOAuthSettings- the smbOAuthSettings value to set.- Returns:
- the AzureFilesIdentityBasedAuthentication 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<AzureFilesIdentityBasedAuthentication>- Throws:
IOException
-
fromJson
public static AzureFilesIdentityBasedAuthentication fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureFilesIdentityBasedAuthentication from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureFilesIdentityBasedAuthentication if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AzureFilesIdentityBasedAuthentication.
-