What class we can use instead of "KeyGenerator" ?

Hi all,
I am developing a J2ME application which needs encryption. But the "KeyGenerator" class is available only in J2SE. In J2ME what we can use? Could you please tell me?
key = KeyGenerator.getInstance(algorithm).generateKey();

this link will help you and search for bouncy castle api ...

Similar Messages

  • What classes should I use to send/receive bytes inmediately?

    What classes should I use to send/receive bytes inmediately? I mean, without using any buffers or whatever (I will implement this on my app), just the faster method.
    Is InputStream/OutputStream the lowest level choice?
    Thanks!

    Hi!
    Thank you very much for your help, I appreciate it a lot.
    While I test my server, I execute ping www.myclienthost.com -t (my client games are in other office, in the same building, but different ISP) and I don't see anything strange, so I guess network is working perfectly. However, if I use wireshark (sniffer) and I see that my system fails (server does not send acks so client disconnects) is because my acks messages are not sended for 6 o 7 seconds (it should send them every 2 or 3). It seems thread is blocked. and after 6 or 7 seconds one message with 2 or 3 acks together is sent. So, I see that the thread handler blocked for a few seconds and this is doing my server is failing. Why client handler thread on my server is blocked? One question: every 2 or 3 seconds I have a thread that uses sleep that iterates thru client handlers and takes OutputStream and send one ack message for every client handler. My question is, in client handler class I have a method called SendInfo(String whatever) which encrypts and sends through OutputStream, should I protectd this method from accesing from two threads??? as acks thread and client thread can access at the same time. Could this be the problem??
    EDIT: In my previous post I forgot to say what I found out with wireshark. Here I explain it. Sorry.
    By the way, how can I debug threads?? I would like to know if my client thread is blocked in that critical moment.
    Thanks a lot for your ideas and sorry for my English.
    Edited by: Ricardo_Ruiz_Lopez on Jan 22, 2009 7:38 AM

  • What Classes do you use for developing Database Applications

    Hi ! (sorry for my bad english)
    I develop now an application for production planning and I use an informix database-server. I have no problems with the database an the connection. I,m a database expert, but I,m a newcommer in java. What classes do you use to develop a database application ? (specially Table Handling) I tried it with JTable and AbstractTableModel. Are there better possibilities ?
    JdbTable OR
    JTable with DBTableModel OR
    JTable with DBTableModel and DataSet
    I know that this is a big question, but some little Informations can help me. (I develop with JBuilder Proffessional)
    Thank you for your help.
    Wolfgang

    No - the classes you have described (AbstractTableModel etc) are Swing classes - that is, they are Models in the MVC GUI architecture. Database-related stuff (SQL at any rate) is contained in the packages java.sql and javax.sql - The latter is part of the Enterprise addition. You would also need to purchase a database driver (or use the sun one, which is something like com.sun.odbc.jdbc.Driver or whatever). The driver supplies you with connections to the database (java.sql.Connection).
    Alternatively, you may be deploying code in a J2EE AppServer (eg. WebLogic, WebSphere etc) in which case you can use the JNDI to get a javax.sql.DataSource object (by setting one up in the AppServer and doing a lookup on it) and use this to get database Connections.
      Class c = Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
      SybDriver sybDriver = (SybDriver) c.newInstance();
      java.sql.DriverManager.registerDriver((Driver) sybDriver);
      //then use Driver object to get hold of a Connection
      //or alternatively using DataSources
      InitialContext ctx = new InitialContext();
      DataSource ds = (DataSource) ctx.lookup("jdbc/MyDriver");
      Connection conn = null;
      try{
        Connection conn = ds.getConnection("login", "password");
        Statement stmt = conn.createStatement();
        ResultSet rs = stmt.executeQuery("select * from MY_TABLE");
        while (rs.next()) {
          //columns are enumerated 1...n
          String s = rs.getString(1);
          //or can get by Col Name
          String str = rs.getString("name_col");
      } finally {
        conn.close();
      }Anyway, I hope this helps - you'll probably need to get a book on it (Java Enterprise by O'Reilly is a good one)

  • Why can't I install iTunes on windows RT? Is Microsoft deciding what software I can use?

    Why can't I install iTunes on Windows RT? Is Microsoft deciding what software I can use?

    Welcome to Apple Support Communities
    Theoretically, Microsoft is deciding what apps you can install. In Windows RT, you can only install apps from the Windows Store and they must be ARM-based, things that Apple and iTunes don't meet, so you can't use iTunes in Windows RT

  • I want to Pick Release in 11.5.9 through API , What API I can Used?

    Hi.expert
    I want to Pick Release through API in 11.5.9, What API I can Used?

    You need to apply patch 3438823 which provides the Pick Release Public API to create and release a picking batch and also provides the functionality to allow picking criteria of groups of items based on Item category and category sets and also provision is provided to "exclude/include only" ShipSets/SMCs in a batch.
    Check Note: 435444.1 - WSH_PICKING_BATCHES_PUB Package for Pick Release Public API does not Exist in Release 11.5.9
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=435444.1

  • What is the use of COMMIT in BDC?in what situation we can use it?

    what is the use of COMMIT in BDC?in what situation we can use it?

    Hi sunil,
    Function modules that run in the update task can run synchronously or asynchronously. You determine this by the form of the commit statement you use:
    COMMIT WORK
    This is the standard form, which specifies asynchronous processing. Your program does not wait for the requested functions to finish processing.
    COMMIT WORK AND WAIT
    This form specifies synchronous processing. The commit statement waits for the requested functions to finish processing. Control returns to your program after all high priority (V1) function modules have run successfully.
    The AND WAIT form is convenient for switching old programs to synchronous processing without having to re-write the code. Functionally, using AND WAIT for update-task updates is just the same as dialog-task updates with PERFORM ON COMMIT.
    regards,
    keerthi

  • Does anyone know what programme i can use as iDVD is not on my mac.  I want to make a DVD from a movie created on iMovie? Is Burn any good? and if so, can I get it free?

    Hi does anyone know what programme I can use to create DVD of a movie that I have created on iMovie?  There is no iDVD on my mac.  Is Burn any good? And if so, can I get it for free?
    Thanks.

    There is no iDVD on my mac.
    There is NO alternative.   But iDVD is very easy to get.
    iDVD is on the iLife 11 DISK.  Buy here:
    http://www.amazon.com/Apple-MC623Z-A-iLife-VERSION/dp/B003XKRZES/ref=sr_1_1?ie=U
    Is Burn any good?
    iDVD is vastly superior, especially for movies.

  • Transparent table which i can use instead of this structure :::RMCP2

    Hi Buddies,
    I have to use some fields into this structure
    RMCP2 - I/O Table: Sales and Operations Planning .
    But this is a structure, do we have any transparent table which i can use instead of this structure?
    Regards,
    vijay

    Hi Vijay,
    Plz use SQL trace ( ST05 ) to fetch the corresponding table.
    ( Activate trace, use your txn, deactivate & display trace... )
    Hope this helps,
    Erwan,

  • My business has 100 ipads 3g with no control at the moment - i need to now control the ipads - what apps they can use - and restict certian use on the ipads - whats the best way to do this - it will need to be done remotley.

    my business has 100 ipads 3g with no control at the moment - i need to now control the ipads - what apps they can use - and restict certian use on the ipads - whats the best way to do this - it will need to be done remotley.

    MDM  -- moble device management 
    MDMs
    Airwatch, Meraki, MobileIron, Profile Manager on OS X Server, or Zenprise
    For a comparison see this page:
    http://www.enterpriseios.com/wiki/Comparison_MDM_Providers
    Airwatch
      http://www.air-watch.com/
    Meraki -- A free MDM   [ expect lots of email and phone calls about upgrades ]
      http://www.meraki.com/products/systems-manager/
      https://discussions.apple.com/thread/4067210?tstart=0
      Good howto by Sergio Sosa.
      https://discussions.apple.com/thread/2594001?start=15&tstart=0
    MobileIron
      http://www.mobileiron.com/
    Profile Manager by Apple
    Zenprise
      http://www.zenprise.com/

  • HT5787 i forgot Icloud password and security question what method i can use to reset it is ther any or what i am still using iphone but my icloud is disabled for to many atempts what now how to rest the password

    i forgot Icloud password and security question what method i can use to reset it is ther any or what i am still using iphone but my icloud is disabled for to many atempts what now how to rest the password

    Hi bekimlorini,
    Thanks for visiting Apple Support Communities.
    You may find this article helpful with resetting your security questions:
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    If you're not able to receive email to your rescue email address, you may need to contact iTunes Store Support:
    You'll need to contact iTunes Store support to have your questions and answers reset.
    All the best,
    Jeremy

  • What feature I can use in SQLServer 2014/SQLAzure to Horizontal scaling in case a single machine cannot handle the load

    Hi all,
    I need advise for 
    What feature I can use in SQLServer 2014/SQLAzure to Horizontal scaling  in case a single machine cannot handle the load.
    Please some body suggest.
    I know some features :
    1.AlwaysOn
    2.Peer to Peer replication
    Thanks in advance.

    Hello,
    Windows Azure SQL database is not on-premise SQL Server 2014.
    SQL database not support Always on Availability Group and Replication. Scaling out in Azure SQL Database requires sharding, which horizontally partitions data across multiple databases. You should design custom sharding solutions by using application
    code across multiple databases.
    If you use Azure virtual machines (VMs) with SQL Server 2014, you can configure Alwayson Availability Groups. Please refer to the following article:High Availability and Disaster Recovery
    for SQL Server in Azure Virtual Machines
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • What package I can use to processing the image

    Hi, all:
    I am not familiar with image processing, does anybody can tell me how to filter or smooth a gif image and what pachage I can use with Java language.
    Thanks!
    zhu

    Write it to a BufferedImage and use the necessary filter to manipulate it.

  • TS1307 I am using mail for emails. It receives fine but it will not send. I am using an o2 account (smtp.o2.co.uk). Is o2 incompatible with mail? if so can you tell me which email application I can use instead? Many thanks Steve

    I am using mail for emails. It receives fine but it will not send. I am using an o2 account (smtp.o2.co.uk). Is o2 incompatible with mail? if so can you tell me which email application I can use instead? Many thanks Steve

    Whilst it may not be your fault I am afraid it appears that your post is on a forum which is not the best for your OS. It will save the time of the unpaid volunteers here, and may resolve your issue faster, if you could examine the list below and see if there is a more appropriate forum to which you could direct your question.
    OS X 10.9 Mavericks
    OS X 10.8 Mountain Lion
    OS X 10.7 Lion
    OS X 10.6 Snow Leopard
    OS X 10.5 Leopard
    OS X 10.4 Tiger
    OS X 10.3 and earlier
    OS 9, OS 8 & System 7
    OS X Technologies
    OS X Server
    iPad
    iPhone
    iPod
    Other

  • I want to download movie. What apps I can use?

    i want to download movie. What apps I can use?

    It depends what you are trying to download. If you are talking about a video from a site such as Youtube, there are numerous ways of doing this, such as www.keepvid.com. However, if you are trying to download an actual movie that is copyrighted, this is very illegal and cannot be discussed on these forums.

  • What  cable i can use for Thunderbolt port?

    what  cable i can use for Thunderbolt port?

    You can use a mini displayport cable as long as it is connected to a mini displayport peripheral.
    You can use a thunderbolt cable as long as it is connected to a thunderbolt peripheral.
    There are now thunderbolt cables available in the Apple store.

Maybe you are looking for

  • Satellite L10-232: Black screen after the lid closing.

    hello I've moved my notebook (satellite L10-232) to another room, it wasn't shutdown (just closed it). When I opened it there was nothing on the screen and the accu isn't empty (processor is still doing some things). Does anyone know how I can solve

  • Possible to call a transaction from a planning book using a macro button?

    Hi All, Is it somehow possible to call a transaction using a macro button in the planning book? Also, the current selection should be passed as input parameters to the transaction. In my example, I am trying to run the transaction /SAPAPO/MC90 - Rele

  • ATOM Feed parsing in Flex

    I need to parse an Atom Feed and display it into a Flex UI. As part of UI I am providing navigation links such as: Next Page, Previous Page, First Page and Last Page. The Feed looks like this: <feed xmlns="http://www.w3.org/2005/Atom">   <title>Alert

  • Request for a Hand Select Tool, We Want Panning!!

    Seriously, Adobe, please just do it!! A sincere request from an Adobe Digital Editions user.

  • Market Reference Salary not shown under Compensation Information

    Hi,        The Market reference salary under Enterprise Data under Compensation Information in MSS has always been shown as 0, even though we have given values for the particular user with the details like MOLGA, SLTYP, SLREG, SLGRP and have updated