ChannelCredential
ChannelCredential is an object to provide the printer administrator password for secure connections between the application and the printer.
Overview
You use this object to specify the administrator password when a printer supports secure connection or command security. To send data to your printer securely, you initialize this class and pass it to PrinterDriverGenerator
when required.
Class methods
printerAdminPassword
Create this class with the administrator password of your printer.
Declaration
fun printerAdminPassword(password: String): ChannelCredential
Parameters
Name | Type | Description |
---|---|---|
password | String | Printer administrator password |
Properties
password
The administrator password set at initialization.
Declaration
val password: String?
type
Credential type. Currently only PrinterAdminPassword
is supported.
Declaration
enum class Type {
PrinterAdminPassword
}
val type: Type
Notes
- If the credential is invalid or missing, the connection will succeed, but operations that require authentication (such as network transfer) will fail with an authentication error.
This document describes the usage of ChannelCredential for Android SDK as of 2025/6. Please refer to the SDK API references for detailed implementation.