How to Use the Same Library?

I have two users on my Mac, myself and my girlfriend. I would like to just use one library iphoto instead of switching to her desktop and back to mine. How do i let my photo library accessable to both of us no matter what user name we are under.

Hi TSchafer,
Here are all the sharing links and the different ways you can do it.
SHARING IPHOTO LIBRARIES
Sharing libraries between users on the same local network
You can also share a library on the same machine between users the same way.
Sharing libraries between users on the same machine...
-both users must have sharing enabled in their iPhoto Preferences
-both users must be logged in and have iPhoto running
-Remember that you can only view the other library. You can't edit the photos or play the saved slideshows or view the made books or burn them to CD or DVD. The books and slideshows will show up as an album. You can play that album as an "on the fly" slideshow. You can drag images from the sharing library to your library in the source column to import them to your library. You can then edit, add to albums, books, slideshow, etc.
Sharing links from Apple....
Sharing your photos between computers
About shared photos
Turning off photo sharing
Looking for shared photos
SHARING ONE IPHOTO LIBRARY BETWEEN USERS ON SAME MACHINE
You can try one of these three methods:
1- Use iPhoto Library Manager-the paid version
The documentation page will give instructions on how it is done.
2- Sharing one iPhoto library between several users on one machine
3- Share an iPhoto Library in tiger Using ACL's
4- I have also read about ShareAlike
There is no other info on the site about how it works.
I strongly urge anyone wanting to try any of the methods for sharing one iPhoto Library folder among more than one user to backup all iPhoto Library folders before attemptin anything.
Lori

Similar Messages

  • How To Use The Same Library - MacBook Pro's And Windows XP Pro?

    Background:  I have a fully configured MacBook Pro running OS X 10.8.3. Also, I run Windows XP Pro SP3 using Parallels Desktop. My primary iTunes Library and all content is stored on an external hard disk and the iTunes is "pointed" to that location by setting the iTunes' Preferences' Advanced Settings to the full path where the Library is located. Everything I have inside iTunes works perfect - the size if the Library is over 225GB!
    BUT, when I install and use iTunes on my Windows XP Pro operating system (under Parallels), the contents of the Library SEEMS to work okay (while I'm in Windows) but the Windows' iTunes Library location in Preferences' Advance Tab is NOT THE SAME LOCATION AS IS THE MAC's LIBRARY LOCATION! It is not at the same location as my main/primary iTunes Library is "pointed to".
    The problem occurs when I close Windows and return to the Mac OS X and then try to use my primary iTunes. All of the contents (and any content) within iTunes no longer work! When I attempt to play ANY song, movie, TV show, music video, audiobook, etc., a message pops up saying in effect "Location of 'x' can't be found, do you want to locate it?" I can then click 'yes' and navigate to the Library file that contains the song's file and it will then play fine, as it should. BUT, ONLY THAT SINGLE SONG WILL WORK - THE REMAINING 225GB STILL DON'T WORK!!!
    So, I am forced to go into iTunes' Preferences' Advanced tab and click on "Change Location" then navigate to the proper library file (NOTE, THE LOCATION HAD BEEN CHANGED TO THE LOCATION FOR THE WINDOWS' LIBRARY LOCATION!!!)! Doing this corrects the primary iTunes functionality, but only after being forced to deleting the "iTunes Media Folder", quit iTunes, restart iTunes and Consolidate the Library - a whole bunch of steps and time to get back to "normal"!!!!!
    Again, this all happens by going into Windows, opening its iTunes, then THAT triggers the entire scenario I've described above - EVERY TIME!
    Thus, I avoid iTunes when I go into Windows, but I should NOT have to avoid using iTunes inside Windows! I hope I have described the problem/issues well enough that someone of you experts can provide a practical solution for me.
    A potential remedy I've thought of is:  Go into Windows' iTunes then go into its Preferences' Advance tab and change ITS location to be the exact same location as the primary Mac OS X's, click OK, then immediately close that iTunes.
              DOES THIS SOUND LIKE IT WILL WORK - I.e., USING THE EXACT SAME LIBRARY LOCATION FOR BOTH iTUNES?????
              IF THIS WOULD WORK, WHAT ELSE MUST I DO TO EITHER iTUNES OR TO BOTH iTUNES TO USE BOTH iTUNES
              USING THE SAME LIBRARY???
    Thank you for any suggested solutions - VERY MUCH!
    Larry

    Note that sharing a folder between different OS that use different file paths is not recommended as some files can have an absolute path or other OS specific data.
    You can click the Choose Folder button if you want to create or use a folder in a different location.<br />
    Make sure to select an empty folder (you need to create this folder in advance) and not a folder that already has files as Firefox will use the specified location in this case.
    *http://kb.mozillazine.org/Profile_Manager
    You can also create a new profile via the command line.
    *https://developer.mozilla.org/Command_Line_Options
    You can consider to use Sync to sync the two profiles

  • How can I sync my iphone in a new computer using the same library

    Is there any mean of syncing my iphone with a new computer using the same library?

    Restore your iTunes library backup to your new computer... http://support.apple.com/kb/ht1751

  • How to use the same POWL query for multiple users

    Hello,
    I have defined a POWL query which executes properly. But if I map the same POWL query to 2 portal users and the 2 portal users try to access the same page simultaneously then it gives an error message to one of the users that
    "Query 'ABC' is already open in another session."
    where 'ABC' is the query name.
    Can you please tell me how to use the same POWL query for multiple users ?
    A fast reply would be highly appreciated.
    Thanks and Regards,
    Sandhya

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

  • How to Use the same iview for both KM End User and the KM Administrator

    Hi friends,
    *This is my scenario :* How to Use the same iview for both KM End User and the KM Administrator but with different Context
    Menu Options.
    i followed these steps but im getting same context menu for both KM End User and the KM Administrator .
    Assign the role Content Administrator to the user km_admin. This is needed so that km_admin can change
    the presentation settings for the KM Folder u201EReports_kmFolder‟.
    Now, login with user km_admin. Navigate to the Km Folder reports_kmFolder through Content Administration
    -> Km Content. Click on Details link of the folder reports_kmFolder.
    Go To Settings -> Presentation. Click on the tab u201ESettings for You‟-> Click on button u201ESelect Profile‟.
    Select the radio button corresponding to u201Elayout Set‟, and choose u201EConsumerExplorer‟ from the dropdown.
    Click u201EOK‟.
    Select both the check boxes corresponding to Items Affected as shown above, and click u201ESave‟
    Now, remove the u201ESuper Administrator‟ role from the user km_admin and login with this user.
    How rto resolve this????
    Regards,
    Prasad.

    Hello Prasad,
    Most likely the user km_admin still has system principal roles assigned, even though you removed the Super Admin role, you should check that this user doesn't have any other admin roles, otherwise it will be considered a System Principal user and will therefore still have access to all content. For more information see http://help.sap.com/saphelp_nw70/helpdata/en/19/56f28fbd4e11d5993b00508b6b8b11/frameset.htm
    Try creating a new user with just read access to the content and you should see that it will not be able to make any changes etc.
    Regards,
    Lorcan.

  • How to use the same OC4j server with different port number

    How to use the same OC4j server with different port numbers..?
    I have to OC4J installed on my machine on different hard disk drives....
    I want to be able to run both the server simultaneously..?
    is it possible ..it yes then how..?
    for that i have changed the port number of one server...
    but when i am trying to start the other server with different port number..it says that JVM -Bind already...
    Is there any clues...?
    Nilesh G

    In the config directory:
    default-web-site.xml: Change the port the HTTP listener listens on
    jms.xml: Change the port the JMS service listens on
    rmi.xml: Change the port the ORMI listener listens on.
    Or, you can add another web-site.xml file, and deploy your applications to 1 server, and bind the web applications to the different web sites. This way you only have to deploy your applications to 1 place.
    Rob
    Oracle

  • How to use the same services-config for the local and remote servers.

    My flex project works fine using the below but when I upload my flash file to the server I doesn't work, all the relative paths and files are the same execpt the remote one is a linux server.
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service id="amfphp-flashremoting-service"
                class="flex.messaging.services.RemotingService"
                messageTypes="flex.messaging.messages.RemotingMessage">
                <destination id="amfphp">
                    <channels>
                        <channel ref="my-amfphp"/>
                    </channels>
                    <properties>
                        <source>*</source>
                    </properties>
                </destination>
            </service>
        </services>
        <channels>
        <channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>
        </channels>
    </services-config>
    I think the problem  is the line
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
    but I'm not sure how to use the same services-config for the local and remote servers.

    paul.williams wrote:
    You are confusing "served from a web-server" with "compiled on a web-server". Served from a web-server means you are downloading a file from the web-server, it does not necessarily mean that the files has been generated / compiled on the server.
    The server.name and server.port tokens are replaced at runtime (ie. on the client when the swf has been downloaded and is running) not compile time (ie. while mxmlc / ant / wet-tier compiler is running). You do not need to compile on the server to take advantage of this.
    Hi Paul,
    In Flex, there is feature that lets developer to put all service-config.xml file configuration information into swf file. with
    -services=path/to/services-config.xml
    IF
    services-config.xml
    have tokens in it and user have not specified additional
    -context-root
    and this swf file is not served from web-app-server (like tomcat for example) than it will not work,
    Flash player have no possible way to replace token values of service-config.xml file durring runtime if that service-config.xml file have been baked into swf file during compilation,
    for example during development you can launch your swf file from your browser with file// protocol and still be able to access blazeDS services if
    -services=path/to/services-config.xml
    have been specified durring compilation.
    I dont know any better way to exmplain this, but in summary there is two places that you can tell swf  about service confogiration,
    1) pass -services=path/to/services-config.xml  parameter to compiler this way you tell swf file up front about all that good stuff,
    or 2) you put that file on the webserver( in this case, yes you should have replacement tokens in that file) and they will be repaced at runtime .

  • How to use the same email address for outgoing email on two iPads?

    How to use the same email address for outgoing email on two iPads?.   My wife and I both use the same email address.  We receive the same incoming email on both iPads but are unable to send email from my wife's iPad.  She is using an iPad 2 and is usng IOS 6.0.1

    Hi Creaturekeeper,
    If you've added the account into the iPad and you are unable to send email from it, then please follow the troubleshooting in the article below.
    Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
    Take care,
    Alex H.

  • Using the same library with multiple computers over a network Use Aperture

    Hi Everyone. I am researching some cataloguing/editing programs to recommend one to my boss, and I was wondering if it was possible to use the same library between multiple computers on a network. Does anyone know if this is possible? This may be what makes or breaks the decision on whether or not to go with Aperture as we need a program that can access a large database of photos on multiple computers.
    Thank you.

    Welcome to the forum.
    You can do it, but...
    It's not supported by Apple.
    Performance won't be great unless you're running a really fast network.
    If more than one person tries to access the Library at one time you're likely to end up with a corrupted database, and there's no code in Aperture to limit access to one person at a time.
    The Library must be stored on an HFS+ volume - don't even try putting it on a FAT32-formatted drive.
    If you want 'proper' multi-concurrent-user network-enabled cataloguing software you're looking into a whole different level of investment than the low price of Aperture - think more in terms of thousands or even tens of thousands of dollars.
    Ian

  • Can several members of a household use the same library with different log ins

    Once you have downloaded the latest version of iTunes to a computer, can different members of the same family use the same library but with different log ins or do you need different computers?

    exactly:) you first gotta transfer the apps from your devices by connecting them and going to file and "transfer purchases" and it should bring the apps over
    PS: do make sure that the computer is authorized for all of the purchases do this
    -go to store at the very top of the page (usually up there with file,edit,view,and controls)
    -choose authorize this computer
    -enter the email address and password associated with the purchases you are transferring and hit authorize!!
    -quick transfer and done, you guys can share whatver you transfer to the library
    hope this helps:)

  • Using the same library for multiple iTunes IDs

    My wife and I have the same exact library. When she buys something, my computer/ipod/devices are authorized to use it. We both got new laptops and we wanted to refrain from adding too much on them. I have an iMac with the music library on it. I signed up for iTunes match so that I could have my library on my devices and our Apple TV. So the question is, how can I get the same library on her devices, without uploading this library to her laptop?
    Can I simply log out of iTunes on the iMac and then log in as her and sign up for iTunes Match under her ID and go through the process again and all is done?
    We'd like to maintain the separate IDs as she purchases apps on her own and then has a lot of podcast subscriptions that I don't. But again, just trying to get the shared library to her device.
    Any help would be appreciated.
    Thanks.

    No, there is no way to do this at this time, and if you make a mistake trying, you can screw yourself up and end up locking yourself out of Match.
    Apple makes a subtle and extremely annoying distinction between "authorization" and "association".  You need "authorization" to play content on a particular computer, and several users with different Apple IDs can authorize their content on a single computer.
    However, to do any of the following:
    -auto-download content
    -download previously purchased content
    -use Match!
    you must "associate" the computer to an Apple ID in addition to "authorizing" it. Only *a single AppleID* may be associated with a computer (not account, computer!) at a time, and this can only be changed once every 90 days. In other words, in this context, it treats the computer just like a mobile device. You can't run Match with more than one user, and Match also precludes anyone else from downloading previously purchased content.
    I recently learned about this the hard way when my son came home from college and used his Apple account to re-download a single TV show on my computer.  When I logged in later to try to use Match, a splash informed me I would have to wait *90 days* to switch back to my AppleID!  Luckily, I emailed the iTunes store and they were able to reset it.  I'm not sure if they have single incident forgiveness policy, if they were able to see exactly how much money I've put in their pockets over the  last couple years, or if they were simply smart enough to realize that *not* doing so could only lose them money in the future.
    Add to this the fact that you now "associate" (with a different definition) your AppleID with your *user account* to use cloud services, and you have three different and inconsistent ways your AppleID is used on a computer.
    Hopefully, Apple will clean all of this up at some point.

  • Aperture and iPhoto should use the same library

    Hi all,
    It seems that there is a lot of conversation about moving photos between Aperture and iPhoto. For example, some like iPhotos slideshow better but still require Apertures adjustment options. Still others have tried, to no avail, to use Aperture as iPhoto's external editor.
    Personally, I have a large iPhoto library with most photos tagged with keywords. I have just started using Aperture and am yet to decide if its extra features are useful for a novice photographer like myself. Other than the price, I see no reason not to use Aperture instead of iPhoto but I would want to import my entire iPhoto library into Aperture.
    My question, however, is why we need to 'import' from one app to the other. Without understanding how the aperture / iphoto databases work, I would assume there is no fundamental reason why Aperture could not simply open an existing iPhoto library and visa versa. They both support RAW, keywords, books etc. And while I am sure there are some deviations in the databases, surely each app could simply ignore the features it does not understand.
    Is this something that anyone else has considered or think would be good. I would imagine that the easier it is for customers to upgrade from iPhoto to Aperture the better. Does Apple plan on supporting this in the future or is the import option 'good enough'.
    Cheers

    Can I and if so how do I best set up Aperture as main app. (master) with iPhoto as sub app that accesses the same library to sort through, look at, order books, etc.
    Simply set the Preferences to 'Share Previews with iLife Applications' in Aperture. Then go to iPhoto -> File -> Show Aperture Library. A media browser will open and you can drag the pics from the Browser to the iPhoto Window. Note: You're getting the Aperture Previews not Masters. Note too that if you set iPhoto to Referenced mode (iPhoto -> Preferences -> Advanced) then you won't use double the disk space.
    +Remember though, you are not accessing the Aperture Library. If you make changes in the Aperture Library (Re-edit the shots) after bringing pics to iPhoto, those changes are not reflected in iPhoto.+
    This is what William means when he says the iPhoto does not access the Aperture Library.
    Regards
    TD

  • How to use the same keypair for both encrypt/decryprt-SunPKCS#11

    Dear All,
    Subject: To access iKey 2032 token, to retrieve public/private key from iKey 2032 token using pkcs#11 in sdk1.5, to encrypt/decrypt files.
    When I separate the encrypt and decrypt part of java program, encryption program works well, whereas decryption program does not decrypt anything in the decrypt file (But there is no error). I printed out the public and private key in both encrypt and decrypt part of java program, its displayed differently::
    Encrypt program:
    SunPKCS11-rainbow_token RSA public key, 1024 bits (id 10, session object)
    modulus: 114338469922835728259534620463489934081917342509275191892563243582065
    74380495029336519036972702864998634664269499641616889325482699399559620370181624
    72068116957594402738459932902481604823224406859575930392708524033619120886256353
    58738237376491107769961041015109436347533548940674900728805627968145581222172729
    public exponent: 65537
    SunPKCS11-rainbow_token RSA private key, 1024 bits (id 11, session object, sensi
    tive, unextractable)
    Decrypt Program::
    SunPKCS11-rainbow_token RSA public key, 1024 bits (id 12, session object)
    modulus: 138556361758970660122782926386849783732271581948935425587968692317930
    09262429353977097956605140384961825974398004270547046620971835394362397699233738
    54481804748731546655197744692886754946373745924825650876065903334173666990347814
    83727290962956934521650035029131176614982652900659797194703065074407857754883163
    public exponent: 65537
    SunPKCS11-rainbow_token RSA private key, 1024 bits (id 13, session object, sensi
    tive, unextractable)
    I suspect that every time program generates different set of key, therefore we need to store the generated key during encryption part (i believe it is to be in the keystore) and to use the same for decryption part. Could you please give me a tips how to do this?
    Encrypt Program ::
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    import java.sql.*;
    import java.text.*;
    import java.math.*;
    import java.security.*;
    import java.security.cert.*;
    import java.security.interfaces.*;
    import javax.crypto.interfaces.*;
    import javax.net.ssl.*;
    import javax.crypto.*;
    import javax.crypto.spec.DESKeySpec;
    import java.security.KeyStore.*;
    * A class of Encrypt.
    public class Encrypt
    public Encrypt(){}
    public void loginToken() {
         Provider p = new sun.security.pkcs11.SunPKCS11(MQConfig.getvalue("SecurityPropertyPath"));
         Security.addProvider(p);
         KeyStore ks = null;
         try{
              String password = General.ReadFiles(MQConfig.getvalue("logFilePath"),"Simple");
              password = password.trim();
              char pin[] = password.toCharArray();
              ks = KeyStore.getInstance("pkcs11");
              ks.load(null,pin);
         KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA",p);
              KeyPair kp = kpg.genKeyPair();
              kpg.initialize(1024, new java.security.SecureRandom());
              FileInputStream in = new FileInputStream("C:\\ReportDBBE.properties");
              FileOutputStream out = new FileOutputStream("C:\\ReportDBAE.properties");
              Cipher cp=Cipher.getInstance("RSA/ECB/PKCS1Padding", p);
              cp.init(cp.ENCRYPT_MODE,kp.getPublic());
              CipherOutputStream cout=new CipherOutputStream(out,cp);
              byte[] input=new byte[8];
              int byteread=in.read(input);
              while(byteread!=-1){
                   cout.write(input,0,byteread);
                   byteread=in.read(input);
              cout.flush();
              in.close();
              cout.close();
         catch(NoSuchAlgorithmException nsae)
         System.out.println("No Such Algorithm Exception " + nsae.getMessage());
         catch(NoSuchPaddingException nspe)
         System.out.println("No Such Padding Exception " + nspe.getMessage());
         catch(InvalidKeyException ike)
         System.out.println("Invalid Key Exception " + ike.getMessage());
         catch(IllegalStateException ise)
         System.out.println("Illegal State Exception " + ise.getMessage());
         catch(KeyStoreException kse)
         System.out.println("Key Store Exception " + kse.getMessage());
         catch(CertificateException ce)
         System.out.println("Certificate Exception " + ce.getMessage());
         catch(IOException ioe)
         System.out.println("IO Exception " + ioe.getMessage());
    public static void main (String args[]) throws Exception {
         try{
         Encrypt tl = new Encrypt();
         tl.loginToken();
         }catch(Exception e){
         e.printStackTrace();
    Decrypt Program ::
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    import java.sql.*;
    import java.text.*;
    import java.math.*;
    import java.security.*;
    import java.security.cert.*;
    import java.security.interfaces.*;
    import javax.crypto.interfaces.*;
    import javax.net.ssl.*;
    import javax.crypto.*;
    import javax.crypto.spec.DESKeySpec;
    import java.security.KeyStore.*;
    * A class of Decrypt.
    public class Decrypt
    public Decrypt(){}
    public void loginToken() {
         Provider p = new sun.security.pkcs11.SunPKCS11(MQConfig.getvalue("SecurityPropertyPath"));
         Security.addProvider(p);
         KeyStore ks = null;
         try{
              String password = General.ReadFiles(MQConfig.getvalue("logFilePath"),"Simple");
              password = password.trim();
              char pin[] = password.toCharArray();
              ks = KeyStore.getInstance("pkcs11");
              ks.load(null,pin);
         KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA",p);
              KeyPair kp = kpg.genKeyPair();
              kpg.initialize(1024, new java.security.SecureRandom());
              FileInputStream in1 = new FileInputStream("C:\\ReportDBAE.properties");
              FileOutputStream out1 = new FileOutputStream("C:\\ReportDBAD.properties");
              Cipher cipher=Cipher.getInstance("RSA/ECB/PKCS1Padding", p);
              AlgorithmParameters algParams = cipher.getParameters();
              cipher.init(Cipher.DECRYPT_MODE,kp.getPrivate(),algParams);
              CipherInputStream cin1=new CipherInputStream(in1,cipher);
              byte[] input1=new byte[8];
              int byteread1=cin1.read(input1);
              while(byteread1!=-1){
                   out1.write(input1,0,byteread1);
                   byteread1=cin1.read(input1);
              out1.flush();
              in1.close();
              out1.close();
              cin1.close();
         catch(NoSuchAlgorithmException nsae)
         System.out.println("No Such Algorithm Exception " + nsae.getMessage());
         catch(NoSuchPaddingException nspe)
         System.out.println("No Such Padding Exception " + nspe.getMessage());
         catch(InvalidKeyException ike)
         System.out.println("Invalid Key Exception " + ike.getMessage());
         catch(IllegalStateException ise)
         System.out.println("Illegal State Exception " + ise.getMessage());
         catch(InvalidAlgorithmParameterException iape)
         System.out.println("Invalid Algorithm ParameterException " + iape.getMessage());
         catch(KeyStoreException kse)
         System.out.println("Key Store Exception " + kse.getMessage());
         catch(CertificateException ce)
         System.out.println("Certificate Exception " + ce.getMessage());
         catch(IOException ioe)
         System.out.println("IO Exception " + ioe.getMessage());
    public static void main (String args[]) throws Exception {
         try{
         Decrypt tl = new Decrypt();
         tl.loginToken();
         }catch(Exception e){
         e.printStackTrace();
    Configuration file::
    name = rainbow_token
    library = c:\winnt\system32\dkck201.dll
    attributes(*,CKO_PRIVATE_KEY,*) = {
    CKA_SIGN = true
    attributes(*,CKO_PRIVATE_KEY,CKK_DH) = {
    CKA_SIGN = null
    attributes(*,CKO_PRIVATE_KEY,CKK_RSA) = {
    CKA_DECRYPT = true
    }

    Hi all,
    Now i manage to use the same keypair for both encrypt/decryprt-SunPKCS#11. Below is my code woks well. In my code i hard coded alias name of certificate, did anyone knows how to read alias name of certificate from iKey token 2032??
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    import java.sql.*;
    import java.text.*;
    import java.math.*;
    import java.security.*;
    import java.security.cert.*;
    import java.security.interfaces.*;
    import javax.crypto.interfaces.*;
    import javax.net.ssl.*;
    import javax.crypto.*;
    import javax.crypto.spec.DESKeySpec;
    import java.security.KeyStore.*;
    * A class of Encrypt.
    public class Encrypt
    public Encrypt(){}
    public void loginToken() {
         Provider p = new sun.security.pkcs11.SunPKCS11(MQConfig.getvalue("SecurityPropertyPath"));
         String myAlias = "349eefd1-845b-4ba4-9f88-06e9f5cb82f6";
         /** to view alias name
         keytool -list -v -keystore NONE -storetype PKCS11 -storepass PASSWORD
         Security.addProvider(p);
         KeyStore ks = null;
         PrivateKey privKey = null;
         PublicKey pubKey = null;
         try{
              String password = General.ReadFiles(MQConfig.getvalue("logFilePath"),"Simple");
              password = password.trim();
              char pin[] = password.toCharArray();
              ks = KeyStore.getInstance("pkcs11");
              ks.load(null,pin);
              java.security.cert.Certificate cert = ks.getCertificate(myAlias);
              Key key = ks.getKey(myAlias, pin);
              if(key != null) {
                   System.out.println("key class: " + key.getClass().getName()); // -> sun.security.pkcs11.P11Key$P11PrivateKey
                   System.out.println("key bytes: " + key.getEncoded()); // -> null!!!!!!!
         if(PrivateKey.class.isInstance(key)) {
         privKey = (PrivateKey)key;
         System.out.println("algo: " + privKey.getAlgorithm()); // -> RSA
         //Signature rsasig = Signature.getInstance("SHA1withRSA");
         //rsasig.initSign(privKey);
         //rsasig.update(data.getBytes());
         //byte[] sigBytes = rsasig.sign();
         pubKey = cert.getPublicKey();
         //System.out.println("signed bytes: " +sigBytes);
         //return sigBytes;
         //KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA",p);
              //KeyPair kp = kpg.genKeyPair();
              //KeyPair kp = kpg.generateKeyPair();
              //kpg.initialize(1024, new java.security.SecureRandom());
              FileInputStream in = new FileInputStream("C:\\ReportDBBE.properties");
              FileOutputStream out = new FileOutputStream("C:\\ReportDBAE.properties");
              Cipher cp=Cipher.getInstance("RSA/ECB/PKCS1Padding", p);
    //cp.init(cp.ENCRYPT_MODE,kp.getPublic());
              cp.init(cp.ENCRYPT_MODE,pubKey);
              CipherOutputStream cout=new CipherOutputStream(out,cp);
              byte[] input=new byte[8];
              int byteread=in.read(input);
              while(byteread!=-1){
                   cout.write(input,0,byteread);
                   byteread=in.read(input);
              cout.flush();
              in.close();
              cout.close();
         catch(NoSuchAlgorithmException nsae)
         System.out.println("No Such Algorithm Exception " + nsae.getMessage());
         catch(NoSuchPaddingException nspe)
         System.out.println("No Such Padding Exception " + nspe.getMessage());
         catch(InvalidKeyException ike)
         System.out.println("Invalid Key Exception " + ike.getMessage());
         ike.printStackTrace();
         catch(IllegalStateException ise)
         System.out.println("Illegal State Exception " + ise.getMessage());
         catch(KeyStoreException kse)
         System.out.println("Key Store Exception " + kse.getMessage());
         catch(CertificateException ce)
         System.out.println("Certificate Exception " + ce.getMessage());
         catch(IOException ioe)
         System.out.println("IO Exception " + ioe.getMessage());
         catch(UnrecoverableKeyException unrke)
         System.out.println("Unrecoverable Key Exception " + unrke.getMessage());
    public static void main (String args[]) throws Exception {
         try{
         Encrypt tl = new Encrypt();
         tl.loginToken();
         }catch(Exception e){
         e.printStackTrace();
    Your help is very much appreciated!!!!

  • Just set up iTunes for windows but when I try to sync my iPhone to this it says I have another iTunes library on my power book. It than asks if I want to erase this iPhone and sync with this iTunes library. I used the same  library on the windows is blank

    Just set up iTunes for windows but when I try to sync my iPhone to it this is what it says, I have another iTunes library on my power book. It than asks if I want to erase this iPhone and sync with this iTunes library. I used the same password on this windows pc system same log on etc..I don't have anything loaded on it. All I want is for the info that's on the power book in iTunes and my iPhone to snyc/update etc on the windows pc.  How do I do this? My power book is dead to the world. 

    Read here.
    https://discussions.apple.com/message/18565125#18565125

  • Missing files using the same library on two different macs and other minor problems

    Hi everybody,
    I'm working on a long documentary and I'm new to FCPX (coming from Avid NC and Edius)...I have and external HD where I stored all the media I'm working with (about 1/2T - 1000 clips)...The library (about 100gb) is stored on the internal drive of my iMac and into the iCloud.
    Yesterday, I received my new MacBook and today I tried to work on it. I followed this steps: I downloaded from iCloud the same library I was working with, I put it on the same folder (movies) it was stored on my iMac and I connected my external HD with all the media...Results? All the clips where gone and the red missing file warning was all over the place.
    FIRST QUESTION: How can I work on both computer overcoming this missing files problem? I know I should have put the library on the same external drive but It was a move aiming to
    SUB QUESTION 1:
    I went back to my iMac and everything worked fine except for a warning about one of my events (the exclamation point) as you can see from this pic:
    I tried to relink the file...but no files to be linked popped up in the relink file window....HOW CAN I KNOW what's wrong in that event in order to fix it?
    SUB QUESTION 2:
    I checked the Library info and - as you can see in the pic below - there are 43mb of media in my internal HD...is this maybe the problem preventing me from working on different macs? I tried to consolidate everything to the external HD but still the 43mb thing persist in being on the internal HD. How can I find where exactly it is located? How can I move it to the external HD given that the consolidate option isn't working?
    Thank you in advance for your help
    Nico

    1) Don't know why this is happening. It may have something to do with
    I downloaded from iCloud the same library I was working with
    I'm not clear what procedure you're using here. Using a cloud for storage might change some file tags. Generally users I think keep the library on the same drive as the media, keeping the library backups on the system. There is no real benefit in keeping the media in a separate location. Often users will keep the library in the same folder as the media. It makes backing up using tools like Carbon Copy Cloner very efficient.
    1a) This can be difficult to find as there sometimes is no obvious indicator. It might be a missing element in a compound clip, a missing or altered layer in a graphics file, a missing font, a missing effect. These will show up inside the item involved, but may not be apparent in the browser. A missing transition for instance will not be seen until you skim over the project or try to export it.
    2) The 43 MB is a small amount of optimized media. This never prevents relinking. The library is always looking for original media, or proxy media if you're in proxy playback. It never looks for optimized media. If it has it, it uses it, if it doesn't, it uses the original media. If you are using original/optimized playback, you must have the original files. The optimized files are not enough.

Maybe you are looking for

  • Error in Current Date in XSLT Mapping

    Hi Experts,   I am having a problem in Dispaying the current Date and Time ( or System Date and Time ) .As per my Project Requirements I need do XSLT mapping My XSLT Mapping Looks like <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/X

  • FORMAUTH Filter in orion-web.xml ignored

    I am trying to use a JAAS Custom Login Module with a customized logon.jsp (and Struts). So I defined a FORMAUTH Filter in orion-web.xml to intercept the logon. However, Oracle 10g 10.1.3.2 did not deploy it. Why? How can I fix this problem? =========

  • How to handle Event when a radio button in selection screen is clicked

    Hi all,    What is the Event generated when a radio button is clicked in the selection Screen. My requirement is .If one radio button is clicked a field in selection screen should be greyed.    Here I used AT SELECTION-SCREEN OUTPUT. but this event i

  • Application deploying problem JDevelopeStudio Edition Version 11.1.1.2.0

    Hi we are using JDeveloperStudio Edition Version 11.1.1.2.0 and facing strange problem on few machines,when we are trying to run the application we are getting error as follows: [11:00:11 AM] #### Deployment incomplete. #### [11:00:11 AM] null #### C

  • Syntax error in standard include RKEB090F in ECC6

    Hi, I have one issue with this include program RKEB090F. This program is being used in one of the custom program while checking this program we are getting syntax error field P_USEDB is unknown. When I compared 4.7 and ECC 6 version, the code contain