Task #2650
Story #2645: Session handling in java service api
add a D1Node constructor that takes a Session object
100%
Description
to support non-defaulting certificate management.
Will also need to refactor the session-less methods to pass something other than a null Session to get the default behavior (now that there are 2 defaults...). For backwards compatibility, a null Session passed into the deprecated methods needs to pass null to the CertificateManager. The newer methods will need to pass something else (like a Session where the subject is a new symbolic principle, or a subclassed Session object like SymbolicSession) to make use of the session object supplied at object creation.
History
#1 Updated by Rob Nahf over 12 years ago
- Status changed from New to Closed
implemented new constructors and refactored the session-less methods to use a 'symbolic' Session instead of null when passing arguments to the deprecated methods, and created a determineSession() method to encapsulate the logic for which session to pass to the underlying D1RestClient.
Anticipate that the logic can be simplified when the deprecated methods are removed.