FileDocCategorySizeDatePackage
Lifetime.javaAPI DocExample4557Tue May 29 16:56:46 BST 2007com.sun.xml.ws.security.impl.policy

Lifetime

public class Lifetime extends com.sun.xml.ws.policy.PolicyAssertion implements com.sun.xml.ws.security.policy.SecurityAssertionValidator, com.sun.xml.ws.security.policy.Lifetime
author
Abhijit Das

Fields Summary
private String
created
private String
expires
private AssertionFitness
fitness
private boolean
populated
Constructors Summary
public Lifetime(com.sun.xml.ws.policy.sourcemodel.AssertionData name, Collection nestedAssertions, com.sun.xml.ws.policy.AssertionSet nestedAlternative)
Creates a new instance of LifeTimeImpl

    
           
          
        super(name,nestedAssertions,nestedAlternative);
    
Methods Summary
public java.lang.StringgetCreated()

        populate();
        return created;
    
public java.lang.StringgetExpires()

        populate();
        return expires;
    
private voidpopulate()

        populate(false);
    
private synchronized AssertionFitnesspopulate(boolean isServer)

        if(!populated){
            NestedPolicy policy = this.getNestedPolicy();
            if(policy == null){
                if(logger.getLevel() == Level.FINE){
                    logger.log(Level.FINE,"NestedPolicy is null");
                }
                populated = true;
                return fitness;
            }
            AssertionSet as = policy.getAssertionSet();
            for(PolicyAssertion pa : as){
                if ( PolicyUtil.isCreated(pa) ) {
                    this.created = pa.getValue();
                } else if ( PolicyUtil.isExpires(pa) ) {
                    this.expires = pa.getValue();
                }
            }
            populated = true;
        }
        return fitness;
    
public voidsetCreated(java.lang.String created)

        this.created = created;
    
public voidsetExpires(java.lang.String expires)

        this.expires = expires;
    
public AssertionFitnessvalidate(boolean isServer)

        return populate(isServer);