tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private boolean validatekeyUsageValue(SSLCertificateRequest sslCertificateRequest) {
        boolean isValidKeyValue = false;
        if (sslCertificateRequest.getCertType().equalsIgnoreCase(SSLCertificateConstants.INTERNAL)) {
            String keyValue = sslCertificateRequest.getKeyUsageValue();
            if (StringUtils.isEmpty(keyValue) || keyValue.equalsIgnoreCase("null")
                    || (keyValue.matches(SSLCertificateConstants.KEYUSAGE_VALUE_VALID_STRING))) {
                isValidKeyValue = true;
            }
        } else if (sslCertificateRequest.getCertType().equalsIgnoreCase(SSLCertificateConstants.EXTERNAL)) {
            isValidKeyValue = true;
        }
        return isValidKeyValue;
    }
/**
     * This method will be used to validae the extended key usage value
     * @param sslCertificateRequest
     * @return
     */
This method will be used to validae the extended key usage value
@param sslCertificateRequest
@return
This method will be used to validae the extended key usage value @param sslCertificateRequest @return
private boolean validatekeyUsageValue(SSLCertificateRequest sslCertificateRequest) {
        boolean isValidKeyValue = false;
        if (sslCertificateRequest.getCertType().equalsIgnoreCase(SSLCertificateConstants.INTERNAL)) {
            String keyValue = sslCertificateRequest.getKeyUsageValue();
            if (StringUtils.isEmpty(keyValue) || keyValue.equalsIgnoreCase("null")
                    || (keyValue.matches(SSLCertificateConstants.KEYUSAGE_VALUE_VALID_STRING))) {
                isValidKeyValue = true;
            }
        } else if (sslCertificateRequest.getCertType().equalsIgnoreCase(SSLCertificateConstants.EXTERNAL)) {
            isValidKeyValue = true;
        }
        return isValidKeyValue;
    }
private boolean validatekeyUsageValue ( SSLCertificateRequest sslCertificateRequest ) { boolean isValidKeyValue = false ; if ( sslCertificateRequest . getCertType ( ) . equalsIgnoreCase ( SSLCertificateConstants . INTERNAL ) ) { String keyValue = sslCertificateRequest . getKeyUsageValue ( ) ; if ( StringUtils . isEmpty ( keyValue ) || keyValue . equalsIgnoreCase ( "null" ) || ( keyValue . matches ( SSLCertificateConstants . KEYUSAGE_VALUE_VALID_STRING ) ) ) { isValidKeyValue = true ; } } else if ( sslCertificateRequest . getCertType ( ) . equalsIgnoreCase ( SSLCertificateConstants . EXTERNAL ) ) { isValidKeyValue = true ; } return isValidKeyValue ; }
This method will be used to validae the extended key usage value
 @param sslCertificateRequest
 @return
This method will be used to validae the extended key usage value @param sslCertificateRequest @return