/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader">The input stream</param> /// <param name="Tag">The tag</param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "Sites" : { // Have a sequence of values bool _Going = JSONReader.StartArray (); Sites = new List <string> (); while (_Going) { string _Item = JSONReader.ReadString (); Sites.Add (_Item); _Going = JSONReader.NextArray (); } break; } case "DNS" : { // Have a sequence of values bool _Going = JSONReader.StartArray (); DNS = new List <Connection> (); while (_Going) { // an untagged structure. var _Item = new Connection (JSONReader); DNS.Add (_Item); _Going = JSONReader.NextArray (); } break; } case "Prefix" : { // Have a sequence of values bool _Going = JSONReader.StartArray (); Prefix = new List <string> (); while (_Going) { string _Item = JSONReader.ReadString (); Prefix.Add (_Item); _Going = JSONReader.NextArray (); } break; } case "CTL" : { CTL = JSONReader.ReadBinary (); break; } case "WebPKI" : { // Have a sequence of values bool _Going = JSONReader.StartArray (); WebPKI = new List <string> (); while (_Going) { string _Item = JSONReader.ReadString (); WebPKI.Add (_Item); _Going = JSONReader.NextArray (); } break; } default : { break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader">The input stream</param> /// <param name="Tag">The tag</param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "Digest" : { Digest = JSONReader.ReadBinary (); break; } default : { break; } } // check up that all the required elements are present }
public new void DeserializeToken(JSONReader JSONReader, string Tag) { switch (Tag) { case "ChallengeResponse" : { ChallengeResponse = JSONReader.ReadBinary (); break; } default : { ((Request)this).DeserializeToken(JSONReader, Tag); break; } } // check up that all the required elements are present }
public virtual void DeserializeToken(JSONReader JSONReader, string Tag) { switch (Tag) { case "Protocol" : { Protocol = JSONReader.ReadString (); break; } case "Secret" : { Secret = JSONReader.ReadBinary (); break; } case "Encryption" : { Encryption = JSONReader.ReadString (); break; } case "Authentication" : { Authentication = JSONReader.ReadString (); break; } case "Ticket" : { Ticket = JSONReader.ReadBinary (); break; } case "Expires" : { Expires = JSONReader.ReadDateTime (); break; } default : { break; } } // check up that all the required elements are present }
public new void DeserializeToken(JSONReader JSONReader, string Tag) { switch (Tag) { case "Account" : { Account = JSONReader.ReadString (); break; } case "Domain" : { Domain = JSONReader.ReadString (); break; } case "HavePasscode" : { HavePasscode = JSONReader.ReadBoolean (); break; } case "HaveDisplay" : { HaveDisplay = JSONReader.ReadBoolean (); break; } case "Challenge" : { Challenge = JSONReader.ReadBinary (); break; } case "DeviceID" : { DeviceID = JSONReader.ReadString (); break; } case "DeviceURI" : { DeviceURI = JSONReader.ReadString (); break; } case "DeviceImage" : { DeviceImage = new ImageLink (JSONReader); break; } case "DeviceName" : { DeviceName = JSONReader.ReadString (); break; } default : { ((BindRequest)this).DeserializeToken(JSONReader, Tag); break; } } // check up that all the required elements are present }
public new void DeserializeToken(JSONReader JSONReader, string Tag) { switch (Tag) { case "Challenge" : { Challenge = JSONReader.ReadBinary (); break; } case "ChallengeResponse" : { ChallengeResponse = JSONReader.ReadBinary (); break; } case "VerificationImage" : { bool _Going = JSONReader.StartArray (); VerificationImage = new List <ImageLink> (); while (_Going) { ImageLink _Item = new ImageLink (JSONReader); VerificationImage.Add (_Item); _Going = JSONReader.NextArray (); } break; } default : { ((BindResponse)this).DeserializeToken(JSONReader, Tag); break; } } // check up that all the required elements are present }
public virtual void DeserializeToken(JSONReader JSONReader, string Tag) { switch (Tag) { case "Type" : { Type = JSONReader.ReadString (); break; } case "Data" : { Data = JSONReader.ReadBinary (); break; } default : { break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader"></param> /// <param name="Tag"></param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "enc" : { enc = JSONReader.ReadString (); break; } case "alg" : { alg = JSONReader.ReadString (); break; } case "kid" : { kid = JSONReader.ReadString (); break; } case "x5u" : { x5u = JSONReader.ReadString (); break; } case "x5c" : { x5c = JSONReader.ReadBinary (); break; } case "x5t" : { x5t = JSONReader.ReadBinary (); break; } case "x5t#S256" : { x5tS256 = JSONReader.ReadBinary (); break; } default : { break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader"></param> /// <param name="Tag"></param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "protected" : { Protected = JSONReader.ReadBinary (); break; } case "unprotected" : { Unprotected = JSONReader.ReadBinary (); break; } case "iv" : { IV = JSONReader.ReadBinary (); break; } case "ciphertext" : { CipherText = JSONReader.ReadBinary (); break; } case "tag" : { JTag = JSONReader.ReadBinary (); break; } case "aad" : { AdditionalAuthenticatedData = JSONReader.ReadBinary (); break; } case "recipients" : { // Have a sequence of values bool _Going = JSONReader.StartArray (); Recipients = new List <Recipient> (); while (_Going) { // an untagged structure. var _Item = new Recipient (JSONReader); Recipients.Add (_Item); _Going = JSONReader.NextArray (); } break; } default : { break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader"></param> /// <param name="Tag"></param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "header" : { // An untagged structure Header = new Header (JSONReader); break; } case "payload" : { Payload = JSONReader.ReadBinary (); break; } case "signature" : { Signature = JSONReader.ReadBinary (); break; } default : { break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader"></param> /// <param name="Tag"></param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "d" : { d = JSONReader.ReadBinary (); break; } case "p" : { p = JSONReader.ReadBinary (); break; } case "q" : { q = JSONReader.ReadBinary (); break; } case "dp" : { dp = JSONReader.ReadBinary (); break; } case "dq" : { dq = JSONReader.ReadBinary (); break; } case "qi" : { qi = JSONReader.ReadBinary (); break; } default : { base.DeserializeToken(JSONReader, Tag); break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader"></param> /// <param name="Tag"></param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "Header" : { // An untagged structure Header = new Header (JSONReader); break; } case "encrypted_key" : { EncryptedKey = JSONReader.ReadBinary (); break; } default : { break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader"></param> /// <param name="Tag"></param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "kty" : { kty = JSONReader.ReadString (); break; } case "use" : { use = JSONReader.ReadString (); break; } case "key_ops" : { key_ops = JSONReader.ReadString (); break; } case "k" : { k = JSONReader.ReadBinary (); break; } default : { base.DeserializeToken(JSONReader, Tag); break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader">The input stream</param> /// <param name="Tag">The tag</param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "TransactionID" : { TransactionID = JSONReader.ReadString (); break; } case "PrimaryKey" : { PrimaryKey = JSONReader.ReadString (); break; } case "PriorTransactionID" : { PriorTransactionID = JSONReader.ReadString (); break; } case "Action" : { Action = JSONReader.ReadString (); break; } case "Added" : { Added = JSONReader.ReadDateTime (); break; } case "Keys" : { // Have a sequence of values bool _Going = JSONReader.StartArray (); Keys = new List <IndexTerm> (); while (_Going) { var _Item = IndexTerm.FromTagged (JSONReader); // a tagged structure Keys.Add (_Item); _Going = JSONReader.NextArray (); } break; } case "Data" : { Data = JSONReader.ReadBinary (); break; } case "Text" : { Text = JSONReader.ReadString (); break; } case "Pending" : { Pending = JSONReader.ReadBoolean (); break; } case "Commit" : { Commit = JSONReader.ReadBoolean (); break; } case "Rollback" : { Rollback = JSONReader.ReadBoolean (); break; } default : { break; } } // check up that all the required elements are present }
public virtual void DeserializeToken(JSONReader JSONReader, string Tag) { switch (Tag) { case "Algorithm" : { Algorithm = JSONReader.ReadString (); break; } case "Image" : { Image = JSONReader.ReadBinary (); break; } default : { break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader">The input stream</param> /// <param name="Tag">The tag</param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "Type" : { Type = JSONReader.ReadString (); break; } case "Content" : { Content = JSONReader.ReadString (); break; } case "Comment" : { Comment = JSONReader.ReadString (); break; } case "Digest" : { Digest = JSONReader.ReadString (); break; } case "LastDigest" : { LastDigest = JSONReader.ReadBinary (); break; } case "Delta" : { // An untagged structure Delta = new Delta (JSONReader); break; } default : { break; } } // check up that all the required elements are present }
/// <summary> /// Having read a tag, process the corresponding value data. /// </summary> /// <param name="JSONReader">The input stream</param> /// <param name="Tag">The tag</param> public override void DeserializeToken (JSONReader JSONReader, string Tag) { switch (Tag) { case "UDF" : { UDF = JSONReader.ReadString (); break; } case "X509Certificate" : { X509Certificate = JSONReader.ReadBinary (); break; } case "X509Chain" : { // Have a sequence of values bool _Going = JSONReader.StartArray (); X509Chain = new List <byte[]> (); while (_Going) { byte[] _Item = JSONReader.ReadBinary (); X509Chain.Add (_Item); _Going = JSONReader.NextArray (); } break; } case "X509CSR" : { X509CSR = JSONReader.ReadBinary (); break; } case "PublicParameters" : { PublicParameters = Key.FromTagged (JSONReader) ; // A tagged structure break; } case "PrivateParameters" : { PrivateParameters = Key.FromTagged (JSONReader) ; // A tagged structure break; } default : { break; } } // check up that all the required elements are present }