![]() |
NanoXLSX.Writer 3.0.0-rc.3
|
Class to write a legacy password. More...
Public Member Functions | |
| LegacyPasswordWriter (PasswordType type, string hash) | |
| Default constructor with parameter. | |
| LegacyPasswordWriter () | |
| Default constructor. | |
| void | Init (PasswordType type, string passwordHash) |
| Initializer method with all mandatory parameters. | |
| void | CopyFrom (IPassword passwordInstance) |
| Not relevant for the writer (inherited from IPassword). | |
| bool | PasswordIsSet () |
| Gets whether a password to write is defined. | |
| string | GetPassword () |
| Not relevant for the writer (inherited from IPassword). | |
| void | SetPassword (string plainText) |
| Not relevant for the writer (inherited from IPassword). | |
| void | UnsetPassword () |
| Not relevant for the writer (inherited from IPassword). | |
| IEnumerable< XmlAttribute > | GetAttributes () |
| Gets the XML attributes of the current password instance, that are used when writing XLSX files. | |
Properties | |
| PasswordType | Type [get] |
| Current target type of the password instance. | |
| string | PasswordHash [get, set] |
| Gets or sets the password hash. | |
Class to write a legacy password.
Definition at line 23 of file LegacyPasswordWriter.cs.
| NanoXLSX.Internal.Writers.LegacyPasswordWriter.LegacyPasswordWriter | ( | PasswordType | type, |
| string | hash ) |
Default constructor with parameter.
| type | Target type of the password instance |
| hash | Hash representation of the password (do not use null) |
Definition at line 42 of file LegacyPasswordWriter.cs.
| NanoXLSX.Internal.Writers.LegacyPasswordWriter.LegacyPasswordWriter | ( | ) |
Default constructor.
Definition at line 53 of file LegacyPasswordWriter.cs.
| void NanoXLSX.Internal.Writers.LegacyPasswordWriter.CopyFrom | ( | IPassword | passwordInstance | ) |
Not relevant for the writer (inherited from IPassword).
| passwordInstance | Source instance |
| NotImplementedException | Throws a NotImplementedException if called in any case |
Definition at line 75 of file LegacyPasswordWriter.cs.
| IEnumerable< XmlAttribute > NanoXLSX.Internal.Writers.LegacyPasswordWriter.GetAttributes | ( | ) |
Gets the XML attributes of the current password instance, that are used when writing XLSX files.
Implements NanoXLSX.Interfaces.Writer.IPasswordWriter.
Definition at line 121 of file LegacyPasswordWriter.cs.
| string NanoXLSX.Internal.Writers.LegacyPasswordWriter.GetPassword | ( | ) |
Not relevant for the writer (inherited from IPassword).
| NotImplementedException | Throws a NotImplementedException if called in any case |
Definition at line 93 of file LegacyPasswordWriter.cs.
| void NanoXLSX.Internal.Writers.LegacyPasswordWriter.Init | ( | PasswordType | type, |
| string | passwordHash ) |
Initializer method with all mandatory parameters.
| type | Target type of the password instance |
| passwordHash | Hash representation of the password (do not use null) |
Implements NanoXLSX.Interfaces.Writer.IPasswordWriter.
Definition at line 64 of file LegacyPasswordWriter.cs.
| bool NanoXLSX.Internal.Writers.LegacyPasswordWriter.PasswordIsSet | ( | ) |
Gets whether a password to write is defined.
Definition at line 84 of file LegacyPasswordWriter.cs.
| void NanoXLSX.Internal.Writers.LegacyPasswordWriter.SetPassword | ( | string | plainText | ) |
Not relevant for the writer (inherited from IPassword).
| plainText |
| NotImplementedException | Throws a NotImplementedException if called in any case |
Definition at line 103 of file LegacyPasswordWriter.cs.
| void NanoXLSX.Internal.Writers.LegacyPasswordWriter.UnsetPassword | ( | ) |
Not relevant for the writer (inherited from IPassword).
| NotImplementedException | Throws a NotImplementedException if called in any case |
Definition at line 112 of file LegacyPasswordWriter.cs.
|
getset |
Gets or sets the password hash.
Definition at line 35 of file LegacyPasswordWriter.cs.
|
get |
Current target type of the password instance.
Implements NanoXLSX.Interfaces.Writer.IPasswordWriter.
Definition at line 30 of file LegacyPasswordWriter.cs.