/** * Returns the string representation of this object. * * @return The string representation of object */ @Override public String toString() { return Util.concatObjectsCap(100, "State: ", state, "\nDevice Error: 0x", Long.toHexString(deviceError), "\nFlags: 0x", Util.toFullHex(flags), "\nRead/Write Session: ", isRwSession(), "\nSerial Session: ", isSerialSession()); }
/** * Returns the string representation of this object. * * @return the string representation of object */ @Override public String toString() { return Util.concatObjectsCap(200, "Slot Description: ", slotDescription, "\nManufacturer ID: ", manufacturerID, "\nHardware Version: ", hardwareVersion, "\nFirmware Version: ", firmwareVersion, "\nFlags: 0X", Util.toFullHex(flags), "\nToken present: ", isTokenPresent(), "\nRemovable Device: ", isRemovableDevice(), "\nHardware Slot: ", isHwSlot()); }
"\nModel: ", model, "\nSerial Number: ", serialNumber, "\nFlags: 0x", Util.toFullHex(flags), "\nRandom Number Generator: ", isRNG(), "\nWrite protected: ", isWriteProtected(),