You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by "Veniamin Goldin (JIRA)" <ji...@apache.org> on 2006/11/30 15:32:26 UTC
[jira] Commented: (WSS-35) WSHandler verifyTimestamp method is not
compativle with JDK 1.3
[ http://issues.apache.org/jira/browse/WSS-35?page=comments#action_12454633 ]
Veniamin Goldin commented on WSS-35:
------------------------------------
What I did is replace of:
// Calculate the time that is allowed for the message to travel
Calendar validCreation = Calendar.getInstance();
long currentTime = validCreation.getTimeInMillis();
currentTime -= timeToLive * 1000;
validCreation.setTimeInMillis(currentTime);
with:
// Calculate the time that is allowed for the message to travel
Calendar validCreation = Calendar.getInstance();
long currentTime = validCreation.getTime().getTime();
currentTime -= timeToLive * 1000;
validCreation.setTime(new Date(currentTime));
Regards,
Veniamin
> WSHandler verifyTimestamp method is not compativle with JDK 1.3
> ---------------------------------------------------------------
>
> Key: WSS-35
> URL: http://issues.apache.org/jira/browse/WSS-35
> Project: WSS4J
> Issue Type: Bug
> Environment: Oracle 9iR2, Oracle JVM (Sun JDK 1.3.1 compatible)
> Reporter: Veniamin Goldin
> Assigned To: Davanum Srinivas
> Priority: Critical
>
> Method verifyTimestamp in the class org.apache.ws.security.handler.WSHandler.verifyTimestamp trying to use java.util.Calendar getTimeInMillis and
> java.util.Calendar setTimeInMillis methods which are protected in the JDK 1.3.1.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org