tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private long validateNoOfDays(Map<String, String> metadataParams) throws ParseException {
        String createDate = metadataParams.get("createDate");
        Date date1 = new SimpleDateFormat("yyyy-MM-dd").parse(createDate.substring(0, 10));
        return ((new Date().getTime() - date1.getTime()) / (1000 * 60 * 60 * 24)) % 365;
    }
/**
     * This method will be used to validate the no.of days for external certificates
     * @param metadataParams
     * @return
     * @throws ParseException
     */
This method will be used to validate the no.of days for external certificates
@param metadataParams
@return
@throws ParseException
This method will be used to validate the no . of days for external certificates @param metadataParams @return @throws ParseException
private long validateNoOfDays(Map<String, String> metadataParams) throws ParseException {
        String createDate = metadataParams.get("createDate");
        Date date1 = new SimpleDateFormat("yyyy-MM-dd").parse(createDate.substring(0, 10));
        return ((new Date().getTime() - date1.getTime()) / (1000 * 60 * 60 * 24)) % 365;
    }
private long validateNoOfDays ( Map < String , String > metadataParams ) throws ParseException { String createDate = metadataParams . get ( "createDate" ) ; Date date1 = new SimpleDateFormat ( "yyyy-MM-dd" ) . parse ( createDate . substring ( 0 , 10 ) ) ; return ( ( new Date ( ) . getTime ( ) - date1 . getTime ( ) ) / ( 1000 * 60 * 60 * 24 ) ) % 365 ; }
This method will be used to validate the no.of days for external certificates
 @param metadataParams
 @return
 @throws ParseException
This method will be used to validate the no . of days for external certificates @param metadataParams @return @throws ParseException