Examples of SubjectName


Examples of jp.go.aist.sot.client.security.SubjectName

            }
            // add ks
            caCerts.setCertificateEntry(alias, cert);
            caCerts.store();

            SubjectName dn = new SubjectName(alias, null);

            if (controller == null) {
                throw new SignOnException(
                        mh.getMessage("system_error",
                        new Object[] { "controller is null"}));
View Full Code Here

Examples of jp.go.aist.sot.client.security.SubjectName

            // add ks
            userCerts.setKeyEntry(alias, pkcs12.getKey(), importPW,
                    pkcs12.getCertificateChain());
            userCerts.store();
            String cn = CertificateNameUtil.getCommonName(cert);
            SubjectName dn = new SubjectName(alias, cn);

            if (controller == null) {
                throw new SignOnException(
                        mh.getMessage("system_error",
                        new Object[] { "controller is null"}));
View Full Code Here

Examples of jp.go.aist.sot.client.security.SubjectName

            if (controller == null) {
                throw new SignOnException(
                        mh.getMessage("system_error",
                        new Object[] { "controller is null"}));
            }
            controller.removeCACert(new SubjectName(aliasName, null));
        } catch (SignOnException e) {
            Log.error(CLASS_NAME, "", e);
            DialogFactory.showErrMsg(getParent(), e.getMessage());
        }
        finally {
View Full Code Here

Examples of jp.go.aist.sot.client.security.SubjectName

            if (controller == null) {
                throw new SignOnException(
                        mh.getMessage("system_error",
                        new Object[] { "controller is null"}));
            }
            controller.removeUserCert(new SubjectName(aliasName, null));
            fireStorageChange();
        } catch (SignOnException e) {
            Log.error(CLASS_NAME, "", e);
            DialogFactory.showErrMsg(getParent(), e.getMessage());
        }
View Full Code Here

Examples of jp.go.aist.sot.client.security.SubjectName

                detailWindow.setOkCommand(new CertDetailOkCmd());
            }
            detailWindow.clear();
            detailWindow.append(
                    storage.getCertificateInfo(
                            new SubjectName((String) alias, null)));
            detailWindow.display();
        } catch (SignOnException e) {
            Log.error(CLASS_NAME, "", e);
            DialogFactory.showErrMsg(getParent(), e.getMessage());
        }
View Full Code Here

Examples of jp.go.aist.sot.client.security.SubjectName

                throw new SignOnException(mh.getMessage("passphrase_null"));
            }
           
            jp.go.aist.sot.client.security.KeyStore ks = null;

            ks = storage.getTrustStore(new SubjectName(null, null),
                    passphrase.toCharArray());
            KeyStore caks = jp.go.aist.sot.client.security.KeyStore.convert(ks);

            if (caks == null || caks.size() == 0) {
                throw new SignOnException(mh.getMessage("check_trustca"));
            }

            KeyStore uks = null;

            try {
                ks = storage.getKeyStore(new SubjectName(cn, null),
                        passphrase.toCharArray());
                uks = jp.go.aist.sot.client.security.KeyStore.convert(ks);
            } catch (jp.go.aist.sot.client.security.KeyStoreException e) {
                throw new SignOnException(e, mh.getMessage("invalid_passphrase"));
            }
View Full Code Here

Examples of jp.go.aist.sot.client.security.SubjectName

    /* cert*/
    public void addCACert(SubjectName name) {
        if (name != null && name.getLongName() != null) {
            caCerts.put(name.getLongName(), name);
            firePropertyChange(SignOnController.CERT_ITEM,
                    new SubjectName(null, null), name);
        }
    }
View Full Code Here

Examples of jp.go.aist.sot.client.security.SubjectName

    public void removeCACert(SubjectName name) {
        if (name != null && name.getLongName() != null) {

            if (caCerts.remove(name.getLongName()) != null) {
                firePropertyChange(SignOnController.CERT_ITEM,
                        new SubjectName(null, null), name);
            }
        }
    }
View Full Code Here

Examples of jp.go.aist.sot.client.security.SubjectName

    public void addUserCert(SubjectName name) {
        if (name != null && name.getLongName() != null) {
            userCerts.put(name.getLongName(), name);
            firePropertyChange(SignOnController.CERT_ITEM,
                    new SubjectName(null, null), name);
        }
    }
View Full Code Here

Examples of jp.go.aist.sot.client.security.SubjectName

    public void removeUserCert(SubjectName name) {
        if (name != null && name.getLongName() != null) {

            if (userCerts.remove(name.getLongName()) != null) {
                firePropertyChange(SignOnController.CERT_ITEM,
                        new SubjectName(null, null), name);
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.