HttpConnection and digest authentication

Hello!

I'm doing a HttConnection with digest authentication and I get the error message:

"Stream not in installation status.

First I open a url and get the instance of HttpConnection, then I get "www-athenticate" the server response header field. It looks like

"" "Digest qop ="auth", domain ="Trade station", stale =" FALSE ", nonce ="Hudbb7j3hjd8shhYhj706gtMo81VdRg5""

Then I need to use for the response of creation using MD5 method based auth algorhytm which returns the encrypted string.

After that I put the property "Authorization" of the application with that the authString and I get error "Stream not in the installation state.

I need to set this property for successful authorization

Here is the code:

EventLogger.register (0xeeb9787571dbc971L, "BB", EventLogger.VIEWER_STRING);
            
InputStream str = null;
InputStreamReader isr = null;
HttpConnection conn = null;
Conn = (HttpConnection) Connector.Open (URL); I open url
String conn.getHeaderField = header3 (3);      I get the answer number field heading 3 - www-athenticate
String auth = authString (//crypting channels of response
'GET ',.
"http://server_address/xml/logon,"
"login."
'pass ',.
header3);
conn.setRequestProperty ("authorization", authString);  Set the property of permission but I get the error
            
DataOutputStream back = conn.openDataOutputStream ();
back. Write ("something to send".getBytes ());
back. Flush();
Str = conn.openInputStream ();
ISR = new InputStreamReader(str,"utf-8");
int ch;
{while ((ch = SRI. {(Read())! =-1)}
result += (char) ch;
}
Conn.Close ();

Thanks in advance!

Hello!

Thanks for the responses I found the decision. I need to get the WWW-authenticate header field"'and Also ' Set-Cookie ', to store and to close the connection. Then I opened stored new connection with the 'Cookie' query parameter that contains the value of field 'Set-Cookie' and the 'Permission' parameter that contains an encrypted value of the header field "WWW-authenticate.

For a long time, I couldn't Set-Cookie setting - he was absent in the frequency of the server! After many actions, I added '; deviceside = true' at the end of the url string and I have! SDM does not store the cookie when I use the BB Simulator

Thank you very much

Tags: BlackBerry Developers

Similar Questions

  • Why my phone was telling me my copy of windows and not authentic after two years? I tried a system restore but it did not help

    Why my phone was telling me my copy of windows and not authentic after two years?

    I tried a system restore but it did not help

    Hello

    1. Windows you receive not genuine error?
    2. Did you do any software or hardware changes on your computer before the show?
     
    Follow the below mentioned article:
    Genuine Windows: Frequently asked questions:
    http://Windows.Microsoft.com/en-us/Windows/help/genuine/FAQ
  • AnyConnect user using the user certificate authentication and LDAP authentication

    Hello

    I'm trying to implement the Anyconnect VPN for my office. Now, I want the user to authenticate the user certificate based (which is install user local system are we) CN value and LDAP authentication. A help how to achieve this requirement. We install Certificate ROOT and INTERMEDIATE Godaddy and even already installed ASA. Also, we have the user certificate installed on each system user to authenticate the user.

    Any help please.

    Hi subhasisdutta,

    This link will certainly help you with the configuration:

    http://www.Cisco.com/c/en/us/support/docs/security/AnyConnect-secure-mob...

    Hope this info helps!

    Note If you help!

    -JP-

  • Call the web service with Digest authentication

    Hello

    I JDevelper 12.2.4, I need build the java class to call the web service with Digest authentication.

    Any suggestion?

    Refer to:

    http://StackOverflow.com/questions/14896324/consuming-WCF-service-with-Digest-authentication-from-Java

  • Creative cloud, Mac and Proxy authentication

    Hello good people,

    I'm in a bit of trouble with CC, Mac and the Proxy authentication.

    To download my Mac CC wonder password and username authentication proxy, which is enabled in the network, the advanced - settings HTTP proxy preferences . I am able to browse the web and access the Adobe creative web part.

    I used an open wireless connection to download CC and it worked.

    Now when I try to open it asks me to insert the password and user name for proxy.

    I have entered the credentials of well-known work, but the guest retains his return.

    I've seen other posts related to this, I wonder if anyone has found answers?

    Have you tried to add several sites of adobe in order to bypass the authentication proxy on the proxy server, but it did not work, either

    Any help is appreciated mucho!

    Hello

    I solved this.

  • Combination of certificate and anonymous authentication on a server not supported?

    Hello

    having certificates of authentication (name of user and password is DISABLED) and anonymous authentication turned

    on a server LCRM led to errors of application client-side open documents protected Anonymous auth.

    Earlier, as the name of user and password - auth is lit (in more cert and anonymous authentication).

    Anonymous-auth protected documents very well just open (withous any question on the credentials)

    Is this considered a bug?

    There will be a solution for this?

    Thank you

    Dilettanto

    Dilettanto

    I was able to reproduce the problem that you reported.  I don't know if this is a bug or not, although it seems that it might be.

    You must connect this issue with the Adobe technical support so he can deal with the necessary people.

    Concerning

    Steve

  • How can I erase the active sessions and / or authenticated at a granular level?

    When I visit a Web site and I authenticate either via username or certificate / States PKI, identification and authentication information is stored somewhere. I want to know where that somewhere, so I can cancel these one at a time manually.

    I understand that I can go into the Options and clear browsing data - and Yes, this will accomplish the same sorta thing - however, it will kill ALL my sessions authenticated through ALL my tabs. I would like to know if there is a manual way where I can do BY the site, while it is not a such brute force method.

    Last note: I don't want to close all my tabs (Firefox completely quit). Nor do I want to go through the options to do. If I can be educated to know where is my session store location and authentication, then this will answer my question.

    I am an advanced user and have no problem working my way around my system to fit my needs, I don't know where to find this database store.

    It is likely not possible since it is to disconnect from the secret decoder ring (CSD) and the sending of a notification to close all http and ftp sessions (net: clear active connections).

    See 'sessions' in chrome://browser/content/sanitize.js

  • KB982381 which replaces 980182, 978207, 976749, 976325 and native authentication from windows 974455 breaks Single Sign On

    I have proven tha the recently updated KB 982381 which replaces 980182,978207, 976749, 976325 and 974455 breaks single sign on for my domain. This process of Single Sign-On using Kerberos authentication to the people on an Oracle Portal newspaper. This works perfectly for each single user... As long as we do not install these updates. Each month, we must keep remove these KBs. The thing is I don't want to continue to do that I have not WSUS. In addition, I would quite be able to upgrade my computers without breach of SIngle Sign On. That everybody knows or has information on what could cause this problem?

    Contact the Support of Oracle and your MS TAM.

    No computer must be connected to the internet without security for IE installed the latest update!

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy.  If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    Buying to meet problems installing Microsoft security updates also can visit the following page for assistance:https://consumersecuritysupport.microsoft.com/

    For more information about how to contact your local Microsoft subsidiary for security update support issues, visit the International Support Web site:http://support.microsoft.com/common/international.aspx

    For enterprise customers, support for security updates is available through your usual support contacts.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Why my PC now starts with black background and not authentic message?

    Original title: why PC starts in Mode safe?

    I have Microsoft Windows Vista Home Premium 64-bit Edition.

    Before going on vacation, I turned off all power. After that we are back and turned on PC, system booted in safe mode.  Screen has black background.

    Message reads; Windows Vista (TM) - Build 6002 - this copy of Windows is not genuine.

    What could have happened? PC was working fine before our departure.

    Moved from Vista Performance and Maintenance Forum.

    How to activate Windows 7 or Vista manually (activate by phone)
    http://support.Microsoft.com/kb/950929/en-us

    1) click Start and in the search for box type: slui.exe 4
    (2) press the ENTER"" key.
    (3) to select your "country" you are in the drop-down list.
    (4) choose the option "activate phone".
    (5) stay on the phone * do not select/press any option * and wait for a person to help you.
    (6) explain your problem clearly to the support person.
    (7) the person must give you a confirmation ID, copy it down on paper,
    (8) check that the ID is correct in reading the support person.
    (9) to enter the ID number, then click 'Next' to complete the activation process.

    Activation and registration of a Microsoft product
    http://support.Microsoft.com/?kbid=326851
    Windows activation: (888) 571-2048
    (888) 725-1047 or 800-936-5700

    What's the relationship between activation and genuine Windows?
    http://Windows.Microsoft.com/en-in/Windows7/what-s-the-relationship-between-activation-and-genuine-Windows

    What is the validation, and how does it work?
    Windows 7: http://windows.microsoft.com/en-us/windows/help/genuine/what-is-validation?os=win7
    Vista: http://windows.microsoft.com/en-us/windows/help/genuine/what-is-validation?os=winvista

    Authentic Microsoft software program privacy statement
    What data is collected?
    http://Windows.Microsoft.com/en-us/Windows/genuine/privacy-statement

    -Product key of letters and numbers-

    Not confused the letter B with the number 8, the letter Q with the letter O.
    the letter G and the number 6.

    A, E, I, O and u are not used.

    ----------------------------  Alternatives -------------------------------------

    To enable the use of the phone

    1. open Activation of Windows by clicking on the Start button, right click on computer, clicking Properties.
    then by clicking on activate Windows now. ?

    2. click on show me other ways to activate.

    3 type your Windows 7 product key, and then click Next.

    4. click on use the automated telephone and then click Next.
    If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    5. click on the location nearest you from the drop-down list, and then click Next.

    6. call one of the available phone numbers listed. An automated system will guide you through the activation process.

    7. When prompted, enter the installation ID that is listed on your screen in your phone keypad.

    8 Note the confirmation ID the phone system gives you.

    9. under the terms of step 3, type the confirmation ID in the space provided, click Next, and then follow the instructions.

    10. If the activation is not successful, stay on the line to be transferred to a product activation agent who can help you.

    How to contact a Microsoft Product Activation Center by phone
    http://support.Microsoft.com/kb/950929

    Activation and registration of a Microsoft product
    http://support.Microsoft.com/?kbid=326851
    Windows activation: (888) 571-2048
    (888) 725-1047 or 800-936-5700

    Microsoft Activation centers worldwide telephone numbers:
    http://www.Microsoft.com/licensing/existing-customers/activation-centers.aspx
    (This site is for activating Volume License, but if you call, they will help you)

    The phone number is not working:
    Microsoft Worldwide contacts: http://www.microsoft.com/worldwide/default.aspx

    Learn about Activation:
    http://TechNet.Microsoft.com/en-us/library/ff793423.aspx

    J W Stuart: http://www.pagestart.com

  • How can I upgrade to Windows 7 or Windows 8 on HP laptop and be authentic?

    Dear Sir

    I have 3 HP laptop with Windows Vista and want to upgrade to Windows 7 or Windows 8, then you could pls advice how could I do to install new windows 7 or 8 on my laptop with the authentic version?
    and pls note the Microsoft label on my HP laptop is not clear now, (I can't read the windows vista serial #) so what can I do to keep the real window?
    Thank you
    Shehata M

    I have 3 HP laptop with Windows Vista and want to upgrade to Windows 7 or Windows 8, then you could pls advice how could I do to install new windows 7 or 8 on my laptop with the authentic version?

    and pls note the Microsoft label on my HP laptop is not clear now, (I can't read the windows vista serial #) so what can I do to keep the real window?

    Windows 8 is not production (finished; released as final product, etc.) yet.

    As far as Windows 7 is concerned, you must manually (do not rely on any software, including any made by Microsoft) check your current hardware and installed software are compatible with Windows 7.  follow these steps by making a list (model of the computer, each software package you have installed, the hardware you connect to the computer such as printers, scanners, cameras, etc.) and check the manufacturer's web page to see if they support this product at this level of version in Windows 7.  Chances are on your side, because it is a Vista machine.

    Youd

    would then buy a version of Windows 7, you can use to pass any specific edition of Vista you have and that you upgrade.  It's quite simple initially, just insert the DVD and follow the directions.  You will need to download and install the most recent hardware drivers for each component material (many that you can go to HP for via your model computer support web page, but your devices will be elsewhere...)

  • How to make httpconnection and get the xml response using httpconnection in post method.

    Hello

    I am new to the blackberry web work,

    I want to make httpconnection using the post method and also pass a parameter related to my url.

    This function returns xml data.

    How can I perform this task.

    Please help me if anyone has a solution...

    I have soved that problem myself.

  • Aironet 1200 and MAC authentication

    Hi all

    I Aironet 1210 and you want to implement the authentication MAC without ACS.

    Now, I know that any AP Aironet can allow authentication MAC se store the list of MAC addresses.

    So after the command:

    TestAP (config-if-ssid) #authentication open mac

    TestAP (config-if-ssid) #authentication open mac address?

    WORD mac address list (1-31 characters) name

    There is no way I can list all MAC addresses in the list. I use IOS Version 12.2 (13) JA3.

    Any help would be greatly appreciated.

    Kind regards

    Samuel Wilson

    If you do not have a RADIUS server on your network, you can create a list of MAC addresses allowed on advanced security of access point: MAC address authentication page. Devices with not on the list of MAC addresses are not allowed to authenticate.

    I use the GUI to make a list:

    http://www.Cisco.com/en/us/products/HW/wireless/ps4570/products_configuration_example09186a00801c0912.shtml

    The link above is to use the local capacity of GANYMEDE to the AP, but if you select the option "Advanced Security" on the right side of the web interface, it will take you to the page where you can create your list of mac addresses.

    Please evaluate the useful messages.

  • 802. 1 x wireless - apply user AND computer authentication

    I use ACS v5.6 and I would like to confirm that it is not possible to apply the two authentication user and machine against AD prior access Wireless Windows 7 clients, using the PEAP/MSCHAPv2 Protocol and the built-in supplicant 802. 1 x.

    The only solution seems to imply MAR (Machine Access Restrictions), which are quite significant disadvantages.

    I'd rather not have to deploy user certificates and computer.

    All I want to do is to allow access to the fi only Wi-Fi the device and the user are in AD.

    It's such a simple scenario that I must be missing something.

    Any suggestions are welcome. Thanks in advance for your comments.

    Lucas

    It is possible to authenticate the user and the machine, you can check the computer account on an Active Directory (a method).

    This document should help (Machine Authentication):

    http://www.Cisco.com/c/en/us/TD/docs/net_mgmt/cisco_secure_access_contro...

  • Cisco ACS 5.1 and RSA Authentication Manager 6.1

    Hi all

    We recently had a Cisco Secure ACS 1120 and I improved the Unit 5.1 5.0 with all your support

    Now, I need to integrate Cisco ACS 5.1 with RSA Authentication Manager 6.1. I have config file of RSA ACE Server successfully downloaded and exported to 1120 ACS.

    I also added as NetOS Agent ACS in the RSA server during the process, I found a few warnings. The ACE Server is not able to resolve the IP address to the name (is it necessary?).

    I have not created any file of secret key for communication between FAC and RSA and I used encryption is FOR.

    Now, when I log into ACS and search for devices in the identity store sequences I am not able to get Sever Token RSA.

    Let me know what was wrong, where can I fix and also please tell me what is the communciaction between the RSA and ACS?

    Hoping that you guys help me as usual when I'm in a hurry...

    Sree

    Were you able to successfully create the RSA identity server. After selecting the sdconf.rec and you press on submit what happened? The RSA instance created OK?

    If you go to

    Users and identity stores > external identity stores > RSA SecurID Token servers, what do you see in the list?

  • UCS LDAP and Native authentication

    Hello

    We put the Native authentication for LDAP and UCS Manager connection to LDAP as well. We are able to connect to GUI & SSH using the LDAP account. But can not connect on the GUI using the local account (admin).

    If I change the Native authentication at the local level, we can connect to GUI via local account (admin), but can not connect to SSH via LDAP account.

    Missing something?

    Please let me know.

    / Rags

    Hello

    When you have changed the native auth to LDAP and use local account, are you prefixing the local username with the local domain auth?

    * From Linux / MAC machine

    SSH ucs -------@.

    SSH-l ucs -.

    SSH -l ucs -.

    * From client PuTTY

    Connect as: ucs -.

    NOTE the domain name is case-sensitive and must match the name field set up in UCSM.

    Try connecting with the name in domainsername and let us know the result.

    Padma

Maybe you are looking for

  • Turn on the problem.

    How can I get my iMac to propel to the top? He gets to midway up and then stops.  Have you tried the unplug and hold down the button bugs and that they did not help.

  • Xperia Arc S and ICS.

    Is it useful to update Xperia Arc S for ICS? This will affect the performance of the phone?

  • Film loop with automator doesn´t stay full screen.

    I m doing a video art installation with a 30-minute film that should loop several times. Simply put, I want the film to go as soon as the computer is started. Do that I ve done a soft in automator that I use as a start object. The app tells quicktime

  • Weird loading bug

    I'm on 5.0.1 and I meet a few bugs on this current version, the first is the problem of the consumption of RAM (something you all know) and the other happens when Im loading when my phone is off, but every time I do the screen goes out after it start

  • Recommended for battery does not charge if plugged in charger and the system is activated in map mode.

    Anyones answer is welcome to the 21/08/11. Thanks to one that meets responsibly!