Compartilhar via


AzureFilesIdentityBasedAuthentication Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.AzureFilesIdentityBasedAuthentication

Implements

public final class AzureFilesIdentityBasedAuthentication
implements JsonSerializable<AzureFilesIdentityBasedAuthentication>

Settings for Azure Files identity based authentication.

Constructor Summary

Constructor Description
AzureFilesIdentityBasedAuthentication()

Creates an instance of AzureFilesIdentityBasedAuthentication class.

Method Summary

Modifier and Type Method and Description
ActiveDirectoryProperties activeDirectoryProperties()

Get the activeDirectoryProperties property: Additional information about the directory service.

DefaultSharePermission defaultSharePermission()

Get the defaultSharePermission property: Default share permission for users using Kerberos authentication if RBAC role is not assigned.

DirectoryServiceOptions directoryServiceOptions()

Get the directoryServiceOptions property: Indicates the directory service used.

static AzureFilesIdentityBasedAuthentication fromJson(JsonReader jsonReader)

Reads an instance of AzureFilesIdentityBasedAuthentication from the JsonReader.

SmbOAuthSettings smbOAuthSettings()

Get the smbOAuthSettings property: Required for Managed Identities access using OAuth over SMB.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureFilesIdentityBasedAuthentication withActiveDirectoryProperties(ActiveDirectoryProperties activeDirectoryProperties)

Set the activeDirectoryProperties property: Additional information about the directory service.

AzureFilesIdentityBasedAuthentication withDefaultSharePermission(DefaultSharePermission defaultSharePermission)

Set the defaultSharePermission property: Default share permission for users using Kerberos authentication if RBAC role is not assigned.

AzureFilesIdentityBasedAuthentication withDirectoryServiceOptions(DirectoryServiceOptions directoryServiceOptions)

Set the directoryServiceOptions property: Indicates the directory service used.

AzureFilesIdentityBasedAuthentication withSmbOAuthSettings(SmbOAuthSettings smbOAuthSettings)

Set the smbOAuthSettings property: Required for Managed Identities access using OAuth over SMB.

Methods inherited from java.lang.Object

Constructor Details

AzureFilesIdentityBasedAuthentication

public AzureFilesIdentityBasedAuthentication()

Creates an instance of AzureFilesIdentityBasedAuthentication class.

Method Details

activeDirectoryProperties

public ActiveDirectoryProperties 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.

defaultSharePermission

public DefaultSharePermission defaultSharePermission()

Get the defaultSharePermission property: Default share permission for users using Kerberos authentication if RBAC role is not assigned.

Returns:

the defaultSharePermission value.

directoryServiceOptions

public DirectoryServiceOptions directoryServiceOptions()

Get the directoryServiceOptions property: Indicates the directory service used. Note that this enum may be extended in the future.

Returns:

the directoryServiceOptions value.

fromJson

public static AzureFilesIdentityBasedAuthentication fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

smbOAuthSettings

public SmbOAuthSettings smbOAuthSettings()

Get the smbOAuthSettings property: Required for Managed Identities access using OAuth over SMB.

Returns:

the smbOAuthSettings value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

withDefaultSharePermission

public AzureFilesIdentityBasedAuthentication withDefaultSharePermission(DefaultSharePermission defaultSharePermission)

Set the defaultSharePermission property: Default share permission for users using Kerberos authentication if RBAC role is not assigned.

Parameters:

defaultSharePermission - the defaultSharePermission value to set.

Returns:

the AzureFilesIdentityBasedAuthentication object itself.

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.

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.

Applies to