Example usage for java.security.cert PKIXParameters getDate

List of usage examples for java.security.cert PKIXParameters getDate

Introduction

In this page you can find the example usage for java.security.cert PKIXParameters getDate.

Prototype

public Date getDate() 

Source Link

Document

Returns the time for which the validity of the certification path should be determined.

Usage

From source file:Main.java

protected static Date getValidDate(PKIXParameters paramsPKIX) {
    Date validDate = paramsPKIX.getDate();

    if (validDate == null) {
        validDate = new Date();
    }/*w w w .  ja va2 s.c  o  m*/

    return validDate;
}