45 throw new \InvalidArgumentException();
49 throw new \InvalidArgumentException();
59 parent::serialize($encoder);
60 $encoder->encodeBoolean($this->newPassword !== null);
61 $encoder->encodeString($this->password);
62 if ($this->newPassword !== null) {
63 $encoder->encodeString($this->newPassword);
68 protected static function unserializeSub(\
fpoirotte\Pssht\Wire\
Decoder $decoder)
70 $passChange = $decoder->decodeBoolean();
71 $res = array($decoder->decodeString());
72 if ($passChange ===
true) {
73 $res[] = $decoder->decodeString();
$newPassword
New password.
__construct($user, $service, $method, $password, $newPassword=null)
$method
Authentication method.
$user
User being authenticated.
serialize(\fpoirotte\Pssht\Wire\Encoder $encoder)
$password
Password for the given login.
$service
Service to start after authentication.