/** * Process the options related to generation of the X509SubjectDN child element of X509Data * based on certificate data. * * @param x509Data the X509Data element being processed. * @param cert the certificate being processed */ protected void processCertX509SubjectName(X509Data x509Data, java.security.cert.X509Certificate cert) { if (options.emitX509SubjectName) { String subjectNameValue = getSubjectName(cert); if (! DatatypeHelper.isEmpty(subjectNameValue)) { x509Data.getX509SubjectNames().add( KeyInfoHelper.buildX509SubjectName(subjectNameValue)); } } }
/** * Process the options related to generation of the X509SubjectDN child element of X509Data * based on certificate data. * * @param x509Data the X509Data element being processed. * @param cert the certificate being processed */ protected void processCertX509SubjectName(X509Data x509Data, java.security.cert.X509Certificate cert) { if (options.emitX509SubjectName) { String subjectNameValue = getSubjectName(cert); if (! DatatypeHelper.isEmpty(subjectNameValue)) { x509Data.getX509SubjectNames().add( KeyInfoHelper.buildX509SubjectName(subjectNameValue)); } } }
/** * Process the options related to generation of KeyName elements based on the certificate's * subject DN value. * * @param keyInfo the KeyInfo element being processed. * @param cert the certificate being processed */ protected void processSubjectDNKeyName(KeyInfo keyInfo, java.security.cert.X509Certificate cert) { if (options.emitSubjectDNAsKeyName) { String subjectNameValue = getSubjectName(cert); if (! DatatypeHelper.isEmpty(subjectNameValue)) { KeyInfoHelper.addKeyName(keyInfo, subjectNameValue); } } }
/** * Process the options related to generation of KeyName elements based on the certificate's * subject DN value. * * @param keyInfo the KeyInfo element being processed. * @param cert the certificate being processed */ protected void processSubjectDNKeyName(KeyInfo keyInfo, java.security.cert.X509Certificate cert) { if (options.emitSubjectDNAsKeyName) { String subjectNameValue = getSubjectName(cert); if (! DatatypeHelper.isEmpty(subjectNameValue)) { KeyInfoHelper.addKeyName(keyInfo, subjectNameValue); } } }