Code example for X509Certificate

Methods: getIssuerDN

0
            this.privateKey = privateKey;
        } 
 
        public String chooseClientAlias(String[] arg0, Principal[] arg1,
                                        Socket arg2) {
            return certificate.getIssuerDN().getName();
        } 
 
        public String chooseServerAlias(String arg0, Principal[] arg1,
                                        Socket arg2) {
            return null; 
        } 
 
        public X509Certificate[] getCertificateChain(String arg0) {
            return new X509Certificate[] { certificate };
        } 
 
        public String[] getClientAliases(String arg0, Principal[] arg1) {
            return new String[] { certificate.getIssuerDN().getName() };
        }