CertificateReference Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. CertificateReference
- com.
public class CertificateReference
A reference to a Certificate to be installed on Compute Nodes in a Pool. Warning: This object is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://video2.skills-academy.com/azure/batch/batch-certificate-migration-guide) instead.
Constructor Summary
Constructor | Description | |
---|---|---|
CertificateReference() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Certificate |
storeLocation()
Get the default value is currentuser. |
String |
storeName()
Get this property is applicable only for Pools configured with Windows Compute Nodes. |
String |
thumbprint()
Get the thumbprint value. |
String |
thumbprintAlgorithm()
Get the thumbprint |
List<Certificate |
visibility()
Get you can specify more than one visibility in this collection. |
Certificate |
withStoreLocation(CertificateStoreLocation storeLocation)
Set the default value is currentuser. |
Certificate |
withStoreName(String storeName)
Set this property is applicable only for Pools configured with Windows Compute Nodes. |
Certificate |
withThumbprint(String thumbprint)
Set the thumbprint value. |
Certificate |
withThumbprintAlgorithm(String thumbprintAlgorithm)
Set the thumbprint |
Certificate |
withVisibility(List<CertificateVisibility> visibility)
Set you can specify more than one visibility in this collection. |
Methods inherited from java.lang.Object
Constructor Details
CertificateReference
public CertificateReference()
Method Details
storeLocation
public CertificateStoreLocation storeLocation()
Get the default value is currentuser. This property is applicable only for Pools configured with Windows Compute Nodes. For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. Possible values include: 'currentUser', 'localMachine'.
Returns:
storeName
public String storeName()
Get this property is applicable only for Pools configured with Windows Compute Nodes. Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My.
Returns:
thumbprint
public String thumbprint()
Get the thumbprint value.
Returns:
thumbprintAlgorithm
public String thumbprintAlgorithm()
Get the thumbprintAlgorithm value.
Returns:
visibility
public List
Get you can specify more than one visibility in this collection. The default is all Accounts.
Returns:
withStoreLocation
public CertificateReference withStoreLocation(CertificateStoreLocation storeLocation)
Set the default value is currentuser. This property is applicable only for Pools configured with Windows Compute Nodes. For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. Possible values include: 'currentUser', 'localMachine'.
Parameters:
Returns:
withStoreName
public CertificateReference withStoreName(String storeName)
Set this property is applicable only for Pools configured with Windows Compute Nodes. Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My.
Parameters:
Returns:
withThumbprint
public CertificateReference withThumbprint(String thumbprint)
Set the thumbprint value.
Parameters:
Returns:
withThumbprintAlgorithm
public CertificateReference withThumbprintAlgorithm(String thumbprintAlgorithm)
Set the thumbprintAlgorithm value.
Parameters:
Returns:
withVisibility
public CertificateReference withVisibility(List
Set you can specify more than one visibility in this collection. The default is all Accounts.
Parameters:
Returns:
Applies to
Azure SDK for Java