Class AzureActiveDirectoryRegistration


  • public final class AzureActiveDirectoryRegistration
    extends Object
    The configuration settings of the Azure Active Directory app registration.
    • Constructor Detail

      • AzureActiveDirectoryRegistration

        public AzureActiveDirectoryRegistration()
    • Method Detail

      • openIdIssuer

        public String openIdIssuer()
        Get the openIdIssuer property: The OpenID Connect Issuer URI that represents the entity which issues access tokens for this application. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/. This URI is a case-sensitive identifier for the token issuer. More information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html.
        Returns:
        the openIdIssuer value.
      • withOpenIdIssuer

        public AzureActiveDirectoryRegistration withOpenIdIssuer​(String openIdIssuer)
        Set the openIdIssuer property: The OpenID Connect Issuer URI that represents the entity which issues access tokens for this application. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/. This URI is a case-sensitive identifier for the token issuer. More information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html.
        Parameters:
        openIdIssuer - the openIdIssuer value to set.
        Returns:
        the AzureActiveDirectoryRegistration object itself.
      • clientId

        public String clientId()
        Get the clientId property: The Client ID of this relying party application, known as the client_id. This setting is required for enabling OpenID Connection authentication with Azure Active Directory or other 3rd party OpenID Connect providers. More information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html.
        Returns:
        the clientId value.
      • withClientId

        public AzureActiveDirectoryRegistration withClientId​(String clientId)
        Set the clientId property: The Client ID of this relying party application, known as the client_id. This setting is required for enabling OpenID Connection authentication with Azure Active Directory or other 3rd party OpenID Connect providers. More information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html.
        Parameters:
        clientId - the clientId value to set.
        Returns:
        the AzureActiveDirectoryRegistration object itself.
      • clientSecretSettingName

        public String clientSecretSettingName()
        Get the clientSecretSettingName property: The app setting name that contains the client secret of the relying party application.
        Returns:
        the clientSecretSettingName value.
      • withClientSecretSettingName

        public AzureActiveDirectoryRegistration withClientSecretSettingName​(String clientSecretSettingName)
        Set the clientSecretSettingName property: The app setting name that contains the client secret of the relying party application.
        Parameters:
        clientSecretSettingName - the clientSecretSettingName value to set.
        Returns:
        the AzureActiveDirectoryRegistration object itself.
      • clientSecretCertificateThumbprint

        public String clientSecretCertificateThumbprint()
        Get the clientSecretCertificateThumbprint property: An alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts as a replacement for the Client Secret. It is also optional.
        Returns:
        the clientSecretCertificateThumbprint value.
      • withClientSecretCertificateThumbprint

        public AzureActiveDirectoryRegistration withClientSecretCertificateThumbprint​(String clientSecretCertificateThumbprint)
        Set the clientSecretCertificateThumbprint property: An alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts as a replacement for the Client Secret. It is also optional.
        Parameters:
        clientSecretCertificateThumbprint - the clientSecretCertificateThumbprint value to set.
        Returns:
        the AzureActiveDirectoryRegistration object itself.
      • clientSecretCertificateSubjectAlternativeName

        public String clientSecretCertificateSubjectAlternativeName()
        Get the clientSecretCertificateSubjectAlternativeName property: An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing purposes. This property acts as a replacement for the Client Secret Certificate Thumbprint. It is also optional.
        Returns:
        the clientSecretCertificateSubjectAlternativeName value.
      • withClientSecretCertificateSubjectAlternativeName

        public AzureActiveDirectoryRegistration withClientSecretCertificateSubjectAlternativeName​(String clientSecretCertificateSubjectAlternativeName)
        Set the clientSecretCertificateSubjectAlternativeName property: An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing purposes. This property acts as a replacement for the Client Secret Certificate Thumbprint. It is also optional.
        Parameters:
        clientSecretCertificateSubjectAlternativeName - the clientSecretCertificateSubjectAlternativeName value to set.
        Returns:
        the AzureActiveDirectoryRegistration object itself.
      • clientSecretCertificateIssuer

        public String clientSecretCertificateIssuer()
        Get the clientSecretCertificateIssuer property: An alternative to the client secret thumbprint, that is the issuer of a certificate used for signing purposes. This property acts as a replacement for the Client Secret Certificate Thumbprint. It is also optional.
        Returns:
        the clientSecretCertificateIssuer value.
      • withClientSecretCertificateIssuer

        public AzureActiveDirectoryRegistration withClientSecretCertificateIssuer​(String clientSecretCertificateIssuer)
        Set the clientSecretCertificateIssuer property: An alternative to the client secret thumbprint, that is the issuer of a certificate used for signing purposes. This property acts as a replacement for the Client Secret Certificate Thumbprint. It is also optional.
        Parameters:
        clientSecretCertificateIssuer - the clientSecretCertificateIssuer value to set.
        Returns:
        the AzureActiveDirectoryRegistration object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.