Pkcs#11: store data in usb token

Hi,
can the pkcs#11 be used to store data on a usb token? For example storing an id?
Thanks

Hi,
can the pkcs#11 be used to store data on a usb token? For example storing an id?
Thanks

Similar Messages

  • Pkcs#11:store data in usb token (marked as q)

    Hi,
    can the pkcs#11 be used to store data on a usb token? For example storing an id?
    Thanks
    PS: What is this "mark as question" thing?
    Edited by: uig on Oct 26, 2007 1:51 AM

    Thanks.
    for the sake of the record I fixed this by specifying a METHOD_DATA and DIRECTORY in sqlnet.ora like in
    ENCRYPTION_WALLET_LOCATION=
    (SOURCE=(METHOD=HSM)(METHOD_DATA=
    (DIRECTORY=/app/oracle/admin/SID1/wallet)))
    where the directory exists, as opposed to just
    ENCRYPTION_WALLET_LOCATION=(SOURCE=(METHOD=HSM))
    as it says in the doco...
    I have a new issue, which I'll start a new thread for.

  • Best way to retrieve/store date Flex PHP MySQL?

    Hi All,
    I have a question about storing/retrieving a date-field from the MySQL database, using Flash Builder 2 & Zend AMF.
    This is as much as I know:
    MySQL Database stores date in this format: yyyy-mm-dd hh:mm:ss
    And Flex will not recognise that as a "date", instead it will suggest this value is an "object".
    With "Configure return type", I can manually set this field to "date", but it will not work retrieving of updating the date as MySQL will not understand the standard date-format it'll receive,
    I guess, the best solution would be if I could tell the MySQL Server how the standard date-format should be, but I have not found this option. Can anyone confirm this?
    The remaining options are:
    Format the date in the SQL-query
    Format the date in the PHP-function sending/retrieving
    Format the date in Flex, befor assigning it to a date-field...
    Can someone tell me the BEST practice to handle date-objects? I guess it's the date_format function in MySQL....
    I'm trying to build an app with over 3200 fields, shared over 60 tables, of which many are date-fields.
    Would be awesome if I could just use SELECT * FROM myTable, and all would be fine with date-fields and all...
    Any tips?

    I'm confused. This is what I have:
    On my MySQL database, I've created a VIEW with the query that I need. I thought it'd generally be efficient to create views for every 'Form' that I need.
    This is my VIEW v_person
    SELECT p.`person_id`, p.`name`, p.`lastname`, DATE_FORMAT(p.`birthdate`,'%d/%m/%Y %r') as birthdate
    FROM person p
    Now I have a simple table v_person returning
    person_id
    name
    lastname
    birthdate
    0
    John
    Doe
    null
    1
    Jane
    Did
    23/08/1976 12:00:00 AM
    2
    Juno
    Doh
    01/04/2001 12:00:00 AM
    "Great! Now I can set up my query once, returning the date in whatever format Flex likes."
    Not.
    This is the standard generated PHP function to get information by ID. This works fine.
         public function getV_personByID($itemID) {
              $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where person_id=?");
              $this->throwExceptionOnError();
              mysqli_bind_param($stmt, 'i', $itemID);          
              $this->throwExceptionOnError();
              mysqli_stmt_execute($stmt);
              $this->throwExceptionOnError();
              mysqli_stmt_bind_result($stmt, $row->person_id, $row->name, $row->lastname, $row->birthdate);
              if(mysqli_stmt_fetch($stmt)) {
                   return $row;
              } else {
                   return null;
    This is the standard generated Form in Flex:
    One note to make when using RETURN TYPE,
    is that in when I use person_id=0 , I can change "birthdate type" from OBJECT to DATE, because date is null.
    When I use person_id=1 , I CAN'T change "birthdate type" as it defaults to "STRING".
    Since I want to use a dateField in my Form, I changed birthdate type to "DATE". (Even though I now understand that return type IS in fact a string)
    <fx:Script>
         <![CDATA[
              import mx.controls.Alert;
              import mx.formatters.DateFormatter;
                   protected function button_clickHandler(event:MouseEvent):void
                   getV_persontestByIDResult.token = vpersontestService.getV_persontestByID(parseInt(itemIDTextInput.text));
         ]]>
    </fx:Script>
    <fx:Declarations>
              <vpersontestservice:VpersontestService id="vpersontestService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
         <s:CallResponder id="getV_persontestByIDResult" result="v_persontest = getV_persontestByIDResult.lastResult as V_persontest"/>
         <valueObjects:V_persontest id="v_persontest" person_id="{parseInt(person_idTextInput.text)}" />
         <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <mx:Form defaultButton="{button}">
         <mx:FormItem label="ItemID">
              <s:TextInput id="itemIDTextInput"/>
         </mx:FormItem>
         <s:Button label="GetV_persontestByID" id="button" click="button_clickHandler(event)"/>
    </mx:Form>
    <mx:Form>
         <mx:FormHeading label="V_persontest"/>
         <mx:FormItem label="Birtdate">
              <mx:DateField id="birthdateDateField" selectedDate="@{v_persontest.birthdate}" />
         </mx:FormItem>
         <mx:FormItem label="Last name">
              <s:TextInput id="lastnameTextInput" text="@{v_persontest.lastname}"/>
         </mx:FormItem>
         <mx:FormItem label="First name">
              <s:TextInput id="nameTextInput" text="@{v_persontest.name}"/>
         </mx:FormItem>
         <mx:FormItem label="person_id">
              <s:TextInput id="person_idTextInput" text="{v_persontest.person_id}"/>
         </mx:FormItem>
    </mx:Form>
    Works great! Except that it can't handle the date field:
    TypeError: Error #1034: Type Coercion failed: cannot convert "10/21/1984 12:00:00 AM" to Date.
         at com.adobe.serializers.utility::TypeUtility$/assignProperty()[C:\perforceGAURAVP01\depot\flex\ide_builder\com.adobe.flexbuilder.dcrad\serializers\src\com\adobe\serializers\utility\TypeUtility.as:534]
         at com.adobe.serializers.utility::TypeUtility$/convertToStrongType()[C:\perforceGAURAVP01\depot\flex\ide_builder\com.adobe.flexbuilder.dcrad\serializers\src\com\adobe\serializers\utility\TypeUtility.as:497]
         at com.adobe.serializers.utility::TypeUtility$/convertResultHandler()[C:\perforceGAURAVP01\depot\flex\ide_builder\com.adobe.flexbuilder.dcrad\serializers\src\com\adobe\serializers\utility\TypeUtility.as:371]
         at mx.rpc.remoting::Operation/http://www.adobe.com/2006/flex/mx/internal::processResult()[E:\dev\trunk\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:316]
         at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\trunk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:313]
         at mx.rpc::Responder/result()[E:\dev\trunk\frameworks\projects\rpc\src\mx\rpc\Responder.as:56]
         at mx.rpc::AsyncRequest/acknowledge()[E:\dev\trunk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:84]
         at NetConnectionMessageResponder/resultHandler()[E:\dev\trunk\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:547]
         at mx.messaging::MessageResponder/result()[E:\dev\trunk\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:235]
    Somehow SOMETHING wants to convert "10/21/1984 12:00:00 AM" to Date.
    Where does it fail? I feel like I'm SO close, but making a faceplant right before the finish.
    ok.
    I'm by no means an expert, so let me know if I'm doing something wrong, but this is how I'd expect it to work.
    Can someone tell me how I should use a dateField instead? Where should I make the stringToDate and dateToString conversion?

  • Why Hit "No Token Present" error even the USB token has been inserted?

    Hi,
    I am totally new to programming with cryptographic token.
    When i try to login my secure token after inserted it into the USB port, my program throws "No Token Present" error.
    I confirmed that the USB token is inserted properly because i can login the token with the Token Admin app installed on my system.
    I have also installed the Provider successfully dynamically in my code.
    Can anyone give me some idea or solution?
    Thanks very much.
    I program based on JDK 6 update 7 on Windows XP SP2 and the USB Secure Token (ST 2) is from SecureMetrics.
    The error message is as shown as below:
    Please kindly help to take a look at my code.
    Use Provider: SunPKCS11-FeitianPKCS
    Version: 1.600000
    Info: SunPKCS11-FeitianPKCS using library D:\Develop\JavaPKCS11\ST2pkcs11v10.dll
    Services: 0
    {color:#999999}{color:#ff0000}javax.security.auth.login.LoginException: No token{color}{color}{color:#ff0000} present{color}{color:#ff0000}
    {color}at sun.security.pkcs11.SunPKCS11.login(SunPKCS11.java:1044)
    // Main code
    String configName = "D:\\Develop\\JavaPKCS11\\pkcs11.cfg";
    Provider p = new sun.security.pkcs11.SunPKCS11(configName);
    Security.addProvider(p);
    Provider[] ps = Security.getProviders();
    System.out.printf("Total providers %d\n\n", ps.length);
    for (int i=0; i<ps.length;i++) {
    System.out.printf("Provider[%d]: %s\n",i, ps.getName());
    //Create the provider we defined
    Provider p = Security.getProvider("SunPKCS11-FeitianPKCS");
    System.out.printf("\nUse Provider: %s\n", p.getName());
    System.out.printf("Version: %f\n", p.getVersion());
    System.out.printf("Info: %s\n", p.getInfo());
    //List all the services it supports
    System.out.printf("Services: %d\n", p.getServices().size());
    Set ss = p.getServices();
    Iterator ii = ss.iterator();
    Service s;
    while (ii.hasNext()) {
    s = (Service) ii.next();
    System.out.printf("Service: %s - %s - %s \n", s.getType(), s.getAlgorithm(), s.getClassName());
    try {
    MyGuiCallbackHandler mcb = new MyGuiCallbackHandler();
    Subject token = new Subject();
    AuthProvider aprov = (AuthProvider) p;
    //Login the token
    aprov.login(token, mcb);
    Config:
    name = FeitianPKCS#11
    library = D:\Develop\JavaPKCS11\ST2pkcs11v10.dll

    Hi Martin,
    Thanks very much for your kind help and sharing of experience.
    Below is my complete code and also the exceptions that i get.
    Program output + exceptions
    Java PKCS#11 Demo
    Load library success
    Total providers: 10
    Provider[0]: SUN
    Provider[1]: SunRsaSign
    Provider[2]: SunJSSE
    Provider[3]: SunJCE
    Provider[4]: SunJGSS
    Provider[5]: SunSASL
    Provider[6]: XMLDSig
    Provider[7]: SunPCSC
    Provider[8]: SunMSCAPI
    Provider[9]: SunPKCS11-FeitianPKCS
    Use Provider: SunPKCS11-FeitianPKCS
    Version: 1.6
    Info: SunPKCS11-FeitianPKCS using library D:\\Develop\\JavaPKCS11\\ngp11v211.dll
    javax.security.auth.login.LoginException: No token present
        at sun.security.pkcs11.SunPKCS11.login(SunPKCS11.java:1044)
        at javapkcs11.Main.main(Main.java:112)Main.java
    // Main.java
    package javapkcs11;
    import java.security.*;
    import java.security.Provider.*;
    import javax.security.auth.*;
    import java.util.*;
    import java.lang.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    //import sun.misc.*;
    * @author
    public class Main {
        /** Creates a new instance of Main */
        public Main() {     
         * @param args the command line arguments
        public static void main(String[] args) {
            System.out.println("Java PKCS#11 Demo\n\n");
            //Load the configuration file       
            if (Main.configProvider())
                System.out.println("Load library success\n\n");
            else {
                System.out.println("Load library failed\n\n");
                return;
            //List all the providers
            Provider[] ps = Security.getProviders();
            System.out.println("Total providers: " + ps.length);
            for (int i=0; i<ps.length;i++) {
              //  System.out.printf("Provider[%d]: %s\n",i, ps.getName());
    System.out.println("Provider[" + i + "]: " + ps[i].getName());
    //Create the provider we defined
    Provider p = Security.getProvider("SunPKCS11-FeitianPKCS");
    //System.out.printf("\nUse Provider: %s\n", p.getName());
    System.out.println("\nUse Provider: " + p.getName() );
    //System.out.printf("Version: %f\n", p.getVersion());
    System.out.println("Version: " + p.getVersion() );
    //System.out.printf("Info: %s\n", p.getInfo());
    System.out.println("Info: " + p.getInfo() );
    //List all the services it supports
    //System.out.printf("Services: %d\n", p.getServices().size());
    Set ss = p.getServices();
    Iterator ii = ss.iterator();
    Service s;
    while (ii.hasNext()) {
    s = (Service) ii.next();
    // System.out.printf("Service: %s - %s - %s \n", s.getType(), s.getAlgorithm(), s.getClassName());
    System.out.println("Service: " + s.getType() + " " + s.getAlgorithm() + " " + s.getClassName());
    try {
         char pin[] = "99999999".toCharArray();
    MyGuiCallbackHandler mcb = new MyGuiCallbackHandler();
    Subject token = new Subject();
    AuthProvider aprov = (AuthProvider) p;
    //Login the token
    aprov.login(token, mcb);
    } catch (Exception e) {
    e.printStackTrace();
    public static boolean configProvider() {
    //Here defines the path of configuration file, you could change it
    String configName = "D:\\Develop\\JavaPKCS11\\pkcs11.cfg";
    try {
    Provider p = new sun.security.pkcs11.SunPKCS11(configName);
    Security.addProvider(p);
    } catch (Exception e) {
    e.printStackTrace();
    return false;
    return true;
    }PKCS11 Configname = FeitianPKCS
    library = D:\\Develop\\JavaPKCS11\\ngp11v211.dll
    slot = 3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Task Sequence failed to restore captured data from USB drive onto a new machine using UDI task requence

    Hi,
    Environment ConfigMgr 2012 R2
    Replace Scenario: Capture data to a USB external drive and Restore it from USB external drive.
    Steps taken:
    1) Created Computer Association with New computer and Source computer
    2) Deployed UDI replace Task Sequence to Source computer and captured data to a USB external drive
    3) Run UDI Task Sequence from Boot Media to Restore data from USB External drive which had the captured data.
    Issue:
    My task sequence failed to restore data from USB external drive.
    Is there a fix
    Any help is greatly appreciated it. 

    I created a query to see the deployment logs in real time. I see the TS fails when running "Request State Store" task. Here are the logs.
    Severity Type Site code Date / Time System Component Message ID Description
    Error Milestone POK 7/22/2014 4:13:15 PM MININT-P6E4T6G Task Sequence Engine 11141 The task sequence execution engine failed execution of a task sequence. The operating system reported error 1: Incorrect function.
    Error Milestone POK 7/22/2014 4:13:15 PM MININT-P6E4T6G Task Sequence Engine 11135 The task sequence execution engine failed executing the action (Error in the task sequence) in the group (Gather Logs and StateStore on Failure)
    with the error code 1  Action output: [ smsswd.exe ] PackageID = '' BaseVar = '', ContinueOnError='' ProgramName = 'cscript "C:\_SMSTaskSequence\WDPackage\scripts\ztierrormsg.wsf"' SwdAction = '0001' Set command line: Run command line Working dir 'not
    set' Executing command line: Run command line Process completed with exit code 1 Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved.  Microsoft Deployment Toolkit version: 6.2.5019.0 The task sequencer
    log is located at C:\WINDOWS\CCM\Logs\SMSTSLog\SMSTS.LOG.  For task sequence failures, please consult this log. ZTI deployment failed, Return Code = 1 Command line returned 1. The operating system reported error 1: Incorrect function.
    Information Milestone POK 7/22/2014 4:13:14 PM MININT-P6E4T6G Task Sequence Engine 11134 The task sequence execution engine successfully completed the action (Copy Logs) in the group (Gather Logs and StateStore on Failure)
    with exit code 0  Action output: ... 扴捡杫潲湵⹤潬⁧潴尠停䭏偃䍓䵃卐㄰䍜彍潓牵散尤协屄潌獧䍜剏ⵐ䠳䑗塐就瑺獩瑥慢正牧畯摮氮杯潃祰湩⁧㩃坜义佄南䍜䵃䱜杯屳䵓呓䱓杯穜楴慴潴⹯潬⁧潴尠停䭏偃䍓䵃卐㄰䍜彍潓牵散�潌獧䍜剏ⵐ䠳䑗塐就潃祰湩⁧㩃坜义佄南䍜䵃䱜杯屳䵓呓䱓杯作䑓敓畴坰穩牡⹤潬⁧潴尠停䭏偃䍓䵃卐㄰䍜彍潓牵散尤协屄潌獧䍜剏ⵐ䠳䑗塐就协卄瑥灵楗慺摲氮杯潃祰湩⁧㩃坜义佄南停湡桴�潬⁧潴尠停䭏偃䍓䵃卐㄰䍜彍潓牵散尤协屄潌獧䍜剏ⵐ䠳䑗塐就慐瑮敨屲湕瑡整摮䍇潃祰湩⁧潬⁧㩃坜义佄南䍜䵃䱜杯屳䵓呓䱓杯䉜䑄氮杯挠湯整瑮⁳潴尠停䭏偃䍓䵃卐㄰䍜彍潓牵散尤协屄潌�Console
    > Successfully resized the shadow copy storage association Return code from command = 0 Cleaning up default wallpaper registry keys Process completed with exit code 0 zticopylogs processing completed successfully. Command line returned 0.
    Information Milestone POK 7/22/2014 4:13:07 PM MININT-P6E4T6G Task Sequence Engine 11134 The task sequence execution engine successfully completed the action (Move State Store) in the group (Gather Logs and StateStore on Failure)
    with exit code 0  Action output: [ smsswd.exe ] PackageID = '' BaseVar = '', ContinueOnError='' ProgramName = 'cscript.exe "C:\_SMSTaskSequence\WDPackage\scripts\ztimovestatestore.wsf"' SwdAction = '0001' Command line for extension .exe is "%1" %* Set
    command line: Run command lineWorking dir 'not set' Executing command line: Run command line Process completed with exit code 0 Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved.  Microsoft Deployment
    Toolkit version: 6.2.5019.0 The task sequencer log is located at C:\WINDOWS\CCM\Logs\SMSTSLog\SMSTS.LOG.  For task sequence failures, please consult this log. ztimovestatestore processing completed successfully. Command line returned 0.
    Information Milestone POK 7/22/2014 4:13:07 PM MININT-P6E4T6G Task Sequence Engine 11134 The task sequence execution engine successfully completed the action (Gather) in the group (Gather Logs and StateStore on Failure) with
    exit code 0  Action output: ... (BIOS is 'DELL   - 1072009'). Property IsVM is now = False Finished getting virtualization info Connection succeeded to MicrosoftVolumeEncryption There are no encrypted drives Property IsBDE is now = False Processing
    the  phase. Determining theINI file to use. Using COMMAND LINE ARG: Ini file = CustomSettings.ini Finished determining the INI file to use. Added new custom property MYCUSTOMPROPERTY Using from [Settings]: Rule Priority = DEFAULT ------ Processing the
    [DEFAULT] section ------Process completed with exit code 0 ------ Done processing CustomSettings.ini ------ Remapping variables. Property TaskSequenceID is now =  Property DeploymentType is now = NEWCOMPUTER Finished remapping variables. ZTIGather processing
    completed successfully. Command line returned 0 ReleaseSource() for C:\_SMSTaskSequence\Packages\POK0000F. reference count 1 for the source C:\_SMSTaskSequence\Packages\POK0000F before releasing Released the resolved source C:\_SMSTaskSequence\Packages\POK0000F.
    Information Milestone POK 7/22/2014 4:13:03 PM MININT-P6E4T6G Task Sequence Engine 11130 The task sequence execution engine skipped the action (Use Toolkit Package) in the group (Gather Logs and StateStore on Failure) because
    the condition was evaluated to be false.
    Information Milestone POK 7/22/2014 4:13:02 PM MININT-P6E4T6G Task Sequence Engine 11134 The task sequence execution engine successfully completed the action (Set Error Code) in the group (Gather Logs and StateStore on Failure)
    with exit code 0  Action output: Finished with error code 0.
    Information Milestone POK 7/22/2014 4:13:02 PM MININT-P6E4T6G Task Sequence Engine 11124 The task sequence execution engine started the group (Gather Logs and StateStore on Failure).
    Information Milestone POK 7/22/2014 4:13:02 PM MININT-P6E4T6G Task Sequence Engine 11122 The task sequence execution engine skipped the group (Cancelled Wizard Group) because the condition was evaluated to be false.
    Error Milestone POK 7/22/2014 4:13:02 PM MININT-P6E4T6G Task Sequence Engine 11135 The task sequence execution engine failed executing the action (Connect to State Store) in the group (State Restore) with the error code 1 
    Action output: ... ( 0x80070035 ) , trying to connect without username.  The network path was not found.  Unable to connect to
    \\3807000000100000000000:\2fa390ff58558b49c45bf204dfa5717f.  Sleeping for 15 seconds. Unable to connect to share: The network path was notfound. ( 0x80070035 ) , trying to
    connect without username.  The network path was not found.  Unable to connect to
    \\3807000000100000000000:\2fa390ff58558b49c45bf204dfa5717f.  Sleeping for 20 seconds. Unable to connect to share: The network path wasnot found. ( 0x80070035 ) , trying to
    connect without username.  The network path was not found.  Unable to connect to
    \\3807000000100000000000:\2fa390ff58558b49c45bf204dfa5717f.  Sleeping for 25 seconds. Process completed with exit code 1 ERROR - Unable to map a network drive to
    \\3807000000100000000000:\2fa390ff58558b49c45bf204dfa5717f. Unable to connect to 563807000000100000000000:\2fa390ff58558b49c45bf204dfa5717f ZTI ERROR - Non-zero return code by ZTIConnect,
    rc = 1 Command line returned 1. The operating system reported error 1: Incorrect function.
    Warning Milestone POK 7/22/2014 4:11:46 PM MININT-P6E4T6G Task Sequence Engine 11138 The task sequence execution engine ignored execution failure of the action (Request State Store) in the group (State Restore).
    Error Milestone POK 7/22/2014 4:11:46 PM MININT-P6E4T6G Task Sequence Engine 11135 The task sequence execution engine failed executing the action (Request State Store) in the group (State Restore) with the error code 16389 
    Action output: ... etting Media Certificate. Sending request to MP
    http://abcdefg.xyx.xyz.local. Setting message signatures. Setting the authenticator. CLibSMSMessageWinHttpTransport::Send: URL: abcdefg.xyx.xyz.local:80  CCM_POST /ccm_system/requestRequest was successful. migInfoRequestMessage.DoRequest (m_sResponse,true),
    HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\osdsmpclient\smpclient.cpp,1098) pClientRequestToMP->DoRequest(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\osdsmpclient\smpclient.cpp,2778) ExecuteRestoreRequestToMP(migInfoFromMP),
    HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\osdsmpclient\smpclient.cpp,2903) ExecuteRestoreRequest(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\osdsmpclient\main.cpp,84) OSDSMPClient finished: 0x00004005 reply from server
    is 'NoReply' ClientRequestToMP::DoRequest failed (0x80004005). ExecuteRestoreRequestToMP failed (0x80004005). ExecuteRestoreRequest failed (0x80004005).. The operating system reported error 1: Incorrect function.

  • Sign a pdf using usb token

    I am using below code to sign a pdf using itextsharp version 5.5.1.0 . It works fine. But itextsharp 5.5.1.0
    is having AGPL and i think it cannot be used in my application freely. But by using version below 4.1.6 which has GPL licence the same code does not work. So is there any alternative?
    using System;
    using System.Windows.Forms;
    using System.IO;
    using System.Security;
    using System.Security.Cryptography;
    using System.Security.Cryptography.X509Certificates;
    using iTextSharp.text.pdf;
    using iTextSharp.text.pdf.security;
    namespace SignPdf
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private SecureString GetSecurePin(string PinCode)
    SecureString pwd = new SecureString();
    foreach (var c in PinCode.ToCharArray()) pwd.AppendChar(c);
    return pwd;
    private void SignWithThisCert(X509Certificate2 cert)
    string SourcePdfFileName = textBox1.Text;
    string DestPdfFileName = textBox1.Text + "-Signed.pdf";
    Org.BouncyCastle.X509.X509CertificateParser cp = new Org.BouncyCastle.X509.X509CertificateParser();
    Org.BouncyCastle.X509.X509Certificate[] chain = new Org.BouncyCastle.X509.X509Certificate[] { cp.ReadCertificate(cert.RawData) };
    IExternalSignature externalSignature = new X509Certificate2Signature(cert, "SHA-1");
    PdfReader pdfReader = new PdfReader(SourcePdfFileName);
    FileStream signedPdf = new FileStream(DestPdfFileName, FileMode.Create); //the output pdf file
    PdfStamper pdfStamper = PdfStamper.CreateSignature(pdfReader, signedPdf, '\0');
    PdfSignatureAppearance signatureAppearance = pdfStamper.SignatureAppearance;
    //here set signatureAppearance at your will
    signatureAppearance.Reason = "Because I can";
    signatureAppearance.Location = "My location";
    signatureAppearance.SignatureRenderingMode = PdfSignatureAppearance.RenderingMode.DESCRIPTION;
    MakeSignature.SignDetached(signatureAppearance, externalSignature, chain, null, null, null, 0, CryptoStandard.CMS);
    //MakeSignature.SignDetached(signatureAppearance, externalSignature, chain, null, null, null, 0, CryptoStandard.CADES);
    MessageBox.Show("Done");
    private void Form1_Load(object sender, EventArgs e)
    private void button1_Click_1(object sender, EventArgs e)
    //Sign with certificate selection in the windows certificate store
    X509Store store = new X509Store(StoreLocation.CurrentUser);
    store.Open(OpenFlags.ReadOnly);
    X509Certificate2 cert = null;
    //manually chose the certificate in the store
    X509Certificate2Collection sel = X509Certificate2UI.SelectFromCollection(store.Certificates, null, null, X509SelectionFlag.SingleSelection);
    if (sel.Count > 0)
    cert = sel[0];
    else
    MessageBox.Show("Certificate not found");
    return;
    SignWithThisCert(cert);

    hi.
    you may return to the iTextshap version to 5.3.3, it works fine to sign a PDF using external USB token.
    free C#
    Excel  component being evaluated, any other recommendation is appreciated.
    Thanks and Regards.
    But version 5.3.3 is also having AGPL licence, As i said in question
    version below 4.1.6 has GPL licence.

  • How to store data using zen mi

    ok I know there is a function to partition ur hdd to act as hardisk storage.
    if U want to store data is it just plug in it will auto detect a removable storage device in my computer?
    so do on another com ?withour zen explorer install in the com?

    DeviLFisH: The removable disk storage mode partitions part of the disk to act as USB mass storage. On Windows Me/2000/XP you don't need a driver for this, and you just connect the player. As Jason points out, you'll need a driver for Win 98 SE.
    For audio files, if you want to have driverless support you need to use the v2 firmware, which only works with Win XP and WMP0. I suggest you read here in the Zen FAQ at Nomadness.net.

  • Store data in R/3 without page refresh

    Dear BSP-Masterminds,
    we need to store data in R/3 without a recurrent page refresh. The problem is that our engineers are using PDA's and the page refresh is taking too much time. The engineers are changing equipment data on the PDA's. Every time they click on  save button, the data get send to the R/3 system and the checking, if the data are correct, takes up to 30 sec. Additional the new page refresh on PDA takes another 20 sec. It would be great to find a solution which stores the data somewhere and by hitting the 'final save-button' the data get checked and saved.
    The worst case scenario would be a table of around 600 equipment data, so it might be a huge table that has to be stored somewhere. I thought of a client side cookie but I have no experience if it is possible to store such a big internal table and by the way I don't know if this would be possible on a PDA.
    Every little hint is welcome!
    Regards
    Nicola
    P.S.: Please excuse any spelling mistakes )

    Hi,
    Javascript as such can't do it without refreshing the page. You need to use the AJAX function. But you don't need to be scared about it. Just look at the web logs I've mentioned and you'll understand it quickly.
    Here's an additional AJAX tutorial
    http://www.w3schools.com/ajax/default.asp
    Eddy
    PS. Reward the useful answers and you will get <a href="http:///people/baris.buyuktanir2/blog/2007/04/04/point-for-points-reward-yourself">one point</a> yourself!

  • How can I store data in CompactFlash in a PCI 7041?

    Hi.
    I have built an application for RT control in a PCI 7041 that executes the main loop at 5 kHz, so cycle time is 200 us. Now I want to save some data generated during execution. I would like to register timestamp and three values per cycle so I'd have four values every 200 us.
    I think that the best way to do this is to store data in the CompactFlash memory included in PCI 7041 in real time (one "row" per cycle), and then, after RT loop execution (it lasts about 2 seconds), download all data to Host's hard disk.
    How can I do this? How can I access CompactFlash from Labview? Is there a better way to solve my problem?
    Thanks!

    The 7041's CompactFlash is accessible as a drive (C through LabVIEW's file I/O functions. You can open/create/replace files on the 7041, just as you would on the host by calling file I/O functions in your downloaded VI.
    Once the data is on C:, FTP to the 7041 from the host to retrieve your files. You can FTP programmatically in LabVIEW if you have the internet toolkit. If you don't have the internet toolkit, you can use System Exec to run your FTP commands.
    If you prefer not to use FTP, you can transfer the data via TCP, UDP, or Datasocket, but that will require some additional programming.

  • How can i store data in term of a tree structure

    how can i store data in term of a tree structure

    What a tree is the question. If you just want a fast access, ehats about Hashtable or dictionary classes ? The data there is structured in a tree. For a simple binary tree, you can use something like
    class Node {
    Node(Object data){
       Node left;
       Node right;
       Object data = data;
    void insert(Object data, Node parent){
      int test = data.compareTo(parent.data);
      if(test < 0 ){
        if(parent.left == null){
          parent.left = new Node(data);
        else{
          insert(data, parent.left);
      else{
        if(parent.right == null){
          parent.right = new Node(data);
        else{
          insert(data,parent.right);
    }And so build up a binary tree. The traversing methods can be found in almost any good book (pre-order, post-order, in-order), for search you have just to look at greater/smaller and descend in the tree.
    The Object data can be changed to what you want for storage, String, or primitive Numbers, Vectors ...
    Is that what you search for?

  • How to read a data from USB port using JAVA

    hi all,
    i need to know how to read a data from USB port using java. any API are available for java ?.........please give your valuable ideas !!!!!!!!!
    Advance Thanks!!

    You can do this. Please use this link
    [http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=uHu&q=java+read+data+from+usb+port&btnG=Search&meta=&aq=f&oq=]
    What research did you do of your own? Have you done some testing application and tried yourself??

  • How to store data in hashmap so that it can be used by different methods.

    Hello,
    I have an ADF/JSF application and the database is DRM. The program gets data from DRM into this hashmap. Program needs this data frequently. Getting this HashMap is very resource intensive due to a lot of data it has.
    I want to get the data in HashMap once ( I can do this - no problem).  But where/how do I keep it so that different methods can just use this and not make individual trips to DRM? It may be a very basic java question but I seem to be stuck :)
    I am not very concerned about the HashMap part, it can be any collection - the question is of storing it so that it can be used over and over.
    Thanks,

    User,
    If I understand you correctly, you have a JSF application that needs to store data in a HashMap such that it can be accessed over and over? You could put the hashmap into an appropriately-scoped managed bean and access it from there. I'm not sure what a "DRM" is (a digital rights management database, perhaps, in which case it's a "database"), so there is something special about a "DRM" that we need to know, please share.
    John

  • I have an iMac with 2 internal drives and set-up with multiple user accounts.  How do I create a path to store data files on my second drive within an application?

    I have an iMac with 2 internal drives and a multiple user account set-up.  Hw do I create a path to store data files on the second drive within an application?

    This is the Mac mini forum not the iMac forum however...
    Applications written for average users like Photoshop, Word, i.e. GUI based applications provide a 'Save' dialog box which while allow selecting second drives or any drive. The dialob box initially shown might be in the simple mode but you just need to click on the triangle to show the full set of options. You should then see the different drive names amongst other options.
    If your referring to an application your writing yourself then you need to build a pathname. This can be in one of two styles depending on the programming system your using. This could be a POSIX style path or a Mac style path.
    POSIX = /Volumes/volname/foldername
    Mac style = Volname:foldername:

  • I have a Time Capsule with 2tb of storage, and an I-Mac with 500Gb. (which is at capacity) Can I use the Time Capsule to store data in addition to backing up the hard drive?

    I have a Time Capsule with 2tb of storage, and an I-Mac with 500Gb. (which is at capacity) Can I use the Time Capsule to store data from my hard drive that I want to access later in addition to backing up the hard drive?

    Can I use the Time Capsule to store data from my hard drive that I want to access later in addition to backing up the hard drive?
    Yes, but if you move the "original" data on your iMac to the Time Capsule....then the "original" data is now on the Time Capsule disk. 
    When...not if...the Time Capsule disk has a problem, you have no backups for this data.
    Perhaps a much safer plan might be to add an external hard drive attached directly to your iMac. Then, move the data to that drive from the iMac.
    Now, Time Machine will back up both your iMac and the external hard drive so you have "originals" on one drive and backups on another. Would that plan work for you?

  • Store dates in UTC, view in SESSIONTIMEZONE

    Hi,
    I have users in many time zones - each with daylight savings rules - and I want to store dates on the database in UTC/GMT.
    In order to get them displaying in local time in ApEx, I have done the following:
    - Set the SESSIONTIMEZONE in the VPD security section
    - Convert from UTC to SESSIONTIMEZONE in the "Post Calculation Computation" option of the screen item as it is displayed
    - Convert from SESSIONTIMEZONE to UTC in a Calculation when the row is saved back
    I have tried to get this working with the data type TIMESTAMP WITH TIME ZONE. It does the conversion to UTC OK, but the time zone stored on the database is the SESSIONTIMEZONE. I have to stick to the format model associated with the ApEx DatePicker I am using, which does not include a time zone, so I cannot explicitly instruct the Automatic Row Processing which zone to write.
    Surely there is an easier way.
    Should I just abandon the TIMESTAMP WITH TIME ZONE and go with TIMESTAMP or DATE? Then the UTC zone would just be implicit on the database.

    Check out the already existing thread about this: iTunes8 - How to turn off genre and links to shop in the browser?

Maybe you are looking for