Skip to content

Instantly share code, notes, and snippets.

@thikade
Last active December 6, 2016 15:06
Show Gist options
  • Save thikade/b6922ad3b6a370e8d5983a87c33396ad to your computer and use it in GitHub Desktop.
Save thikade/b6922ad3b6a370e8d5983a87c33396ad to your computer and use it in GitHub Desktop.
Eclipse MAT OQL Scratchpad

Get all Subjects and the count of principals contained:

SELECT s.principals, toString(s.principals.c.elements.first.item.username) AS WAS_UserName, toString(s.principals.c.elements.first.item.name) AS Username, s.principals.c.elements.size AS PrincipalCount FROM javax.security.auth.Subject s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment