Class AuthStatusInfoBuilder


  • public class AuthStatusInfoBuilder
    extends Object
    The builder class of AuthStatusInfo.
    Author:
    Loganathan Sekar
    • Method Detail

      • newInstance

        public static AuthStatusInfoBuilder newInstance()
        Gets new instance of AuthStatusInfo.
        Returns:
        the auth status info builder
      • setStatus

        public AuthStatusInfoBuilder setStatus​(boolean status)
        Sets the status.
        Parameters:
        status - the status
        Returns:
        the auth status info builder
      • buildStatusInfo

        public static AuthStatusInfo buildStatusInfo​(boolean matched,
                                                     List<MatchInput> listMatchInputs,
                                                     List<MatchOutput> listMatchOutputs,
                                                     AuthType[] authTypes,
                                                     IDAMappingConfig idMappingConfig)
        Builds the status info.
        Parameters:
        matched - the demo matched
        listMatchInputs - the list match inputs
        listMatchOutputs - the list match outputs
        authTypes - the auth types
        idMappingConfig - the id mapping config
        Returns:
        the auth status info
      • addErrors

        public AuthStatusInfoBuilder addErrors​(AuthError... errors)
        Adds the errors to the AuthStatusInfo.
        Parameters:
        errors - the errors
        Returns:
        the auth status info builder
      • build

        public AuthStatusInfo build()
        Builds the AuthStatusInfo.
        Returns:
        the AuthStatusInfo instance