Class AuthenticatedPrincipal
- java.lang.Object
-
- org.apache.qpid.server.security.auth.AuthenticatedPrincipal
-
- All Implemented Interfaces:
Serializable
,Principal
,QpidPrincipal
public final class AuthenticatedPrincipal extends Object implements QpidPrincipal
A simple Principal wrapper. Exists to allow us to identify the "primary" principal by callingSubject.getPrincipals(Class)
, passing inAuthenticatedPrincipal
.class, e.g. when logging.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticatedPrincipal(Principal wrappedPrincipal)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static AuthenticatedPrincipal
getAuthenticatedPrincipalFromSubject(Subject authSubject)
static AuthenticatedPrincipal
getCurrentUser()
String
getName()
static AuthenticatedPrincipal
getOptionalAuthenticatedPrincipalFromSubject(Subject authSubject)
ConfiguredObject<?>
getOrigin()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
AuthenticatedPrincipal
public AuthenticatedPrincipal(Principal wrappedPrincipal)
-
-
Method Detail
-
getCurrentUser
public static AuthenticatedPrincipal getCurrentUser()
-
getOrigin
public ConfiguredObject<?> getOrigin()
- Specified by:
getOrigin
in interfaceQpidPrincipal
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
getOptionalAuthenticatedPrincipalFromSubject
public static AuthenticatedPrincipal getOptionalAuthenticatedPrincipalFromSubject(Subject authSubject)
-
getAuthenticatedPrincipalFromSubject
public static AuthenticatedPrincipal getAuthenticatedPrincipalFromSubject(Subject authSubject)
-
-