for safety, always create a session config with a destination

This commit is contained in:
jrandom
2004-06-19 23:30:57 +00:00
committed by zzz
parent a61ff12390
commit de334b003d

View File

@ -47,7 +47,10 @@ public class SessionConfig extends DataStructureImpl {
private final static long OFFSET_VALIDITY = 30 * 1000;
public SessionConfig() {
_destination = null;
this(null);
}
public SessionConfig(Destination dest) {
_destination = dest;
_signature = null;
_creationDate = new Date(Clock.getInstance().now());
_options = null;
@ -61,14 +64,6 @@ public class SessionConfig extends DataStructureImpl {
return _destination;
}
/**
* Specify the destination for which this session is supposed to connect
*
*/
public void setDestination(Destination dest) {
_destination = dest;
}
/**
* Determine when this session was authorized by the destination (so we can
* prevent replay attacks)