<s> """<STR_LIT>""" <EOL> from simian . auth import base <EOL> from simian . auth import util <EOL> class Error ( Exception ) : <EOL> """<STR_LIT>""" <EOL> class CaParametersError ( Error ) : <EOL> """<STR_LIT>""" <EOL> class AuthSessionSimianClient ( base . Auth1ClientSession ) : <EOL> """<STR_LIT>""" <EOL> class AuthSimianClient ( base . Auth1Client ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> super ( AuthSimianClient , self ) . __init__ ( ) <EOL> def LoadCaParameters ( self , settings ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> ca_params = util . GetCaParameters ( settings , omit_server_private_key = True ) <EOL> except util . CaParametersError , e : <EOL> raise CaParametersError ( * e . args ) <EOL> self . _ca_pem = ca_params . ca_public_cert_pem <EOL> self . _server_cert_pem = ca_params . server_public_cert_pem <EOL> self . _required_issuer = ca_params . required_issuer <EOL> def GetSessionClass ( self ) : <EOL> return AuthSessionSimianClient </s>
