Multiple Signers/ JCE Provider

When I try to deploy application with more then one party signed jar, JWS reports problem and rejects application starting. JCE 1.2.1 requires provider's jar to be signed to work. So I need to have two signers: my own signed application jar and JCE provider JAR. This problem is very serious !!!

In your JNLP file resources section, put a line that looks like this in there in place of the references to the JCE jars:
<extension name="Java Cryptography Extension" href="crypto.jnlp"/>
Then, in a file called crypto.jnlp (or whatever), put entries like:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
codebase="http://your.url.goes.here"
href="crypto.jnlp">
<information>
<title>Java Cryptography Extension</title>
<vendor>Sun Microsystems</vendor>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<jar href="jce1_2_1.jar" download="eager"/>
<jar href="sunjce_provider.jar" download="eager"/>
</resources>
<component-desc/>
</jnlp>

Similar Messages

  • AccessControlException with third party JCE provider

    Hi,
    I have a third party cryptographic provider that I must use.
    I can't tell if the provider is failing to load or if actual operations are denied. All I do know is that everytime it tries to actually do anything it fails with (the class that subclasses Provider is called IAIK):
    Caused by: java.security.AccessControlException: access denied (java.security.SecurityPermission putProviderProperty.IAIK)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
    at java.security.AccessController.checkPermission(AccessController.java:401)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
    at java.lang.SecurityManager.checkSecurityAccess(SecurityManager.java:1698)
    at java.security.Provider.check(Provider.java:341)
    at java.security.Provider.put(Provider.java:303)
    at iaik.security.provider.IAIK.a(Unknown Source)
    at iaik.security.provider.IAIK.<init>(Unknown Source)
    It seems to me that the provider is trying to programmatically load and register itself. Obviously I have to grant permission to do this, but I don't know how, because I don't know exactly what its trying to do.
    I did find something in the JDK docs mentioning doing something like this to the server.policy:
    grant codeBase "file:C:/Sun/AppServer7/domains/domain1/server1/lib/*" {
         permission java.security.SecurityPermission "putProviderProperty.IAIK"
    But this not only doesn't work, I also need to understand it.
    I've tried using it as a standard extension and it still doesn't work.
    Would appreciate any pointers here
    Thanks
    Sam

    Hi ,
    I am using SUN ONE application server and I have a third party cryptographic provider that I must use(BouncyCastleProvide). I've modified server.policy, java.policy files but nothing helped.
    // These permissions apply to the RD application
    grant codeBase "file:C:/Sun/AppServer7/domains/domain1/server1/lib/*" {
    permission java.security.AllPermission;
    Please help.
    Thanks
    INFO: CORE3282: stdout: [02/Mar/2005 14:22:08:866] error: |AESEncryption|prepareMap|1|oSecretKey_file: /WEB-INF/config
    /secret_asn1.key
    INFO: CORE3282: stdout: [02/Mar/2005 14:22:08:866] error: |AESEncryption|prepareMap|1|oGenrateKeys: no
    INFO: CORE3282: stdout: [02/Mar/2005 14:22:08:897] error: |AESEncryption|AESEncryption::Constructor|1|java.security.Ac
    cessControlException: access denied (java.security.SecurityPermission putProviderProperty.BC)
    INFO: CORE3282: stdout: at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
    INFO: CORE3282: stdout: at java.security.AccessController.checkPermission(AccessController.java:401)
    INFO: CORE3282: stdout: at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
    INFO: CORE3282: stdout: at java.lang.SecurityManager.checkSecurityAccess(SecurityManager.java:1698)
    INFO: CORE3282: stdout: at java.security.Provider.check(Provider.java:384)
    INFO: CORE3282: stdout: at java.security.Provider.put(Provider.java:339)
    INFO: CORE3282: stdout: at org.bouncycastle.jce.provider.BouncyCastleProvider.<init>(BouncyCastleProvider.java:52)
    INFO: CORE3282: stdout: at com.sp.fwk.golden.encryption.AESEncryption.<init>(AESEncryption.java:48)
    INFO: CORE3282: stdout: at com.sp.fwk.golden.encryption.AESEncryption.getInstance(AESEncryption.java:71)
    INFO: CORE3282: stdout: at com.sp.fwk.golden.presentation.FwkServlet.init(FwkServlet.java:72)
    INFO: CORE3282: stdout: at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    INFO: CORE3282: stdout: at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
    INFO: CORE3282: stdout: at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
    INFO: CORE3282: stdout: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:229)
    INFO: CORE3282: stdout: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    INFO: CORE3282: stdout: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    INFO: CORE3282: stdout: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    INFO: CORE3282: stdout: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    INFO: CORE3282: stdout: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    INFO: CORE3282: stdout: at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    INFO: CORE3282: stdout: at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

  • Use JCE Provider for JSSE

    As far as I know, it is not possible to use a jce provider for the cryptographic operations of the jsse reference implementation. The sun implementation uses the algorithms implemented in the jsse provider.
    There was a statement from sun, that this may change with the integration of jsse in the jdk 1.4, but with the current beta this is not the case.
    Does anybody know a jsse implementation which supports the use of a third party jce provider? Actually we want to use our own smart card based jce provider to provide a jsse compatible java ssl implementation.

    You might want to check out a product called iSaSiLk from iaik http://jcewww.iaik.at.
    I have used this product in the past. Seemed to be quite openly designed.
    iSaSiLk supports the use of third party JCE provider.
    However, they do not claim the product to be compiant with the JSSE standard.

  • Oracle 10g + Bouncy Castle JCE provider

    Hi all,
    I'm trying to deploy Bouncy Castle JCE provider into Oracle environment. I've
    tried several choices but no one works.
    My environment:
    - Oracle 10.2.0.1.0 with Java version 1.4.2_08
    - Java app deployed into Oracle uses $ORACLE_HOME/javavm as $JAVA_HOME
    - I'm using bcprov-jdk14-124.jar.
    I've deployed this library into Oracle (using loadjava), I've tried to copy
    into $JAVA_HOME/lib/ext and edit $JAVA_HOME/lib/security/java.security (added
    line 'security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider'),
    I've tried to copy it into $ORACLE_HOME/jdk/jre/lib/ext and edit appropriate
    java.security file, but nothing works. I'm still getting Exception with 'The
    provider BC may not be signed by a trusted party'.
    Is anyone successfully using bcprov library in Oracle?
    Thanks a lot
    Antonin Faltynek

    Hi,
    See Michael's post in the following thread Re: loadjava sunrsasign.jar
    Kuassi http://db360.blogspot.com

  • Light Weight JCE Provider with RSA implementation

    Hi all,
    I'm working on an applet that requires RSA encryption, but I have size constraints so I canno tuse the BouncyCastle provider (891 KBs)
    Does anyone know where to find a light weight JCE provider with an implementation of RSA, I've been searching for a while but without any luck!
    Thank you in advance

    You can use the lw-apis from BC and drop the JCE part. The JCE for BC is just a facade to the lw-apis anyway. And if you use the lw-apis you don't have to worry about any signing issues with the applet.
    Cheers,
    --- jon

  • Kerberos says JCE provider may not be installed

    I am using the Krb5LoginModule from JDK1.4.2_04 (deployed with BEA Weblogic 8.1) to authenticate against Active Directory. Have been looking at this for an age. Initial issues were due to case sensitive user names (something I didn't expect since because windows login doesn't care).
    Anyway the current issues is as follows:
    Authentication failed:
    JCE provider may not be installed. Cannot find any provider supporting DES/CBC/NoPadding
    javax.security.auth.login.LoginException: JCE provider may not be installed. Cannot find any provider supporting DES/CBC/NoPadding
         at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:585)
         at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:475)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
         at ADLoginTest.main(ADLoginTest.java:45)
    Caused by: KrbException: JCE provider may not be installed. Cannot find any provider supporting DES/CBC/NoPadding
         at sun.security.krb5.internal.crypto.a0.a(DashoA6275:285)
         at sun.security.krb5.internal.crypto.a0.a(DashoA6275:258)
         at sun.security.krb5.internal.crypto.a0.a(DashoA6275:335)
         at sun.security.krb5.EncryptionKey.<init>(DashoA6275:198)
         at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:569)
         ... 12 more
    Caused by: java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/CBC/NoPadding
         at javax.crypto.Cipher.getInstance(DashoA6275)
         at sun.security.krb5.internal.crypto.a0.a(DashoA6275:283)
         ... 16 moreIn the Kerberos configuration file, specified on the command line I have the following authentication mechanism specified:
    [libdefaults]
        default_realm = <removed/>
        default_tkt_enctypes = DES-CBC-MD5 DES-CBC-CRC
        default_tgs_enctypes = DES-CBC-MD5 DES-CBC-CRCThe funny thing is this worked previously, and has only come up today. The following jars are all on the classpath (inside eclipse JRE definition) rt.jar, jce.jar, sunjce_provider.jar and java.security appears to be configured correctly:
    security.provider.1=sun.security.provider.Sun
    security.provider.2=com.sun.net.ssl.internal.ssl.Provider
    security.provider.3=com.sun.rsajca.Provider
    security.provider.4=com.sun.crypto.provider.SunJCE
    security.provider.5=sun.security.jgss.SunProviderAny ideas what could be the problem? I even tried to reboot just in case. Does this seem like an issue with the Java application(client) or on the Active Directory (server)?
    Any help greatly appreciated ...

    This worked for me!! <p>I had the same problem, it was working and I was trying various things (e.g. bouncy castle provider) to try and get RC4-HMAC(NT) encryption to work. And then the DES mode stopped working - I must have switched from the JDK to the JRE at some point. Both the JRE and the JDK have the same list of providers in the security policy file java.security - so why using the JDK works and the JRE doesn't is weird. Hopefully it is just an eclipse thing - I'll have to deploy this stuff to clients with only the JRE one day.
    <p>
    Thanks for that tip!

  • EPass2000 token + Sun PKCS#11 JCE provider

    Hello,
    I am trying to programatically control ePass2000 USB crypto token: http://www.ftsafe.com/products/viewproduct.php?p=epass2k
    Unfortunately, I am having serious problems communicating with
    ePass2000 token from Java. I have found no documentation on doing it
    properly, but I have tried using Sun's PKCS11 JCE interface and
    ep2pk11.dll like this:
    in java.security:
    security.provider.7=sun.security.pkcs11.SunPKCS11
    ${java.home}/lib/security/pkcs11.cfg
    pkcs11.cfg:
    name = epass_token
    library = c:\windows\system32\ep2pk11.dll
    Now using
    keytool -keystore NONE -storetype PKCS11 �list
    or
    keytool -keystore NONE -storetype PKCS11 -storepass 1234 �list
    should show me list of certificates on token. (if this works, that
    means, that JCE API sees the token and can communicate with it). I got only:
    keytool error: java.security.ProviderException: Initialization failed
    What is a proper way of accessing and using ePass2000 from Java?
    Does the error mean, that there's something wrong with the dll? The dll itself
    works from firefox as PKCS#11 provider, so I believe it should work with Java
    too. I am using Java 1.5.0_06.
    If anyone has played with this or similiar token from Java, I'd be glad to hear
    about your experiences. Right now, I can only try to write my own JNI wrapper for
    the native library :(.
    Juraj.

    I've never tried that token, but I'm accessing a smart card using SunPKCS11 ( never with the keytool, but from code)
    The problem could be the backslashes with which you specify the library: try \\ or / instead, so something like
    c:/windows/system32/ep2pk11.dll

  • How to send a document to multiple signers

    In this tutorial, learn how to send an agreement to multiple unique signers who are signing the same agreement.

    Ourdream wrote:
    even if I dont have word it can be sent as word?
    Yes, try Share > Send Via Mail

  • TS3276 I cannot send mail to multiple addresses, my provider is RoadRunner.

    I can send mail individually to the same address.

    Read the threads over in the "More Like This" column over here.----------->
    Have you contacted Roadrunner and Outlook tech support?  If not, why not?

  • Selecting rows across multiple tables (SSCCE provided)

    Greetings,
    I have a program that has 3 tables. When the user selects a row on one table, I want the corresponding rows in the other tables to be selected also. A corresponding row is defined (in this case) as a row whose column 1 value is the same. Column 1, in this case, is a company name, and the tables reference yearly info for those companies. So, if a user selects company #34, I would like it to select company #34 across the other two tables, also.
    I have established list selection listeners for each table that changes the selection for the other two tables.
    This code, however, doesn't work. two things are broken: 1) the cross-selection only works if the selection is moving up the table, but not down the table. 2) the scrrollRectToVisible on the viewport isn't working. What am I doing wrong? Thanks in advance.
    import java.awt.Rectangle;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.ListSelectionModel;
    import javax.swing.event.ListSelectionEvent;
    import javax.swing.event.ListSelectionListener;
    import javax.swing.table.DefaultTableModel;
    * @author Ryan
    public class TableSelection {
        public static void main(String[] args){
            // Init data model data.
            Object[][] data = new Object[100][5];
            for(int i = 0; i < data.length; i++){
                data[0] = "Company # " + i;
    for(int j = 1; j < data[i].length; j++){
    data[i][j] = "" + i + ", " + j;
    // Init headers.
    String[] headers = {"Col 1" , "Col 2", "Col 3", "Col 4", "Col 5"};
    // All 3 data models are the same here, in my app however, they aren't.
    DefaultTableModel model1 = new DefaultTableModel(data, headers);
    DefaultTableModel model2 = new DefaultTableModel(data, headers);
    DefaultTableModel model3 = new DefaultTableModel(data, headers);
    // Init Tables. Tables and ScrollPanes are delcared as final to enable access from within ListSelectionEvent
    // Table 1
    final JTable jTable1 = new JTable(model1);
    jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    final JScrollPane sp1 = new JScrollPane();
    sp1.setViewportView(jTable1);
    // Table 2
    final JTable jTable2 = new JTable(model2);
    jTable2.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    final JScrollPane sp2 = new JScrollPane();
    sp2.setViewportView(jTable2);
    // Table 3
    final JTable jTable3 = new JTable(model3);
    jTable3.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    final JScrollPane sp3 = new JScrollPane();
    sp3.setViewportView(jTable3);
    // Add scrollpanes to panel.
    JPanel panel1 = new JPanel();
    panel1.add(sp1);
    panel1.add(sp2);
    panel1.add(sp3);
    // Add Panel to frame.
    JFrame frame = new JFrame("tableSelection");
    frame.add(panel1);
    frame.pack();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
    // List Selection Listeners
    jTable1.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent e) {
    // Get the first cell in the selected row, I call it "row key".
    String rowKey = jTable1.getValueAt(e.getFirstIndex(), 0).toString();
    for(int i = 0; i < jTable2.getRowCount(); i++){
    if(jTable2.getValueAt(i, 0).equals(rowKey)){
    jTable2.getSelectionModel().setSelectionInterval(i, i);
    Rectangle rect = jTable2.getCellRect(i, 0, true);
    sp2.getViewport().scrollRectToVisible(rect);
    break;
    for(int i = 0; i < jTable3.getRowCount(); i++){
    if(jTable3.getValueAt(i, 0).equals(rowKey)){
    jTable3.getSelectionModel().setSelectionInterval(i, i);
    Rectangle rect = jTable3.getCellRect(i, 0, true);
    sp3.getViewport().scrollRectToVisible(rect);
    break;
    jTable2.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent e) {
    // Get the first cell in the selected row, I call it "row key".
    String rowKey = jTable2.getValueAt(e.getFirstIndex(), 0).toString();
    for(int i = 0; i < jTable1.getRowCount(); i++){
    if(jTable1.getValueAt(i, 0).equals(rowKey)){
    jTable1.getSelectionModel().setSelectionInterval(i, i);
    Rectangle rect = jTable1.getCellRect(i, 0, true);
    sp1.getViewport().scrollRectToVisible(rect);
    break;
    for(int i = 0; i < jTable3.getRowCount(); i++){
    if(jTable3.getValueAt(i, 0).equals(rowKey)){
    jTable3.getSelectionModel().setSelectionInterval(i, i);
    Rectangle rect = jTable3.getCellRect(i, 0, true);
    sp3.getViewport().scrollRectToVisible(rect);
    break;
    jTable3.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent e) {
    // Get the first cell in the selected row, I call it "row key".
    String rowKey = jTable3.getValueAt(e.getFirstIndex(), 0).toString();
    for(int i = 0; i < jTable1.getRowCount(); i++){
    if(jTable1.getValueAt(i, 0).equals(rowKey)){
    jTable1.getSelectionModel().setSelectionInterval(i, i);
    Rectangle rect = jTable1.getCellRect(i, 0, true);
    sp1.getViewport().scrollRectToVisible(rect);
    break;
    for(int i = 0; i < jTable2.getRowCount(); i++){
    if(jTable2.getValueAt(i, 0).equals(rowKey)){
    jTable2.getSelectionModel().setSelectionInterval(i, i);
    Rectangle rect = jTable2.getCellRect(i, 0, true);
    sp2.getViewport().scrollRectToVisible(rect);
    break;

    New code:
    import java.awt.Rectangle;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.ListSelectionModel;
    import javax.swing.event.ListSelectionEvent;
    import javax.swing.event.ListSelectionListener;
    import javax.swing.table.DefaultTableModel;
    * @author Ryan
    public class TableSelection {
        public static void main(String[] args){
            // Init data model data.
            Object[][] data1 = new Object[100][5];
            Object[][] data2 = new Object[50][5];
            Object[][] data3 = new Object[50][5];
            for(int i = 0; i < data1.length; i++){
                data1[0] = "Company # " + (i+1);
    for(int j = 1; j < data1[i].length; j++){
    data1[i][j] = "" + (i+1) + ", " + j;
    for(int i = 0; i < data2.length; i++){
    data2[i][0] = "Company # " + ((i * 2) + 1);
    for(int j = 1; j < data2[i].length; j++){
    data2[i][j] = "" + ((i * 2) + 1) + ", " + j;
    for(int i = 0; i < data3.length; i++){
    data3[i][0] = "Company # " + (i * 2);
    for(int j = 1; j < data3[i].length; j++){
    data3[i][j] = "" + (i * 2) + ", " + j;
    // Init headers.
    String[] headers = {"Col 1" , "Col 2", "Col 3", "Col 4", "Col 5"};
    // All 3 data models are the same here, in my app however, they aren't.
    DefaultTableModel model1 = new DefaultTableModel(data1, headers);
    DefaultTableModel model2 = new DefaultTableModel(data2, headers);
    DefaultTableModel model3 = new DefaultTableModel(data3, headers);
    // Init Tables. Tables and ScrollPanes are delcared as final to enable access from within ListSelectionEvent
    // Table 1
    final JTable jTable1 = new JTable(model1);
    jTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    final JScrollPane sp1 = new JScrollPane();
    sp1.setViewportView(jTable1);
    // Table 2
    final JTable jTable2 = new JTable(model2);
    jTable2.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    final JScrollPane sp2 = new JScrollPane();
    sp2.setViewportView(jTable2);
    // Table 3
    final JTable jTable3 = new JTable(model3);
    jTable3.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    final JScrollPane sp3 = new JScrollPane();
    sp3.setViewportView(jTable3);
    // Add scrollpanes to panel.
    JPanel panel1 = new JPanel();
    panel1.add(sp1);
    panel1.add(sp2);
    panel1.add(sp3);
    // Add Panel to frame.
    JFrame frame = new JFrame("tableSelection");
    frame.add(panel1);
    frame.pack();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
    // List Selection Listeners
    jTable1.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent e) {
    // Get the first cell in the selected row, I call it "row key".
    String rowKey = jTable1.getValueAt(e.getFirstIndex(), 0).toString();
    for(int i = 0; i < jTable2.getRowCount(); i++){
    if(jTable2.getValueAt(i, 0).equals(rowKey)){
    jTable2.getSelectionModel().setSelectionInterval(i, i);
    Rectangle rect = jTable2.getCellRect(i, 0, true);
    sp2.getViewport().scrollRectToVisible(rect);
    break;
    if(i == jTable2.getRowCount() - 1)
    jTable2.clearSelection();
    for(int i = 0; i < jTable3.getRowCount(); i++){
    if(jTable3.getValueAt(i, 0).equals(rowKey)){
    jTable3.getSelectionModel().setSelectionInterval(i, i);
    Rectangle rect = jTable3.getCellRect(i, 0, true);
    sp3.getViewport().scrollRectToVisible(rect);
    break;
    if(i == jTable3.getRowCount() - 1)
    jTable3.clearSelection();
    jTable2.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent e) {
    // Get the first cell in the selected row, I call it "row key".
    String rowKey = jTable2.getValueAt(e.getFirstIndex(), 0).toString();
    for(int i = 0; i < jTable1.getRowCount(); i++){
    if(jTable1.getValueAt(i, 0).equals(rowKey)){
    jTable1.getSelectionModel().setSelectionInterval(i, i);
    Rectangle rect = jTable1.getCellRect(i, 0, true);
    sp1.getViewport().scrollRectToVisible(rect);
    break;
    if(i == jTable1.getRowCount() - 1)
    jTable1.clearSelection();
    for(int i = 0; i < jTable3.getRowCount(); i++){
    if(jTable3.getValueAt(i, 0).equals(rowKey)){
    jTable3.getSelectionModel().setSelectionInterval(i, i);
    Rectangle rect = jTable3.getCellRect(i, 0, true);
    sp3.getViewport().scrollRectToVisible(rect);
    break;
    if(i == jTable3.getRowCount() - 1)
    jTable3.clearSelection();
    jTable3.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent e) {
    // Get the first cell in the selected row, I call it "row key".
    String rowKey = jTable3.getValueAt(e.getFirstIndex(), 0).toString();
    for(int i = 0; i < jTable1.getRowCount(); i++){
    if(jTable1.getValueAt(i, 0).equals(rowKey)){
    jTable1.getSelectionModel().setSelectionInterval(i, i);
    Rectangle rect = jTable1.getCellRect(i, 0, true);
    sp1.getViewport().scrollRectToVisible(rect);
    break;
    if(i == jTable1.getRowCount() - 1)
    jTable1.clearSelection();
    for(int i = 0; i < jTable2.getRowCount(); i++){
    if(jTable2.getValueAt(i, 0).equals(rowKey)){
    jTable2.getSelectionModel().setSelectionInterval(i, i);
    Rectangle rect = jTable2.getCellRect(i, 0, true);
    sp2.getViewport().scrollRectToVisible(rect);
    break;
    if(i == jTable2.getRowCount() - 1)
    jTable2.clearSelection();

  • SunJCE Provider doesn't support RSA for all version of JCE?

    Folks,
    Have browsed through the forum and it seems that the JCE provider bundled with JCE and JDK1.4+ do nothing on RSA. Can I make this conclusion?

    But it seems the SunJCE doesn't provide the RSA (and
    AES, who knows what else is missing) encryption and
    decryption functions. Can anyone list what is missing
    from the SunJCE? Also, from the forum, many have
    pointed to this bounty castle provider. Can any of
    you guys who are familiar with this provider give us
    the procedure of installation? Thanks.I wouldn't use the term 'missing' here. Sun provides some basic cryptographic functions and that all. If you want more, get another provider. Sun will never be able to provide every possible algorithm. That's why they have implemented the external provider option. So no, I cannot list what is missing.
    I can tell you that other providers, for instance BouncyCastle offer much more cryptographic functions. Installation is very easy. Just download the .jar and put it in your <java>\jre\lib\ext directory. After that you can use it in you programs with the following code:
    Provider prov = new org.bouncycastle.jce.provider.BouncyCastleProvider();
    Security.addProvider(prov);You can also install it so that you don't have use this code in every program that uses the provider. How this is accomplished, can be found in the install manual from BouncyCastle.

  • Using JCE with java web start

    We are trying to use bouncy castle provider in an app that is distributed using Java Web Start. We sign the jars for use with jws so that they have unrestricted access. The problem is that bouncy castle provider jar is already signed, and jws does not like a jar signed by multiple signers so we can't re-sign it using our key. If we strip off the provider's signature information from the jars and sign it using our key, the JCE throws an exception as if it could not locate the RSA provider.
    Has anyone faced this problem? Any workarounds that you're aware of?
    Thanks!

    Well, I found this was already asked on the forum. Sorry for not checking that before posting. In case someone is interested, following are some links:
    http://forum.java.sun.com/thread.jsp?forum=38&thread=291494
    http://forum.java.sun.com/thread.jsp?forum=38&thread=237963
    http://forum.java.sun.com/thread.jsp?forum=38&thread=71559

  • XML with multiple signatures

    Hello,
    I am trying to find examples showing how I could implement multiple signatures from multiple signers within a single XML file. I read textual confirmation that this can be done, but I hanen't found an example of implementation so far.
    I would like to follow a "business-document-approval-along-hierarchy"-like process and produce an XML similar to the following:<NewIdea>
      <ApprovalCTO id="CTO">
        <ApprovalProjMngr id="ProjMngr">
          <ProgrammersIdea id="Programmer">...</ProgrammersIdea>
          <Signature id="Programmer">...</Signature>
        </ApprovalProjMngr>
        <Signature id="ProjMngr">...</Signature>
      </ApprovalCTO>
      <Signature id="CTO">...</Signature>
    </NewIdea>1. Is it possible in general to include multiple signatures in a single XML file?
    2. If yes, is the above a correct and suggested approach? Should I use enveloped or enveloping signature instead? Or is this irrelevant?
    3. If no, can this be done using multiple XML files with references of one into the other?
    4. Do you have any pointers to examples and sample code?
    5. I am using Apache XML Security. I guess since it conforms to the W3C XML-DigSig specification it could work for this case, right?
    Sorry for the many questions. Any suggestions are welcome.
    Thanks in advance.

    1 -- yes.
    2 -- There are no 100% correct and suggested approach. You can skin the cat anyway you want to.
    3 -- N/A
    4 -- Sample code to do what? You've already provided an XML file. If you want Parser codes go to w3schools.com. or Google them.
    5 -- no idea. Beyond my scope of little knowledges. :-)

  • Multiple OLE DB connection managers to the same database instance in a SSIS package

    Hi,
    While migrating DTS package to SSIS package, I came across one which had multiple OLE DB connection managers all connecting to the same Oracle schema in the same instance.
    There are that many execute SQL task corresponding to each of these connection managers.
    Each of  these SQL task call different Oracle stored procedures and executes them in the same schema in the same instance.
    My question is, is there any particular reason or advantage in having multiple connection managers?
    Can't we have one single connection manager and use the same in all of these SQL tasks?
    Does multiple connection managers provide any added advantage like parallelism or something?
    In this particular case, there are no actual workflows, rather each of these SQL tasks are stand alones. But there are other packages which has SQL tasks in workflow but still each of them calling separate connection managers all calling the same schema
    in the same instance.
    Thanks for your time.
    Cordially, Biju George

    Well like I said, each of  these SQL task calls "different" Oracle stored procedures even though executes them in the same schema in the same instance. I tried a sample testing by creating two separate packages, one with only one single
    OLE DB connection referred in all of the SQL tasks and in the other one with mutiple OLE DB connections to the same schema in the same instance each of which is referred in each of the SQL task in one to one mapping.
    Now the first one created one session in Oracle but the later created as many sessions as there where OLE DB connection managers. The first one took longer to complete than the second one since second one created independent sessions and executed those procedures
    sort of parallely.
    I guess that can be called an advantage of creating multiple connection managers to the same schema in the same instance.
    Cordially, Biju George

  • Multiple signatures on PDF Form

    I need to solve this last issue so I can put our digital signature initiative to rest.
    I have attached a sample of the kind of form we need to be able to create. The first section of this form is an approval document, the second part is a closure record.
    I need to be able to lock all of the fields above the first set of signature blocks when first digitally signed but not the entire form. I need the second part on page three to be locked when the digital signature is applied.
    Right now any digital signature either locks the entire form (keeping others from signing) or does nothing (allowing anyone to change the content) based on the switch in the signature block object palette Signature tap Lock Fields After Signing checkbox.
    I know I can cut the form in half and create two documents but this does not alleviate the problem of needing the data fields to be locked and multiple signers to be able to do so.
    Any help is greatly appreciated!

    Thank you Srini,
    This is what I did, for anyone else with the same issue:
    Tocreate signature fields in LiveCycle Designer:
    Highlight the field. In the Object pallet Type field, select: Document Signature Field.
    On the Document Signature tab, make sure that Lock Fields After Signing is not checked.
    These fields are a quick way for users to add a digital signature in Adobe Reader.
    This seems to work well. I appreciate the help.
    Just to bring it full circle, how do you delete a document signature field? Haven't found it in the Help.
    Thanks much!
    AR

Maybe you are looking for

  • About how much would it be to be fixed by apple

    my ipod 4th generation is cracked so bad i cant hit the slide to unlock bar anymore it doesnt register my touch hitting that spot about how much would it be to get it fixed because im going to dc in a couple weeks and thats a long ride and i want to

  • Data Source Enhacenment

    Hai Gurus I am having one requirement from the Client. The requirement is In LO - 2LIS_02_ITM when the PSTYP (Item Category In Purchasing Document) = 2 then I should get Net Price from Table EINE. Can anybody help me to write the code to satisfy the

  • Double space issue in word 2010

    Hi, I am currently converting all my word 97 documents to word 2010. I need to mail merge the document. In the development mode of word the double space is present after period (Full stop). After generating the document through application , the doub

  • Cant download ios 7 to ipad mini due to no space

    If you delete apps to allow enough memory to download ios7 on ipad mini can u reinstall them ?

  • Scheduled in Xl Reporter

    When i create a scheduled in Xl reporter, i act on elearning 's advice but it still haven't acted. I received a notice" could not start'.I do not understand. I tested more time. Can you hepl me. Thanks!