edu.udayton.udri.asset.hikvision/src/edu/udayton/udri/asset/hikvision/HikVisionAsset.java
private void authenticate(final String userName, final String password)
    {
        Authenticator.setDefault(new Authenticator()
        {
            @Override
            protected PasswordAuthentication getPasswordAuthentication()
            {
                return new PasswordAuthentication(userName, password.toCharArray());
            }
        });
    }
/**
     * Sets the login user and password so you can access online.
     * @param userName
     *     Name of user
     * @param password
     *     Password
     */
Sets the login user and password so you can access online.
@param userName
Name of user
@param password
Password
Sets the login user and password so you can access online . @param userName Name of user @param password Password
private void authenticate(final String userName, final String password)
    {
        Authenticator.setDefault(new Authenticator()
        {
            @Override
            protected PasswordAuthentication getPasswordAuthentication()
            {
                return new PasswordAuthentication(userName, password.toCharArray());
            }
        });
    }
private void authenticate ( final String userName , final String password ) { Authenticator . setDefault ( new Authenticator ( ) { @ Override protected PasswordAuthentication getPasswordAuthentication ( ) { return new PasswordAuthentication ( userName , password . toCharArray ( ) ) ; } } ) ; }
Sets the login user and password so you can access online.
Sets the login user and password so you can access online .