tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private String extractValidCertificateName(String policy) {
        String[] certificatePolicies = policy.split("_", -1);
        if (certificatePolicies.length >= 3) {
            String[] policyName = Arrays.copyOfRange(certificatePolicies, 2, certificatePolicies.length);
            return String.join("_", policyName);
        }
        return null;
    }
/**
     * To extract valid certificate name from policy.
     * @param policy
     * @return
     */
To extract valid certificate name from policy.
@param policy
@return
To extract valid certificate name from policy . @param policy @return
private String extractValidCertificateName(String policy) {
        String[] certificatePolicies = policy.split("_", -1);
        if (certificatePolicies.length >= 3) {
            String[] policyName = Arrays.copyOfRange(certificatePolicies, 2, certificatePolicies.length);
            return String.join("_", policyName);
        }
        return null;
    }
private String extractValidCertificateName ( String policy ) { String [ ] certificatePolicies = policy . split ( "_" , - 1 ) ; if ( certificatePolicies . length >= 3 ) { String [ ] policyName = Arrays . copyOfRange ( certificatePolicies , 2 , certificatePolicies . length ) ; return String . join ( "_" , policyName ) ; } return null ; }
To extract valid certificate name from policy.
To extract valid certificate name from policy .