(self, **kwargs)
[MS-PSRP] 2.2.3.25 PSCredential
        https://msdn.microsoft.com/en-us/library/ee442231.aspx

        Represents a username and a password. As the password is a secure
        string, the RunspacePool must have already exchanged keys with
        .exchange_keys() method.

        :param username: The username (including the domain if required)
        :param password: The password for the user, this should be a unicode
            string in order to make sure the encoding is correct
[MS-PSRP] 2.2.3.25 PSCredential
        https://msdn.microsoft.com/en-us/library/ee442231.aspx
[ MS - PSRP ] 2 . 2 . 3 . 25 PSCredential https : // msdn . microsoft . com / en - us / library / ee442231 . aspx
def __init__(self, **kwargs):
        """
        [MS-PSRP] 2.2.3.25 PSCredential
        https://msdn.microsoft.com/en-us/library/ee442231.aspx

        Represents a username and a password. As the password is a secure
        string, the RunspacePool must have already exchanged keys with
        .exchange_keys() method.

        :param username: The username (including the domain if required)
        :param password: The password for the user, this should be a unicode
            string in order to make sure the encoding is correct
        """
        super(PSCredential, self).__init__()
        self._types = [
            "System.Management.Automation.PSCredential",
            "System.Object"
        ]
        self._adapted_properties = (
            ('username', ObjectMeta("S", name="UserName")),
            ('password', ObjectMeta("SS", name="Password")),
        )
        self._to_string = "System.Management.Automation.PSCredential"

        self.username = kwargs.get('username')
        self.password = kwargs.get('password')
def __init__ ( self , * * kwargs ) : super ( PSCredential , self ) . __init__ ( ) self . _types = [ "System.Management.Automation.PSCredential" , "System.Object" ] self . _adapted_properties = ( ( 'username' , ObjectMeta ( "S" , name = "UserName" ) ) , ( 'password' , ObjectMeta ( "SS" , name = "Password" ) ) , ) self . _to_string = "System.Management.Automation.PSCredential" self . username = kwargs . get ( 'username' ) self . password = kwargs . get ( 'password' )