source: fedd/abac-src/rtml/src/edu/stanford/rt/credential/ValidityTime.java @ af51a97

axis_examplecompt_changesinfo-opsversion-2.00version-3.01version-3.02
Last change on this file since af51a97 was 8780cbec, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

ABAC sources from Cobham

  • Property mode set to 100644
File size: 991 bytes
Line 
1package edu.stanford.rt.credential;
2
3import java.util.Date;
4
5import edu.stanford.rt.util.*;
6
7/**
8 * @author Ninghui Li, Sandra Qiu <br>
9 *
10 * TODO
11 */
12public class ValidityTime
13{
14    private Date issueAt;
15    private Date validFrom;
16    private Date validTo;
17   
18    public ValidityTime(Date issueAt, Date validFrom, Date validTo)
19    {
20        if(issueAt==null)
21            throw new IllegalArgumentException("issueAt is null");
22        if(validFrom==null)
23            throw new IllegalArgumentException("validFrom is null");
24        if(validTo==null)
25            throw new IllegalArgumentException("validTo is null");
26
27        this.issueAt = issueAt;
28        this.validFrom = validFrom;
29        this.validTo = validTo;
30    }
31   
32    public Date getIssueAt()
33    {
34        return issueAt;
35    }
36   
37    public Date getValidFrom()
38    {
39        return validFrom;
40    }
41
42    public Date getValidTo()
43    {
44        return validTo;
45    }
46   
47}
Note: See TracBrowser for help on using the repository browser.