package Ġorg . ny pl . simpl ified . accounts . json . internal Ċ Ċ import Ġcom . fasterxml . jackson . databind . node . Object Node Ċ import Ġcom . io 7 m . j functional . Some Ċ import Ġorg . ny pl . dr m . core . A dobe Device ID Ċ import Ġorg . ny pl . dr m . core . A dobe UserID Ċ import Ġorg . ny pl . dr m . core . A dobe Vendor ID Ċ import Ġorg . ny pl . simpl ified . accounts . api . Account Authentication A dobe Client Token Ċ import Ġorg . ny pl . simpl ified . accounts . api . Account Authentication A dobe Post Activation Credentials Ċ import Ġorg . ny pl . simpl ified . accounts . api . Account Authentication A dobe Pre Activation Credentials Ċ import Ġorg . ny pl . simpl ified . json . core . JSONParser Utilities Ċ Ċ object ĠAccount Authentication Credentials A dobe JSON Ġ{ ĊĊĠ Ġfun Ġdeserialize A dobe Credentials ( ĊĠĠĠ Ġcreds Obj : ĠObject Node ĊĠ Ġ): ĠAccount Authentication A dobe Pre Activation Credentials Ġ{ ĊĠĠĠ Ġval Ġactivation Opt Ġ= ĊĠĠĠĠĠ ĠJSON Parser Utilities . getObject Optional ( creds Obj , Ġ" activation ") ĊĊĠĠĠ Ġval Ġcreds Post : ĠAccount Authentication A dobe Post Activation Credentials ? Ġ= ĊĠĠĠĠĠ Ġif Ġ( activation Opt . is Some ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġactivation Ġ= ĊĠĠĠĠĠĠĠĠĠ Ġ( activation Opt Ġas ĠSome < Object Node >). get () ĊĠĠĠĠĠĠĠ ĠAccount Authentication A dobe Post Activation Credentials ( ĊĠĠĠĠĠĠĠĠĠ ĠAdobe Device ID ( JSONParser Utilities . getString ( activation , Ġ" device _ id ")), ĊĠĠĠĠĠĠĠĠĠ ĠAdobe UserID ( JSONParser Utilities . getString ( activation , Ġ" user _ id ")) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠ Ġnull ĊĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġreturn ĠAccount Authentication A dobe Pre Activation Credentials ( ĊĠĠĠĠĠ ĠAdobe Vendor ID ( ĊĠĠĠĠĠĠĠ ĠJSON Parser Utilities . getString ( creds Obj , Ġ" vendor _ id ") ĊĠĠĠĠĠ Ġ), ĊĠĠĠĠĠ ĠAccount Authentication A dobe Client Token . parse ( ĊĠĠĠĠĠĠĠ ĠJSON Parser Utilities . getString ( creds Obj , Ġ" client _ token ") ĊĠĠĠĠĠ Ġ), ĊĠĠĠĠĠ ĠJSON Parser Utilities . get URI OrNull ( creds Obj , Ġ" device _ manager _ uri "), ĊĠĠĠĠĠ Ġcreds Post ĊĠĠĠ Ġ) ĊĠ Ġ} Ċ } Ċ