Project Aristotle - ArisID Attribute Services

org.openliberty.arisid.policy
Interface ILifetimeConstraint

All Superinterfaces:
IAssertion, IPolicyComponent

public interface ILifetimeConstraint
extends IAssertion

The time period for which data MAY be retained for active use by the requestor.

 <element name="LifeTimeConstraint">
     <complexType>
         <choice>
             <sequence>
                 <element name="Minutes" type="int"/>
                 <element name="Hours" type="int"/>
             </sequence>
             <sequence>
                 <element name="StartTime" type="dateTime"/>
                 <element name="EndTime" type="dateTime"/>
             </sequence>
         </choice>
         <attribute ref="pri:Issuer"/>
     </complexType>
 </element>
 


Field Summary
static java.lang.String ELEMENT
           
static java.lang.String ELEMENT_ENDDATE
           
static java.lang.String ELEMENT_HOURS
           
static java.lang.String ELEMENT_MINS
           
static java.lang.String ELEMENT_STARTDATE
           
static java.lang.String NAMESPACE
           
static javax.xml.namespace.QName qelement
           
static javax.xml.namespace.QName qEnd
           
static javax.xml.namespace.QName qHours
           
static javax.xml.namespace.QName qMins
           
static javax.xml.namespace.QName qStart
           
 
Fields inherited from interface org.openliberty.arisid.policy.IAssertion
ISSUER_ATTR, URI_ISSUER_APPLICATION, URI_ISSUER_AUTHORITY, URI_ISSUER_USER
 
Method Summary
 java.util.Date getEndDate()
          Returns The date until which the associated value is valid
 int getHours()
           
 int getMinutes()
           
 java.util.Date getStartDate()
          Returns The date from which the associated value is valid
 
Methods inherited from interface org.openliberty.arisid.policy.IAssertion
getIssuerUri, getName, isOptional, toString
 
Methods inherited from interface org.openliberty.arisid.policy.IPolicyComponent
equal, getType, serialize
 

Field Detail

NAMESPACE

static final java.lang.String NAMESPACE
See Also:
Constant Field Values

ELEMENT

static final java.lang.String ELEMENT
See Also:
Constant Field Values

ELEMENT_STARTDATE

static final java.lang.String ELEMENT_STARTDATE
See Also:
Constant Field Values

ELEMENT_ENDDATE

static final java.lang.String ELEMENT_ENDDATE
See Also:
Constant Field Values

ELEMENT_MINS

static final java.lang.String ELEMENT_MINS
See Also:
Constant Field Values

ELEMENT_HOURS

static final java.lang.String ELEMENT_HOURS
See Also:
Constant Field Values

qelement

static final javax.xml.namespace.QName qelement

qStart

static final javax.xml.namespace.QName qStart

qEnd

static final javax.xml.namespace.QName qEnd

qMins

static final javax.xml.namespace.QName qMins

qHours

static final javax.xml.namespace.QName qHours
Method Detail

getMinutes

int getMinutes()
Returns:
The number of minutes this constraint is valid for from receipt or -1 if this constraint is defined by a DateTime instead.

getHours

int getHours()
Returns:
The number of hours this constraint is valid from receipt for or -1 if this constraint is defined by a DateTime instead.

getStartDate

java.util.Date getStartDate()
Returns The date from which the associated value is valid

Returns:
A Date which is the point at which information is valid or null

getEndDate

java.util.Date getEndDate()
Returns The date until which the associated value is valid

Returns:
A Date which is the point until which information is valid or null

OpenLiberty.org - Licensed under Apache APL 2.0