Class AnonymousIdentity.Builder

  • Enclosing class:
    AnonymousIdentity


    public static class AnonymousIdentity.Builder
    extends java.lang.Object
    This is a builder class which is used to generate a Identity
    • Constructor Detail

      • Builder

        public Builder()
        Creates a builder which must be used to create an anonymous identity
    • Method Detail

      • withNameIdentifier

        public AnonymousIdentity.Builder withNameIdentifier(java.lang.String name)
        Specify the Name to be used as part of the identity when using Anonymous Access.

        This field is optional

        Parameters:
        name - String name which will be included as part of the End User profile
        Returns:
        The Builder
      • withEmailIdentifier

        public AnonymousIdentity.Builder withEmailIdentifier(java.lang.String email)
        Specify the Email to be used as part of the identity when using Anonymous Access

        This field is optional

        Parameters:
        email - String email which will be included as part of the End User profile
        Returns:
        The Builder
      • withExternalIdentifier

        @Deprecated
        public AnonymousIdentity.Builder withExternalIdentifier(java.lang.String externalId)
        Deprecated. Deprecated in 1.8.0.1. This will be removed in the next release. You will need to use JWT authentication if you want to use external IDs
        Specify the External Identifier to be used as part of the identity when using Anonymous Access

        This field is optional. If you set it the value must be something that is unique within your Zendesk instance.

        Parameters:
        externalId - String external identifier as part of the End User profile
        Returns:
        The Builder