lass="memberNameLink"><a href="../../../javax/security/enterprise/SecurityContext.html#getPrincipalsByType-java.lang.Class-">getPrincipalsByType</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;T&gt;&nbsp;pType)</code>
<div class="block">Retrieve all Principals of the given type from the authenticated caller's Subject,
 or an empty set if the current caller is not authenticated, or if the specified type
