#NEWLINE# def __validate( self ) : #NEWLINE# #INDENT# if ( self . common_template_attribute is not None ) : #NEWLINE# #INDENT# if ( not isinstance ( self . common_template_attribute , objects . CommonTemplateAttribute ) ) : #NEWLINE# #INDENT# msg = 'invalid common template attribute' #NEWLINE# msg += '; expected {0}, received {1}' . format ( objects . CommonTemplateAttribute , self . common_template_attribute ) #NEWLINE# raise TypeError ( msg ) #NEWLINE# #UNINDENT# #UNINDENT# if ( self . private_key_template_attribute is not None ) : #NEWLINE# #INDENT# if ( not isinstance ( self . private_key_template_attribute , objects . PrivateKeyTemplateAttribute ) ) : #NEWLINE# #INDENT# msg = 'invalid private key template attribute' #NEWLINE# msg += '; expected {0}, received {1}' . format ( objects . PrivateKeyTemplateAttribute , self . private_key_template_attribute ) #NEWLINE# raise TypeError ( msg ) #NEWLINE# #UNINDENT# #UNINDENT# if ( self . public_key_template_attribute is not None ) : #NEWLINE# #INDENT# if ( not isinstance ( self . public_key_template_attribute , objects . PublicKeyTemplateAttribute ) ) : #NEWLINE# #INDENT# msg = 'invalid public key template attribute' #NEWLINE# msg += '; expected {0}, received {1}' . format ( objects . PublicKeyTemplateAttribute , self . public_key_template_attribute ) #NEWLINE# raise TypeError ( msg )