How to view the certificate that a component has been signed with?

Hi all,
Been using java webstart deployment for a while so understand how to sign and deploy java applications.
Question I have is how to view the certificate that was used to Sign a jar. For example, if I signed a jar "myComponent.jar" how can I then view the certificate details within this jar. I currently have an old component which I signed with an old certificate and want to view the experation details.
Thanks in advance
Simon
Edited by: simon_seagroatt on Sep 22, 2009 4:20 AM

You can use command (it will show CN, OU, O, L, etc... and expiration date, of course):
jarsigner -certs -verify -verbose pathToYourJar.jarI'd suggest redirecting output (>>out.txt).
Bye.

Similar Messages

  • How can I count  time that a computer has been connectted with the internet

    I want to count the time which a computer has been connectted with the internet?
    I had already tried several times,
    one is socket,
    second is Runtime.exec("ping -n 1"+ip)
    I don't think they are better;
    do you have another idea?

    The internet is a conceptual entity not a physical entity so you are never connected to it.
    As a conceptual entity the internet is represented by a cloud of computing devices (computers, gateways, routers, etc.)
    Your computer connects to a another computer by being routed through various devices and then finally connecting to that remote computer.
    Depending on various thing you can measure the time that you can connect to other devices by either pinging a common IP in the internet (such as yahoo.com) or by pinging the router that that represents the entry point for your cloud (such as the router/gateway of your ISP.)
    If you are concerned about a particular connection, such a specific remote computer, then using a socket and sending a 'keep-alive' message and recieving the response is the best way to track that.

  • Verify that this class has been marked with the @Entity annotation

    Hi,
    We have a App level shared lib which does all the JPA related query for an app. And each app can utilize the share lib to get the JPA related query to be done.
    For scoping the JPA between App . We have created EMF for each app.
    When one app run and does any JPA related action it works fine , but when we try to run second app we are seeing the following error when trying to do JPA specific action .
    the @Entity annotation.
    [2012-05-23T04:08:16.839-07:00] [WC_Spaces] [ERROR] [] [oracle.webcenter.spaces] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [ecid: 5825b814-2931-4ad5-8dc3-3e18f66992b7-00000004,0] [APP: webcenterCustom] [[
    java.lang.IllegalArgumentException: Unknown entity bean class: class oracle.webcenter.spaces.internal.repository.WcSpaceHeader, please verify that this class has been marked with the @Entity annotation.
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:648)
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:532)
    at oracle.webcenter.spaces.internal.repository.SpaceRepositoryUtils.refreshSpaceRows(SpaceRepositoryUtils.java:1791)
    Where WcSpaceHeader is an Entity.
    For creating emf per App this is the code
    private static EntityManagerFactory getEntityManagerFactory()
    String appName=Utility.getApplicationName();
    EntityManagerFactory emf=sEntityMgrFactory.get(appName);
    if(emf==null)
    emf=Persistence.createEntityManagerFactory("SpacesReposPUnit");
    sEntityMgrFactory.put(appName,emf);
    SpacesConstants.LOGGER.info("Caching" +
    "EMF for " +appName);  
    return emf;
    My persistence.xml
    <?xml version="1.0" encoding="US-ASCII" ?>
    <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
    <persistence-unit name="SpacesReposPUnit" transaction-type="RESOURCE_LOCAL">
    <provider>
    org.eclipse.persistence.jpa.PersistenceProvider
    </provider>
    <class>oracle.webcenter.spaces.internal.repository.WcSpaceHeader</class>
    <class>oracle.webcenter.spaces.internal.repository.WcSpaceUsrDetail</class>
    <class>oracle.webcenter.framework.service.jpa.WcCommonXlationEntity</class>
    <class>oracle.webcenter.spaces.internal.repository.WCNavigationActivity</class>
    <properties>
    <property name="eclipselink.session.customizer"
    value="oracle.webcenter.spaces.internal.repository.SpacesEclipselinkSessionCustomizer"/>
    </properties>
    </persistence-unit>
    </persistence>
    One more problem i am seeing in this is that . When i create an EM from EMF (which is diff for diff app) and doing some query i am getting a class cast Exception.
    (self-tuning)'] [ecid: 5825b814-2931-4ad5-8dc3-3e18f66992b7-00000004,0] [APP: webcenterCustom] [[
    java.lang.IllegalArgumentException: Unknown entity bean class: class oracle.webcenter.spaces.internal.repository.WcSpaceHeader, please verify that this class has been marked with the @Entity annotation.
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:648)
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:532)

    This is a class loader issue, somehow you have deployed the same classes in two places, so have two different versions of the classes.
    How, exactly have you deployed things, where are your domain classes?
    The issues is most likely that,
    Persistence.createEntityManagerFactory("SpacesReposPUnit");
    will always return the same factory once it has been deployed.
    If you pass a properties map to createEntityManagerFactory and set the property "eclipselink.session-name" to a unique value, then you should get a new factory.

  • How to check the last time a package has been compiled?

    How to check the last time a package has been compiled from sqlplus?

    LAST_DDL_TIME column in DBA_OBJECTS.

  • How to retrieve the value of last identity has been updated in a database?

    how to retrieve the value of last identity has been updated in a database

    Hi,
    Oracle 10g, FGA - Fine grained auditing, supports DML statements (9i only select).
    Set up FGA using the DBMS_FGA.ADD_POLICY procudure:
    sql> BEGIN
    DBMS_FGA.ADD_POLICY (
    policy_name => 'AUD_EMPLOYEE_SAL',
    object_schema => 'HR',
    object_name => 'EMPLOYEE',
    audit_column => SALARY',
    audit_condition => '',
    statement_type => 'UPDATE');
    END;
    NEXT:
    sql> SELECT dbuid, lsqltesxt FROM sys.fga_logs$;
    The database inserts the audit record into the FGA_LOG$ table using an autonomous transaction; even if you roll back the update statement, the update action will still be logged in this table. The fga_log$ tracks the session, machine id, timestamp, schema, scn, etc:
    SQL> desc fga_log$
    Name Null? Type
    SESSIONID NOT NULL NUMBER
    TIMESTAMP# DATE
    DBUID VARCHAR2(30)
    OSUID VARCHAR2(255)
    OSHST VARCHAR2(128)
    CLIENTID VARCHAR2(64)
    EXTID VARCHAR2(4000)
    OBJ$SCHEMA VARCHAR2(30)
    OBJ$NAME VARCHAR2(128)
    POLICYNAME VARCHAR2(30)
    SCN NUMBER
    SQLTEXT VARCHAR2(4000)
    LSQLTEXT CLOB
    SQLBIND VARCHAR2(4000)
    COMMENT$TEXT VARCHAR2(4000)
    PLHOL LONG
    STMT_TYPE NUMBER
    NTIMESTAMP# TIMESTAMP(6)
    PROXY$SID NUMBER
    USER$GUID VARCHAR2(32)
    INSTANCE# NUMBER
    PROCESS# VARCHAR2(16)
    XID RAW(8)
    AUDITID VARCHAR2(64)
    STATEMENT NUMBER
    ENTRYID NUMBER
    DBID NUMBER
    LSQLBIND CLOB
    SQL> spool off

  • HT4910 Hi, i have an iPad4 and for the last two days it has been stuck with the iCloud Backup pop up.  I cant click on OK or turn it off.  It has been connected to a wifi network and left locked and plugged in all day. Any one got any ideas please?

    Hi, i have an iPad4 and for the last two days it has been stuck with the iCloud Backup pop up.  I cant click on OK or turn it off.  It has been connected to a wifi network and left locked and plugged in all day. Any one got any ideas please?

    Reset it by holding the power and home buttons at the same time until you see the Apple logo, then release.

  • How does one show full message headers in Mail 8.1? The previous 'complete header' option has been replaced with a time consuming 'custom' choice.

    How does one show full message headers in Mail 8.1?
    he previous 'complete header' option has been replaced with a time consuming 'custom' choice.

    Customize your toolbar in Mail and add the All Headers button:

  • How do I see the group that my contact has been assigned  to when I view the individual contact card?

    I have added my contacts to specifics groups via icloud. I want to be able to see the group my contact belongs to when I bring a contact up (either on my iphone or on icloud).  How can I get the "Group"  the contact has been assigned to to show on their contact?

    what do you mean by game-state
    PS: i asked this question and they told me to be more specific.

  • How do i save the fact that a button has been clicked.

    So im creating a game in which I collect objects that represent money.After I die in the game i get into the Shop Class in which i can buy different items depending on the money i have. So lets say that after dying i have enough money to get item1 and item2. So i Click on button1 (representing item1) andbutton2 (representing item2) (when clicked their alpha gets to 0.5) and start the game again.Ok so now i have 1 life more and i get more money.But suddenly out of nowhere i feel something strange deep in me, something that i have never felt before -> HUNGER,
    I shut down the PC and run as fast as possible to the nearest shop.
    //lets say item1 is : +1life and item2 is : get more money from objects
    After I had satisfied my primal needs I feel the strong urge to play that awesome game of mine again. But when i start the game I start to see some strange things: It seems that I havent got one life moreand neither do i get more money and just to be sure that Im not hallucinating (or that i didnt rememer the lifes i had last time) I die on purpose so the Shop menu shows. So now what I see is making me sad -> button1 and button2 are active and have an alpha of 1( and that means that the game thinks that they were never bought/clicked, that i have never played this game before in my life) So i go crazy (cause all that play before was for nothing and i have to start all over again).
    After i calm down, I decide to change my life. 1st BIG change is adding some code into the game. To be more specific: a method that will save the items that i bougth, so when i close the game and start again the things i see will bring joy to my life - >: I still have the items that i bougth last time.
    So long story short:
    how do i make that when i click a button (it changes its alpha to 0.5)and close the FLA , whenever i open the same FLA, the button that i clicked before will be shown as clicked now(it alpha will be 0.5)
    I know it has to be with sharedObject and yet i dont know how
    currently i have this:
                            private var savedData:SharedObject = SharedObject.getLocal("sharedStorage12");
                        private var buttonInfoArr:Array = [];
                        private var numberOfSavedObjects:int = 0;
                        private var brokenBtnArray:Array = [];
                        public function Main()
                                   for (var i:int = 0; i < 4; i++)
                                            var myImage_mc:MovieClip = new MovieClip();
                                            myImage_mc.graphics.beginFill( 0xFFFFFF * Math.random() );
                                            myImage_mc.graphics.drawRect(0,0,100,100);
                                            myImage_mc.graphics.endFill();
                                            myImage_mc.x = 50 + i * (myImage_mc.width + 10);
                                            myImage_mc.y = 100;
                                            myImage_mc.name = "myImage_mc" + i;
                                            this.addChild(myImage_mc);
                                            myImage_mc.mouseEnabled = true;
                                            myImage_mc.buttonMode = true;
                                            myImage_mc.addEventListener(MouseEvent.CLICK, onClick);
                        private function onClick(ev:MouseEvent):void
                                  var thisButton:MovieClip = ev.currentTarget as MovieClip;
                                  trace(thisButton.name);
                                  thisButton.alpha = 0.5;
                                  thisButton.buttonMode = false;
                                  thisButton.removeEventListener(MouseEvent.CLICK, onClick);
                                  buttonInfoArr.push( thisButton.name );
                                  savedData.data.myArray = buttonInfoArr;
    How do i use that savedData or how would you do it?
    PS: can it be done without Dictionary class, cause i still havent grasp my mind over it.

    what do you mean by game-state
    PS: i asked this question and they told me to be more specific.

  • I am trying to generate an array of 30 random numbers. after every 5 readings a new vi should open and tell the user that 5 readings has been completed. and again carry on with the generation of array.

    since i do not have a transducer now, i am currently generating an array of 30 random numbers. after every 5 readings a warning should be given to the user that 5 readngs are complete. this cycle should repeat. the array size is 30.
    please help me out,  waiting for reply asap.
    once i have the transducer, i will be taking 30 analog samples and then after every 5 smaples that wraning will be displaye din a new VI
    Solved!
    Go to Solution.

    Use a while loop with a time delay representing your sampling period.
    Use the count terminal to check if equals 4, so 4th iteration=5th sample.
    Use a case structure. The true case will only be executed on the 4th iteration.
    In the true case place a subVI  with your desired message in the front panel. Go to the VI properties window and set "open front panel when called".
    The closing condition of the warnign is not giving in your description.
    Consider that rather than usign a subvi for this, you could use the "One/Two/Three button dialog" or "display message" vis at the "dialog and user interface" pallete.
    Please give it a try and send your own VI. Do not expect us to provide a working solution.
    Regards,

  • How to view the certificate used in PDF protection ?

    Hi,
    I have a document in my company that is certificate-protected with no printing permission, and I need to know wich certificate was used to protect the document, so we can take action and contact with him.
    It seems the document is protected with another "read-only" certificate wich allows me to open it, but I can´t find an option in Acrobat for getting this info.
    Is there a way to do this?

    You can use command (it will show CN, OU, O, L, etc... and expiration date, of course):
    jarsigner -certs -verify -verbose pathToYourJar.jarI'd suggest redirecting output (>>out.txt).
    Bye.

  • How to save the data that a user has written in a table (front panel) by using a "press button"?

    Hi,
    I have the following situation. I need to be able to save the data I write in a table (front panel) when desired.
    This allows me to modify, add new data, etc in the "Table" when wanted and to SAVE the latest information when wanted.
    I need to save all the table data by using ONLY one button.
    Thanks for the help!
    Kind regards,
    Amaloa S.

    Hi,
    Thanks for the feedback. :-)
    Your answered helped.
    In this case I need to save the Data into an ARRAY.
    Now I have the following issue. I will try to explain:
    Suppose that I have following:
    1. Several GROUPS of Data like this:
        ER-1234
        ER-3245
        ER-4786
        ER-9080
    2. Each GROUP has the following ELEMENTS:
        A, Bi, Pb, Sn, Sn, Cr, Ni, Ca, ...., Al
       So it would be like
        ER-1234: A, Bi, Pb, Sn, Sn, Cr, Ni, Ca, ...., Al
        ER-3245: A, Bi, Pb, Sn, Sn, Cr, Ni, Ca, ...., Al
        ER-4786: A, Bi, Pb, Sn, Sn, Cr, Ni, Ca, ...., Al
        ER-9080: A, Bi, Pb, Sn, Sn, Cr, Ni, Ca, ...., Al
     3. An each ELEMENT has DATA that I need to save, BUT! that I need to be able to get by specifying the group and the element.
        A:
             2,3   2,4    2, 8,   2,8 
             2,2   2,3    2, 7,   2,6
             2,1   2,6    2, 6,   2,7 
             2,5   2,4    2, 5,   2,3
    How can I save the ELEMENT "A" Data with the label of the GROUP and the ELEMENT so that I can recongnize it when I need to get the DATA again?
    Thanks for the help!
    Best regards,
    Amaloa.

  • I want to know how to enable the links that are sent in an email, with each upgrade of Firefox it gets harder and harder to do so. What is the trick to this?

    With each upgrade of Firefox, I have a harder and harder time, getting to the links provided in my emails. Some times I am able to trick the link into working, if I continue to to try every link in the email, but most of the time, I just have to give up. I know that I need to change something, maybe in the settings, but I don't know what.
    Please help me. I am considering just going back to Internet Explorer.

    This did not solve my problem. I can sometimes click on a link (word) provided in an email, that leads to a site, but it does not list the website address!! It works sometimes, providing me with a chance to enable links for this address or enable link (I think basically for just that one time).

  • My iPod touch has been disabled and I can't figure out how to unlock the devise, My iPod touch has been disabled and I can't figure out how to unlock the devise

    I don't want to erase any of the info and pictures saved

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: How to back up     
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If you previously synced to the computer then you may be able to recovery use of the iPod without erasing the iPod by following the instructions here:
    Disabled Recovery-must use syncing computer.
    Photos
    - If they are in an iPod backup then restore from that backup. See the restore topic of:
    iOS: How to back up
    - If you used PhotoStream then try getting them from your PhotoStream. See that topic of:
    iOS: Importing personal photos and videos from iOS devices to your computer
    - Maybe from the restore iPod via How to perform iPad recovery for photos, videos
    Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official     

  • How to hide the option in dropdown,which has been selected in the previous

    I have 4 dropdowns,in which i am populating the city names.For ex: Delhi,Mumbai,Bangalore.
    Suppose if i select Delhi in first dropdown,it should not displayed in rest of 3 drop downs.How i have to solve this in jsp.
    Thanks

    here is a better code
    public class dropdownex extends javax.swing.JFrame {
    String[] list = { "Item 1", "Item 2", "Item 3", "Item 4"};
    String[] master = { "Item 1", "Item 2", "Item 3", "Item 4"};
        /** Creates new form dropdownex */
        public dropdownex() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">                         
        private void initComponents() {
            jComboBox1 = new javax.swing.JComboBox();
            jComboBox2 = new javax.swing.JComboBox();
            jComboBox3 = new javax.swing.JComboBox();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            getContentPane().setLayout(new java.awt.GridLayout());
            jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
            jComboBox1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jComboBox1ActionPerformed(evt);
            getContentPane().add(jComboBox1);
            jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
            jComboBox2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jComboBox2ActionPerformed(evt);
            getContentPane().add(jComboBox2);
            jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
            getContentPane().add(jComboBox3);
            pack();
        }// </editor-fold>                       
        private void jComboBox2ActionPerformed(java.awt.event.ActionEvent evt) {                                          
            // TODO add your handling code here:
            list[jComboBox2.getSelectedIndex()]=null;
            jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(list));
        private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {                                          
            // TODO add your handling code here:
            list[0] = master[0];
            list[1] = master[1];
            list[2] = master[2];
            list[3] = master[3];
            list[jComboBox1.getSelectedIndex()]=null;
            jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(list));
            jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(list));
        * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new dropdownex().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.JComboBox jComboBox1;
        private javax.swing.JComboBox jComboBox2;
        private javax.swing.JComboBox jComboBox3;
        // End of variables declaration                  
    }

Maybe you are looking for