func NewPinTanDialog(config Config) *PinTanDialog {
	pinKey := domain.NewPinKey("", domain.NewPinTanKeyName(config.BankID, config.UserID, "S"))
	signatureProvider := message.NewPinTanSignatureProvider(pinKey, "0")
	pinKey = domain.NewPinKey("", domain.NewPinTanKeyName(config.BankID, config.UserID, "V"))
	cryptoProvider := message.NewPinTanCryptoProvider(pinKey, "0")
	d := &PinTanDialog{
		dialog: newDialog(
			config.BankID,
			config.HBCIURL,
			config.UserID,
			config.HBCIVersion,
			signatureProvider,
			cryptoProvider,
		),
	}

	var dialogTransport transport.Transport
	if config.Transport == nil {
		dialogTransport = https.New()
	} else {
		dialogTransport = config.Transport
	}
	dialogTransport = middleware.Base64Encoding(base64.StdEncoding)(dialogTransport)
	dialogTransport = middleware.Logging(internal.Debug)(dialogTransport)
	d.transport = dialogTransport
	return d
}
// NewPinTanDialog creates a new dialog to use for pin/tan transport
NewPinTanDialog creates a new dialog to use for pin/tan transport
// NewPinTanDialog creates a new dialog to use for pin / tan transport
func NewPinTanDialog(config Config) *PinTanDialog {
	pinKey := domain.NewPinKey("", domain.NewPinTanKeyName(config.BankID, config.UserID, "S"))
	signatureProvider := message.NewPinTanSignatureProvider(pinKey, "0")
	pinKey = domain.NewPinKey("", domain.NewPinTanKeyName(config.BankID, config.UserID, "V"))
	cryptoProvider := message.NewPinTanCryptoProvider(pinKey, "0")
	d := &PinTanDialog{
		dialog: newDialog(
			config.BankID,
			config.HBCIURL,
			config.UserID,
			config.HBCIVersion,
			signatureProvider,
			cryptoProvider,
		),
	}
	var dialogTransport transport.Transport
	if config.Transport == nil {
		dialogTransport = https.New()
	} else {
		dialogTransport = config.Transport
	}
	dialogTransport = middleware.Base64Encoding(base64.StdEncoding)(dialogTransport)
	dialogTransport = middleware.Logging(internal.Debug)(dialogTransport)
	d.transport = dialogTransport
	return d
}
func NewPinTanDialog ( config Config ) * PinTanDialog { pinKey := domain . NewPinKey ( " " , domain . NewPinTanKeyName ( config . BankID , config . UserID , " " ) ) signatureProvider := message . NewPinTanSignatureProvider ( pinKey , " " ) pinKey = domain . NewPinKey ( " " , domain . NewPinTanKeyName ( config . BankID , config . UserID , " " ) ) cryptoProvider := message . NewPinTanCryptoProvider ( pinKey , " " ) d := & PinTanDialog { dialog : newDialog ( config . BankID , config . HBCIURL , config . UserID , config . HBCIVersion , signatureProvider , cryptoProvider , ) , } var dialogTransport transport . Transport if config . Transport == nil { dialogTransport = https . New ( ) } else { dialogTransport = config . Transport } dialogTransport = middleware . Base64Encoding ( base64 . StdEncoding ) ( dialogTransport ) dialogTransport = middleware . Logging ( internal . Debug ) ( dialogTransport ) d . transport = dialogTransport return d }
NewPinTanDialog creates a new dialog to use for pin/tan transport
NewPinTanDialog creates a new dialog to use for pin / tan transport