org.apache.ws.security.validate
Class TimestampValidator

java.lang.Object
  extended by org.apache.ws.security.validate.TimestampValidator
All Implemented Interfaces:
Validator

public class TimestampValidator
extends Object
implements Validator

This class validates a processed Timestamp, extracted from the Credential passed to the validate method.


Constructor Summary
TimestampValidator()
           
 
Method Summary
 Credential validate(Credential credential, RequestData data)
          Validate the credential argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampValidator

public TimestampValidator()
Method Detail

validate

public Credential validate(Credential credential,
                           RequestData data)
                    throws WSSecurityException
Validate the credential argument. It must contain a non-null Timestamp.

Specified by:
validate in interface Validator
Parameters:
credential - the Credential to be validated
data - the RequestData associated with the request
Returns:
a validated Credential
Throws:
WSSecurityException - on a failed validation


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.