Identity Management (MOSC)

MOSC Banner

Followup to "Monitoring OAM sessions" thread - instantiating UserSession and deleting sessions

edited Jul 20, 2016 5:01AM in Identity Management (MOSC) 5 commentsAnswered

Hi,

This is a followup to an earlier thread about "Trying to monitor sessions programmatically (Java)?".

At the end of that earlier thread, there was a discussion about deleting OAM sessions, and it was suggested that UserSession.terminate() be used to do that.  However, using the terminate() method requires that a UserSession object be instantiated, and it was suggested that the newer ASDK includes a constructor for the UserSession that takes a sessionToken as a parameter.

However, I guess the question then becomes how can you get a sessionToken?  There is a UserSession.getToken(), but that itself requires an existing UserSession object, so it's kind of a "circular" approach? 

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center