# < Summary

Information

Class: | Renci.SshNet.Messages.Authentication.PasswordChangeRequiredMessage
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\Authentication\PasswordChangeRequiredMessage.cs

Line coverage
0%

Covered lines: | 0
Uncovered lines: | 21
Coverable lines: | 21
Total lines: | 61
Line coverage: | 0%

Branch coverage
N/A

Covered branches: | 0
Total branches: | 0
Branch coverage: | N/A

Method coverage

Feature is only available for sponsors

Upgrade to PRO version

# Metrics

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
get_Message() | 100% | 1 | 0%
get_Language() | 100% | 1 | 0%
get_BufferCapacity() | 100% | 1 | 0%
LoadData() | 100% | 1 | 0%
SaveData() | 100% | 1 | 0%
Process(...) | 100% | 1 | 0%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\Authentication\PasswordChangeRequiredMessage.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `namespace Renci.SshNet.Messages.Authentication`
|  | `2` |  | `{`
|  | `3` |  | `/// <summary>`
|  | `4` |  | `/// Represents SSH_MSG_USERAUTH_PASSWD_CHANGEREQ message.`
|  | `5` |  | `/// </summary>`
|  | `6` |  | `[Message("SSH_MSG_USERAUTH_PASSWD_CHANGEREQ", 60)]`
|  | `7` |  | `internal sealed class PasswordChangeRequiredMessage : Message`
|  | `8` |  | `{`
|  | `9` |  | `/// <summary>`
|  | `10` |  | `/// Gets password change request message as UTF-8 encoded byte array.`
|  | `11` |  | `/// </summary>`
| 0 | `12` |  | `public byte[] Message { get; private set; }`
|  | `13` |  | ``
|  | `14` |  | `/// <summary>`
|  | `15` |  | `/// Gets message language as UTF-8 encoded byte array.`
|  | `16` |  | `/// </summary>`
| 0 | `17` |  | `public byte[] Language { get; private set; }`
|  | `18` |  | ``
|  | `19` |  | `/// <summary>`
|  | `20` |  | `/// Gets the size of the message in bytes.`
|  | `21` |  | `/// </summary>`
|  | `22` |  | `/// <value>`
|  | `23` |  | `/// The size of the messages in bytes.`
|  | `24` |  | `/// </value>`
|  | `25` |  | `protected override int BufferCapacity`
|  | `26` |  | `{`
|  | `27` |  | `get`
| 0 | `28` |  | `{`
| 0 | `29` |  | `var capacity = base.BufferCapacity;`
| 0 | `30` |  | `capacity += 4; // Message length`
| 0 | `31` |  | `capacity += Message.Length; // Message`
| 0 | `32` |  | `capacity += 4; // Language length`
| 0 | `33` |  | `capacity += Language.Length; // Language`
| 0 | `34` |  | `return capacity;`
| 0 | `35` |  | `}`
|  | `36` |  | `}`
|  | `37` |  | ``
|  | `38` |  | `/// <summary>`
|  | `39` |  | `/// Called when type specific data need to be loaded.`
|  | `40` |  | `/// </summary>`
|  | `41` |  | `protected override void LoadData()`
| 0 | `42` |  | `{`
| 0 | `43` |  | `Message = ReadBinary();`
| 0 | `44` |  | `Language = ReadBinary();`
| 0 | `45` |  | `}`
|  | `46` |  | ``
|  | `47` |  | `/// <summary>`
|  | `48` |  | `/// Called when type specific data need to be saved.`
|  | `49` |  | `/// </summary>`
|  | `50` |  | `protected override void SaveData()`
| 0 | `51` |  | `{`
| 0 | `52` |  | `WriteBinaryString(Message);`
| 0 | `53` |  | `WriteBinaryString(Language);`
| 0 | `54` |  | `}`
|  | `55` |  | ``
|  | `56` |  | `internal override void Process(Session session)`
| 0 | `57` |  | `{`
| 0 | `58` |  | `session.OnUserAuthenticationPasswordChangeRequiredReceived(this);`
| 0 | `59` |  | `}`
|  | `60` |  | `}`
|  | `61` |  | `}`

# Methods/Properties

get_Message()
get_Language()
get_BufferCapacity()
LoadData()
SaveData()
Process(Renci.SshNet.Session)