def __init__(self, keytype='rsa'):
        """
        Constructor. Supported key types are provided by their respective
        protocol adapters and can be retrieved from the PrivateKey.keytypes
        class attribute.

        :type  keytype: string
        :param keytype: The key type.
        """
        if keytype not in self.keytypes:
            raise TypeError('unsupported key type: ' + repr(keytype))
        self.keytype = keytype
        self.filename = None
        self.password = None
def __init__ ( self , keytype = 'rsa' ) : if keytype not in self . keytypes : raise TypeError ( 'unsupported key type: ' + repr ( keytype ) ) self . keytype = keytype self . filename = None self . password = None
Constructor. Supported key types are provided by their respective
        protocol adapters and can be retrieved from the PrivateKey.keytypes
        class attribute.

        :type  keytype: string
        :param keytype: The key type.