fapifta commented on code in PR #4317: URL: https://github.com/apache/ozone/pull/4317#discussion_r1119008121
########## hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/security/x509/certificate/utils/CertificateSignRequest.java: ########## @@ -94,10 +98,47 @@ private CertificateSignRequest(String subject, String scmID, String clusterID, this.extensions = extensions; } + public static String getDistinguishedNameFormat() { + return DISTINGUISHED_NAME_FORMAT; + } + + public static X500Name getDistinguishedName(String subject, String scmID, + String clusterID) { + return new X500Name(String.format(getDistinguishedNameFormat(), subject, + scmID, clusterID)); + } + + // TODO: move the PKCS10CSRValidator class Review Comment: I just removed this one, I haven't noticed it has been moving with the method, but the mentioned class does not exist anymore if it has existed ever... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org