HostnameConfiguration Class
- java.
lang. Object - com.
microsoft. azure. management. apimanagement. v2019_01_01.HostnameConfiguration
- com.
public class HostnameConfiguration
Custom hostname configuration.
Constructor Summary
Constructor | Description | |
---|---|---|
HostnameConfiguration() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Certificate |
certificate()
Get certificate information. |
java.lang.String |
certificatePassword()
Get certificate Password. |
java.lang.Boolean |
defaultSslBinding()
Get specify true to setup the certificate associated with this Hostname as the Default SSL Certificate. |
java.lang.String |
encodedCertificate()
Get base64 Encoded certificate. |
java.lang.String |
hostName()
Get hostname to configure on the Api Management service. |
java.lang.String |
keyVaultId()
Get url to the Key |
java.lang.Boolean |
negotiateClientCertificate()
Get specify true to always negotiate client certificate on the hostname. |
Hostname |
type()
Get hostname type. |
Hostname |
withCertificate(CertificateInformation certificate)
Set certificate information. |
Hostname |
withCertificatePassword(String certificatePassword)
Set certificate Password. |
Hostname |
withDefaultSslBinding(Boolean defaultSslBinding)
Set specify true to setup the certificate associated with this Hostname as the Default SSL Certificate. |
Hostname |
withEncodedCertificate(String encodedCertificate)
Set base64 Encoded certificate. |
Hostname |
withHostName(String hostName)
Set hostname to configure on the Api Management service. |
Hostname |
withKeyVaultId(String keyVaultId)
Set url to the Key |
Hostname |
withNegotiateClientCertificate(Boolean negotiateClientCertificate)
Set specify true to always negotiate client certificate on the hostname. |
Hostname |
withType(HostnameType type)
Set hostname type. |
Methods inherited from java.lang.Object
Constructor Details
HostnameConfiguration
public HostnameConfiguration()
Method Details
certificate
public CertificateInformation certificate()
Get certificate information.
Returns:
certificatePassword
public String certificatePassword()
Get certificate Password.
Returns:
defaultSslBinding
public Boolean defaultSslBinding()
Get specify true to setup the certificate associated with this Hostname as the Default SSL Certificate. If a client does not send the SNI header, then this will be the certificate that will be challenged. The property is useful if a service has multiple custom hostname enabled and it needs to decide on the default ssl certificate. The setting only applied to Proxy Hostname Type.
Returns:
encodedCertificate
public String encodedCertificate()
Get base64 Encoded certificate.
Returns:
hostName
public String hostName()
Get hostname to configure on the Api Management service.
Returns:
keyVaultId
public String keyVaultId()
Get url to the KeyVault Secret containing the Ssl Certificate. If absolute Url containing version is provided, auto-update of ssl certificate will not work. This requires Api Management service to be configured with MSI. The secret should be of type *application/x-pkcs12*.
Returns:
negotiateClientCertificate
public Boolean negotiateClientCertificate()
Get specify true to always negotiate client certificate on the hostname. Default Value is false.
Returns:
type
public HostnameType type()
Get hostname type. Possible values include: 'Proxy', 'Portal', 'Management', 'Scm', 'DeveloperPortal'.
Returns:
withCertificate
public HostnameConfiguration withCertificate(CertificateInformation certificate)
Set certificate information.
Parameters:
Returns:
withCertificatePassword
public HostnameConfiguration withCertificatePassword(String certificatePassword)
Set certificate Password.
Parameters:
Returns:
withDefaultSslBinding
public HostnameConfiguration withDefaultSslBinding(Boolean defaultSslBinding)
Set specify true to setup the certificate associated with this Hostname as the Default SSL Certificate. If a client does not send the SNI header, then this will be the certificate that will be challenged. The property is useful if a service has multiple custom hostname enabled and it needs to decide on the default ssl certificate. The setting only applied to Proxy Hostname Type.
Parameters:
Returns:
withEncodedCertificate
public HostnameConfiguration withEncodedCertificate(String encodedCertificate)
Set base64 Encoded certificate.
Parameters:
Returns:
withHostName
public HostnameConfiguration withHostName(String hostName)
Set hostname to configure on the Api Management service.
Parameters:
Returns:
withKeyVaultId
public HostnameConfiguration withKeyVaultId(String keyVaultId)
Set url to the KeyVault Secret containing the Ssl Certificate. If absolute Url containing version is provided, auto-update of ssl certificate will not work. This requires Api Management service to be configured with MSI. The secret should be of type *application/x-pkcs12*.
Parameters:
Returns:
withNegotiateClientCertificate
public HostnameConfiguration withNegotiateClientCertificate(Boolean negotiateClientCertificate)
Set specify true to always negotiate client certificate on the hostname. Default Value is false.
Parameters:
Returns:
withType
public HostnameConfiguration withType(HostnameType type)
Set hostname type. Possible values include: 'Proxy', 'Portal', 'Management', 'Scm', 'DeveloperPortal'.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for