@classmethod<EOL><INDENT>def parse(cls, detail_string):<DEDENT>
split = detail_string.split('<STR_LIT::>')<EOL>if len(split) != <NUM_LIT:4>:<EOL><INDENT>raise Exception('<STR_LIT>')  <EOL><DEDENT>ltpk = binascii.unhexlify(split[<NUM_LIT:0>])<EOL>ltsk = binascii.unhexlify(split[<NUM_LIT:1>])<EOL>atv_id = binascii.unhexlify(split[<NUM_LIT:2>])<EOL>client_id = binascii.unhexlify(split[<NUM_LIT:3>])<EOL>return Credentials(ltpk, ltsk, atv_id, client_id)<EOL>
Parse a string represention of Credentials.