Java tutorial
//package com.java2s; //License from project: LGPL import java.security.cert.PKIXParameters; import java.util.Date; public class Main { protected static Date getValidDate(PKIXParameters paramsPKIX) { Date validDate = paramsPKIX.getDate(); if (validDate == null) { validDate = new Date(); } return validDate; } }