<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">All Java Principals implement getName(), so that's the standard way to access data from a Principal that's based on a string. IIRC I also provided a more dedicated method name, but I could be misremembering that.<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>As a related question, may I safely assume in the SubjectContext there is only one subject, in which there is only one private credential? (In my case, LDAP authn is used, with session enabled.)</div><div>I think it's a quite basic question, so I don't expect a thorough answer given here, </div><div>but some useful references are appreciated.</div><div><br></div></div></div></div>