8081828384858687888990
Principal p = null; SubjectInfo subjectInfo = this.securityContext.getSubjectInfo(); if(subjectInfo != null) { CredentialIdentity cIdentity = subjectInfo.getIdentity(CredentialIdentity.class); p = cIdentity != null ? cIdentity.asPrincipal() : null; } return p; } public Object getCredential()
5960616263646566676869
{ if(theSubjectInfo != null) { CredentialIdentity identity = theSubjectInfo.getIdentity(CredentialIdentity.class); if(identity != null) return identity.asPrincipal(); } return null; } public Object getCredential()
7273747576777879808182
.iterator(); while (iterator.hasNext()) { CredentialIdentity identity = (CredentialIdentity) iterator.next(); principal = identity.asPrincipal(); credential = identity.getCredential(); } Subject subject = new Subject();