Code example for X500Principal

Methods: getEncoded

0
        return null; 
    } 
 
    @Override 
    public byte[] getTBSCertificate() throws CertificateEncodingException { 
        return subjectDN.getEncoded();
    } 
 
    @Override 
    public int getVersion() { 
        return 2; 
    } 
 
    @Override 
    public byte[] getEncoded() throws CertificateEncodingException { 
        return toString().getBytes();
    } 
 
    @Override 
    public PublicKey getPublicKey() {
        return publicKey;