<s> """<STR_LIT>""" <EOL> import json <EOL> import six <EOL> from oic . oauth2 . message import Message , OPTIONAL_LIST_OF_STRINGS <EOL> from oic . oauth2 . message import OPTIONAL_LIST_OF_SP_SEP_STRINGS <EOL> from oic . oauth2 . message import REQUIRED_LIST_OF_STRINGS <EOL> from oic . oauth2 . message import SINGLE_OPTIONAL_INT <EOL> from oic . oauth2 . message import SINGLE_OPTIONAL_STRING <EOL> from oic . oauth2 . message import SINGLE_REQUIRED_STRING <EOL> from oic . oic . message import msg_ser <EOL> from oic . oic . message import SINGLE_REQUIRED_INT <EOL> __author__ = '<STR_LIT>' <EOL> class TokenExchangeRequest ( Message ) : <EOL> c_param = { <EOL> '<STR_LIT>' : SINGLE_REQUIRED_STRING , <EOL> '<STR_LIT>' : SINGLE_OPTIONAL_STRING , <EOL> '<STR_LIT>' : SINGLE_OPTIONAL_STRING , <EOL> '<STR_LIT>' : OPTIONAL_LIST_OF_SP_SEP_STRINGS , <EOL> '<STR_LIT>' : SINGLE_OPTIONAL_STRING , <EOL> '<STR_LIT>' : SINGLE_REQUIRED_STRING , <EOL> '<STR_LIT>' : SINGLE_REQUIRED_STRING , <EOL> '<STR_LIT>' : SINGLE_OPTIONAL_STRING , <EOL> '<STR_LIT>' : SINGLE_OPTIONAL_STRING , <EOL> '<STR_LIT>' : SINGLE_OPTIONAL_STRING <EOL> } <EOL> def verify ( self , ** kwargs ) : <EOL> if '<STR_LIT>' in self : <EOL> if not '<STR_LIT>' : <EOL> return False <EOL> class TokenExchangeResponse ( Message ) : <EOL> c_param = { <EOL> "<STR_LIT>" : SINGLE_REQUIRED_STRING , <EOL> "<STR_LIT>" : SINGLE_REQUIRED_STRING , <EOL> "<STR_LIT>" : SINGLE_REQUIRED_STRING , <EOL> "<STR_LIT>" : SINGLE_OPTIONAL_INT , <EOL> "<STR_LIT>" : SINGLE_OPTIONAL_STRING , <EOL> "<STR_LIT>" : OPTIONAL_LIST_OF_SP_SEP_STRINGS <EOL> } <EOL> def sts_deser ( val , sformat = "<STR_LIT>" ) : <EOL> if sformat == "<STR_LIT>" : <EOL> sformat = "<STR_LIT>" <EOL> if sformat in [ "<STR_LIT>" , "<STR_LIT>" ] : <EOL> if not isinstance ( val , six . string_types ) : <EOL> val = json . dumps ( val ) <EOL> sformat = "<STR_LIT>" <EOL> return STS ( ) . deserialize ( val , sformat ) <EOL> SINGLE_OPTIONAL_STS = ( Message , False , msg_ser , sts_deser , False ) <EOL> class STS ( Message ) : <EOL> c_param = { <EOL> "<STR_LIT>" : REQUIRED_LIST_OF_STRINGS , <EOL> "<STR_LIT>" : SINGLE_REQUIRED_STRING , <EOL> "<STR_LIT>" : SINGLE_REQUIRED_INT , <EOL> "<STR_LIT>" : SINGLE_REQUIRED_INT , <EOL> "<STR_LIT>" : SINGLE_REQUIRED_STRING , <EOL> '<STR_LIT>' : SINGLE_OPTIONAL_STS , <EOL> '<STR_LIT>' : OPTIONAL_LIST_OF_STRINGS <EOL> } </s>
